zhubaomin
2025-04-07 1a2b07f01ba4616fd9e894dddf474b56d020158c
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
72
73
74
75
76
77
78
package com.dy.pipIrrTemp.statistics;
 
import com.dy.common.aop.SsoAop;
import com.dy.common.webUtil.BaseResponse;
import com.dy.common.webUtil.BaseResponseUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @Author: liurunyu
 * @Date: 2024/12/28 13:05
 * @Description
 */
@Slf4j
@RestController
@RequestMapping(path = "stSome")
public class StSomeCtrl {
 
    private StClientAmountDaySv stClientAmountDaySv;
    private StClientAmountMonthSv stClientAmountMonthSv;
    private StClientAmountYearSv stClientAmountYearSv;
 
    @Autowired
    private void setSv(StClientAmountDaySv sv) {
        this.stClientAmountDaySv = sv;
    }
    @Autowired
    private void setSv(StClientAmountMonthSv sv) {
        this.stClientAmountMonthSv = sv;
    }
    @Autowired
    private void setSv(StClientAmountYearSv sv) {
        this.stClientAmountYearSv = sv;
    }
 
    ///////////////////////////////////////////
    //
    // 农户相关取水量
    //
    ///////////////////////////////////////////
    /**
     * 转存农户日取水量,由纵型改为横型
     * @return
     */
    @GetMapping(path = "transSaveClientAmountDay")
    @SsoAop()
    public BaseResponse<Boolean> transSaveClientAmountDay() throws Exception{
        this.stClientAmountDaySv.deleteAllStClientAmountDay();
        this.stClientAmountDaySv.transSaveClientAmountDay();
        return BaseResponseUtils.buildSuccess(true);
    }
    /**
     * 统计农户月取水量
     * @return
     */
    @GetMapping(path = "statisticsClientAmountMonth")
    @SsoAop()
    public BaseResponse<Boolean> statisticsClientAmountMonth() throws Exception{
        this.stClientAmountMonthSv.deleteAllStClientAmountMonth();
        this.stClientAmountMonthSv.statisticsClientAmountMonth();
        return BaseResponseUtils.buildSuccess(true);
    }
   /**
     * 统计农户年取水量
     * @return
     */
    @GetMapping(path = "statisticsClientAmountYear")
    @SsoAop()
    public BaseResponse<Boolean> statisticsClientAmountYear() throws Exception{
        this.stClientAmountYearSv.deleteAllStClientAmountYear();
        this.stClientAmountYearSv.statisticsClientAmountYear();
        return BaseResponseUtils.buildSuccess(true);
    }
 
}