From cdc35c146d7054d58e273aec3035387f324d6ac3 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 27 四月 2025 14:12:26 +0800
Subject: [PATCH] MyBatis拦截器测试修改

---
 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