From 4513ef24bf9b188c2a77d6ce94f1a6b7e9ebf0e6 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期日, 27 四月 2025 20:40:19 +0800 Subject: [PATCH] fix(irrigatePlan): 修正灌溉计划开始时间逻辑 --- pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java | 136 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 136 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java new file mode 100644 index 0000000..fea76f5 --- /dev/null +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java @@ -0,0 +1,136 @@ +package com.dy.pipIrrTemp.changeSome; + +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/14 9:22 + * @Description + */ +@Slf4j +@RestController +@RequestMapping(path = "chSome") +@SuppressWarnings("unchecked")//java鐗堟湰瓒婇珮锛屽娉涘瀷绾︽潫瓒婁弗锛屾墍浠ラ厤缃甋uppressWarnings("unchecked") +public class ChSomeCtrl { + + private ChSomeIntakeAmountSv intakeAmountSv; + + private ChSomeIntakeLossSv intakeLossSv; + + @Autowired + private void setSv(ChSomeIntakeAmountSv sv) { + this.intakeAmountSv = sv; + } + + @Autowired + private void setSv(ChSomeIntakeLossSv sv) { + this.intakeLossSv = sv; + } + + + /////////////////////////////////////////// + // + // 鍙栨按鍙g浉鍏冲彇姘撮噺 + // + /////////////////////////////////////////// + /** + * 淇敼涓�浜涘彇姘村彛鍙栨按閲忔棩缁熻 + * @return + */ + @GetMapping(path = "changeSomeIntakeDayAmount") + @SsoAop() + public BaseResponse<Boolean> changeSomeIntakeDayAmount() throws Exception{ + this.intakeAmountSv.chIntakeAmountDay(); + return BaseResponseUtils.buildSuccess(true); + } + + /** + * 閲嶆柊缁熻鍙栨按鍙f湀鍙栨按閲� + * @return + */ + @GetMapping(path = "reStatisticsAllIntakeDayAmount") + @SsoAop() + public BaseResponse<Boolean> reStatisticsAllIntakeDayAmount() throws Exception{ + // 涓嶈兘鍒犻櫎锛屼互淇濈暀鍘熷id + // this.intakeAmountSv.deleteAllIntakeAmountDay(); + this.intakeAmountSv.statisticsIntakeAmountDay(); + this.intakeAmountSv.deleteSomeIntakeAmountDay(); + return BaseResponseUtils.buildSuccess(true); + } + + + /** + * 閲嶆柊缁熻鍙栨按鍙f湀鍙栨按閲� + * @return + */ + @GetMapping(path = "reStatisticsAllIntakeMonthAmount") + @SsoAop() + public BaseResponse<Boolean> reStatisticsAllIntakeMonthAmount() throws Exception{ + this.intakeAmountSv.deleteAllIntakeAmountMonth(); + this.intakeAmountSv.statisticsIntakeAmountMonth(); + return BaseResponseUtils.buildSuccess(true); + } + + /** + * 閲嶆柊缁熻鍙栨按鍙f墍鍙栨按閲� + * @return + */ + @GetMapping(path = "reStatisticsAllIntakeYearAmount") + @SsoAop() + public BaseResponse<Boolean> reStatisticsAllIntakeYearAmount() throws Exception{ + this.intakeAmountSv.deleteAllIntakeAmountYear(); + this.intakeAmountSv.statisticsIntakeAmountYear(); + return BaseResponseUtils.buildSuccess(true); + } + + + + + /////////////////////////////////////////// + // + // 鍙栨按鍙g浉鍏虫紡鎹� + // + /////////////////////////////////////////// + /** + * 淇敼涓�浜涘彇姘村彛婕忔崯閲忔棩缁熻 + * @return + */ + @GetMapping(path = "changeSomeIntakeDayLoss") + @SsoAop() + public BaseResponse<Boolean> changeSomeIntakeDayLoss() throws Exception{ + this.intakeLossSv.chIntakeLossDay(); + return BaseResponseUtils.buildSuccess(true); + } + + + /** + * 閲嶆柊缁熻鍙栨按鍙f湀婕忔崯閲� + * @return + */ + @GetMapping(path = "reStatisticsAllIntakeMonthLoss") + @SsoAop() + public BaseResponse<Boolean> reStatisticsAllIntakeMonthLoss() throws Exception{ + this.intakeLossSv.deleteAllIntakeLossMonth(); + this.intakeLossSv.statisticsIntakeLossMonth(); + return BaseResponseUtils.buildSuccess(true); + } + + /** + * 閲嶆柊缁熻鍙栨按鍙f墍婕忔崯閲� + * @return + */ + @GetMapping(path = "reStatisticsAllIntakeYearLoss") + @SsoAop() + public BaseResponse<Boolean> reStatisticsAllIntakeYearLoss() throws Exception{ + this.intakeLossSv.deleteAllIntakeLossYear(); + this.intakeLossSv.statisticsIntakeLossYear(); + return BaseResponseUtils.buildSuccess(true); + } +} -- Gitblit v1.8.0