From d9765e031e100e1d8eea34e086cb9c81766e1a00 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 21 二月 2025 09:52:14 +0800
Subject: [PATCH] 针对王江海制定的协议: 1、优化相关注释; 2、优化代码; 3、协议中报警信息有变化:外门报警改为电池电压报警、增加阀门开关状态、增加阀门堵转报警等。
---
pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java | 96 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 96 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..fea76f5 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
@@ -22,11 +22,24 @@
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
@@ -37,4 +50,87 @@
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