New file |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |