From a8157b2445e6d17fa23fcf19143f5e1fcb179ee2 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 16 十二月 2024 10:09:40 +0800
Subject: [PATCH] 实现临时任务功能:重新统计所有取水口月用水量和年用水量

---
 pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 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
index 666a62c..3c7befe 100644
--- 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
@@ -37,4 +37,29 @@
         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