From f4b840c5374dd3cd916a656396818a96d25a631b Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期一, 16 十二月 2024 10:24:58 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java | 65 ++++++++++++++++++++++++++++++++ 1 files changed, 65 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..3c7befe --- /dev/null +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java @@ -0,0 +1,65 @@ +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; + + @Autowired + private void setSv(ChSomeIntakeAmountSv sv) { + this.intakeAmountSv = sv; + } + + /** + * 淇敼涓�浜涘彇姘村彛鍙栨按閲忔棩缁熻 + * @return + */ + @GetMapping(path = "changeSomeIntakeDayAmount") + @SsoAop() + public BaseResponse<Boolean> changeSomeIntakeDayAmount() throws Exception{ + this.intakeAmountSv.chIntakeAmountDay(); + 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); + } +} -- Gitblit v1.8.0