From 7d55b601b8ec846e9d48ce31de1c5c6930d6dee0 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 19 八月 2025 17:24:35 +0800
Subject: [PATCH] 1、修改等待中间件返回结果超时时间为10秒; 2、修改向水肥机下发命令相关逻辑; 3、修改水肥机回复命令结果处理逻辑; 4、去除前端webSocket关闭产生异常日志记录。
---
pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/delSome/DelSomeCtrl.java | 80 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 80 insertions(+), 0 deletions(-)
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/delSome/DelSomeCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/delSome/DelSomeCtrl.java
new file mode 100644
index 0000000..dd71b08
--- /dev/null
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/delSome/DelSomeCtrl.java
@@ -0,0 +1,80 @@
+package com.dy.pipIrrTemp.delSome;
+
+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/11 10:50
+ * @Description
+ */
+@Slf4j
+@RestController
+@RequestMapping(path = "delSome")
+@SuppressWarnings("unchecked")//java鐗堟湰瓒婇珮锛屽娉涘瀷绾︽潫瓒婁弗锛屾墍浠ラ厤缃甋uppressWarnings("unchecked")
+public class DelSomeCtrl {
+
+ private DelSomeLossAmountSv lossAmountSv;
+ private DelSomeIntakeAmountSv intakeAmountSv;
+ private DelSomeClientAmountSv clientAmountSv;
+
+ @Autowired
+ private void setSv(DelSomeLossAmountSv sv) {
+ this.lossAmountSv = sv;
+ }
+
+ @Autowired
+ private void setSv(DelSomeIntakeAmountSv sv) {
+ this.intakeAmountSv = sv;
+ }
+
+ @Autowired
+ private void setSv(DelSomeClientAmountSv sv) {
+ this.clientAmountSv = sv;
+ }
+
+ /**
+ * 鍒犻櫎涓�浜涙紡鎹熺粺璁�
+ * @return
+ */
+ @GetMapping(path = "deleteSomeStatisticLossAmount")
+ @SsoAop()
+ public BaseResponse<Boolean> deleteSomeStatisticLossAmount(){
+ this.lossAmountSv.delStLossDay();
+ this.lossAmountSv.delStLossMonth();
+ this.lossAmountSv.delStLossYear();
+ return BaseResponseUtils.buildSuccess(true);
+ }
+
+ /**
+ * 鍒犻櫎涓�浜涘彇姘村彛缁熻
+ * @return
+ */
+ @GetMapping(path = "deleteSomeStatisticIntakeAmount")
+ @SsoAop()
+ public BaseResponse<Boolean> deleteSomeStatisticIntakeAmount(){
+ this.intakeAmountSv.delStIntakeDay();
+ this.intakeAmountSv.delStIntakeMonth();
+ this.intakeAmountSv.delStIntakeYear();
+ return BaseResponseUtils.buildSuccess(true);
+ }
+
+ /**
+ * 鍒犻櫎涓�浜涘啘鎴风粺璁�
+ * @return
+ */
+ @GetMapping(path = "deleteSomeStatisticClientAmount")
+ @SsoAop()
+ public BaseResponse<Boolean> deleteSomeStatisticClientAmount(){
+ this.clientAmountSv.delStClientDay();
+ this.clientAmountSv.delStClientMonth();
+ this.clientAmountSv.delStClientYear();
+ return BaseResponseUtils.buildSuccess(true);
+ }
+}
--
Gitblit v1.8.0