wuzeyu
2024-12-30 dd6e29aba4f614f236cf60aca4aa972a51a8dfb5
pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java
New file
@@ -0,0 +1,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 stClientAmountSv;
    @Autowired
    private void setSv(StClientAmountSv sv) {
        this.stClientAmountSv = sv;
    }
    ///////////////////////////////////////////
    //
    // 农户相关取水量
    //
    ///////////////////////////////////////////
    /**
     * 转存农户日取水量,由纵型改为横型
     * @return
     */
    @GetMapping(path = "transSaveClientAmountDay")
    @SsoAop()
    public BaseResponse<Boolean> transSaveClientAmountDay() throws Exception{
        this.stClientAmountSv.deleteAllStClientAmountDay();
        this.stClientAmountSv.transSaveClientAmountDay();
        return BaseResponseUtils.buildSuccess(true);
    }
}