13693261870
2025-07-02 6708810c4de34dfb9513061432d656f91d56ee3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.ruoyi.web.controller.fuzhou;
 
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.fuzhou.domain.ReceiveWaterValueFinal;
import com.ruoyi.fuzhou.domain.ReceiveWeatherValueFinal;
import com.ruoyi.fuzhou.domain.vo.ReceiveValueListVo;
 
import com.ruoyi.fuzhou.service.ReceiveWeatherValueFinalService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * <p>
 * 水实时数据 前端控制器
 * </p>
 *
 * @author sunjiawei
 * @since 2025-04-25
 */
@RestController
@RequestMapping("/dp/receiveWeatherValueFinal")
@Tag(name = "大屏--水数据处理结果")
public class ReceiveWeatherValueFinalController {
    @Autowired
    private ReceiveWeatherValueFinalService receiveWeatherValueFinalService;
 
    @GetMapping("/listAll")
    @Operation(summary = "查询所有数据列表")
    public AjaxResult listAll()
    {
        return AjaxResult.success(receiveWeatherValueFinalService.listAll());
    }
 
    @PostMapping("/saveBatch")
    @Operation(summary = "批量插入")
    @Log(title = "水表数据新增", businessType = BusinessType.INSERT)
    public AjaxResult saveBatch(@RequestBody List<ReceiveWeatherValueFinal> waterValueFinals)
    {
        return AjaxResult.success(receiveWeatherValueFinalService.saveBatchNew(waterValueFinals));
    }
 
    @PostMapping("/queryData")
    @Operation(summary = "条件查询")
    @Log(title = "水表数据查询", businessType = BusinessType.SELECT)
    public AjaxResult queryData(@RequestBody ReceiveValueListVo vo)
    {
        return AjaxResult.success(receiveWeatherValueFinalService.queryData(vo));
    }
 
    @PostMapping("/deleteBatch")
    @Operation(summary = "批量删除")
    @Log(title = "水表数据删除", businessType = BusinessType.DELETE)
    public AjaxResult deleteBatch(@RequestBody List<Long> ids)
    {
        return AjaxResult.success(receiveWeatherValueFinalService.deleteBatch(ids));
    }
 
    @PostMapping("/updateDate")
    @Operation(summary = "修改更新")
    @Log(title = "水表数据修改", businessType = BusinessType.UPDATE)
    public AjaxResult updateDate(@RequestBody ReceiveWeatherValueFinal receiveWeatherValueFinal)
    {
        return AjaxResult.success(receiveWeatherValueFinalService.updateDate(receiveWeatherValueFinal));
    }
}