From 836ec39fdad422b1a148699a4c5fb8c5b4d395f0 Mon Sep 17 00:00:00 2001
From: zuoxiao <lf_zuo@163.com>
Date: 星期三, 25 六月 2025 11:04:33 +0800
Subject: [PATCH] feat(card): 添加管理类型卡写卡功能并优化卡片相关逻辑- 在 OperateTypeENUM 中添加 SUPPLEMENT 和 MANAGEMENT_CARD_WRITE 枚举值 - 在 SeManagementCard 中添加 cancelTime 和 state 字段 - 更新相关 mapper 和 XML 文件以支持新增字段 - 修改 CardSv 中的回调处理逻辑,支持管理类型卡写卡 - 优化 CreateManagementCardDto 中识别码的示例值

---
 pipIrr-platform/pipIrr-web/pipIrr-web-temp/src/main/java/com/dy/pipIrrTemp/changeSome/ChSomeCtrl.java |   71 +++++++++++++++++++++++++++++++++++
 1 files changed, 71 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 3c7befe..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
@@ -35,6 +48,20 @@
     @SsoAop()
     public BaseResponse<Boolean> changeSomeIntakeDayAmount() throws Exception{
         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);
     }
 
@@ -62,4 +89,48 @@
         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