liurunyu
2024-12-28 7ead11c00dc4877a128755e90cc945412208d9aa
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
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 StClientAmountSv stSomeClientAmountSv;
 
    @Autowired
    private void setSv(StClientAmountSv sv) {
        this.stSomeClientAmountSv = sv;
    }
 
    ///////////////////////////////////////////
    //
    // 农户相关取水量
    //
    ///////////////////////////////////////////
    /**
     * 转存农户日取水量,由纵型改为横型
     * @return
     */
    @GetMapping(path = "transSaveClientAmountDay")
    @SsoAop()
    public BaseResponse<Boolean> transSaveClientAmountDay() throws Exception{
        this.stSomeClientAmountSv.deleteAllStClientAmountDay();
        this.stSomeClientAmountSv.transSaveClientAmountDay();
        return BaseResponseUtils.buildSuccess(true);
    }
 
}