From 70aeac289c132085e91d59dc82bc1facd41889fa Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 24 二月 2025 15:33:53 +0800
Subject: [PATCH] 有关表阀一体机(王江海制定)通信协议: 1、根据新版本协议,解析部分更新; 2、根据测试一体阀协议数据处理需求与逻辑,进行表阀一体机数据处理。
---
pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java | 41 +++++++++++++++++++++++++++++++++++++----
1 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java
index 1553574..9353712 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/statistics/StSomeCtrl.java
@@ -19,11 +19,21 @@
@RequestMapping(path = "stSome")
public class StSomeCtrl {
- private StClientAmountSv stSomeClientAmountSv;
+ private StClientAmountDaySv stClientAmountDaySv;
+ private StClientAmountMonthSv stClientAmountMonthSv;
+ private StClientAmountYearSv stClientAmountYearSv;
@Autowired
- private void setSv(StClientAmountSv sv) {
- this.stSomeClientAmountSv = sv;
+ 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;
}
///////////////////////////////////////////
@@ -38,7 +48,30 @@
@GetMapping(path = "transSaveClientAmountDay")
@SsoAop()
public BaseResponse<Boolean> transSaveClientAmountDay() throws Exception{
- this.stSomeClientAmountSv.transSaveClientAmountDay();
+ 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);
}
--
Gitblit v1.8.0