From 9ad1c8159544ed36729cffa66cb13b7e60fa46ec Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 04 二月 2026 17:22:45 +0800
Subject: [PATCH] 客户问题优3-云台控制及监控同步

---
 fzzy-igdss-core/src/main/java/com/fzzy/igds/service/InoutNoticeService.java |   48 +++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/InoutNoticeService.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/InoutNoticeService.java
index 778a6a3..0d4ecbe 100644
--- a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/InoutNoticeService.java
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/InoutNoticeService.java
@@ -1,6 +1,7 @@
 package com.fzzy.igds.service;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.fzzy.igds.constant.Constant;
 import com.fzzy.igds.constant.InoutConstant;
 import com.fzzy.igds.data.*;
@@ -91,6 +92,9 @@
         if (StringUtils.isNotBlank(param.getDeptId())) {
             queryWrapper.eq("dept_id", param.getDeptId());
         }
+        if (StringUtils.isNotBlank(param.getAuditStatus())) {
+            queryWrapper.eq("audit_status", param.getAuditStatus());
+        }
         if (StringUtils.isNotBlank(param.getCompleteStatus())) {
             queryWrapper.eq("complete_status", param.getCompleteStatus());
         }
@@ -143,7 +147,7 @@
             //鑾峰彇璐ㄦ娂鍚堝悓鏁版嵁
             PledgeContract pledge = this.getPledgeByDepotId(data);
             if (null != pledge && pledge.getStatus().equals(Constant.YN_N)) {
-                return BaseResp.error("褰撳墠浠撳簱鏈夋湭瑙e帇鐨勮川鎶煎悎鍚岋紝璐ㄦ娂鍚堝悓=" + pledge.getName());
+                return BaseResp.error("褰撳墠浠撳簱鏈夋湭瑙f娂鐨勮川鎶煎悎鍚岋紝璐ㄦ娂鍚堝悓=" + pledge.getName());
             }
         }
 
@@ -197,9 +201,9 @@
 
 
     /**
-     * 鍒ゆ柇褰撳墠浠撳簱鏄惁鍦ㄨ川鎶煎悎鍚屼腑鏈В鍘�
+     * 鍒ゆ柇褰撳墠浠撳簱鏄惁鍦ㄨ川鎶煎悎鍚屼腑鏈В鎶�
      * @param data 褰撳墠鏁版嵁
-     * @return true-鍦ㄨ川鎶煎悎鍚屼腑鏈В鍘嬶紝false-鍦ㄨ川鎶煎悎鍚屼腑宸茶В鍘�
+     * @return true-鍦ㄨ川鎶煎悎鍚屼腑鏈В鎶硷紝false-鍦ㄨ川鎶煎悎鍚屼腑宸茶В鎶�
      */
     private PledgeContract getPledgeByDepotId(InoutNoticeIn data) {
         IgdsBaseParam param = new IgdsBaseParam();
@@ -216,6 +220,18 @@
         param.setDepotId(data.getDepotId());
         param.setBankId(data.getBankId());
         return pledgeContractService.getByDepotId(param);
+    }
+
+    /**
+     * 鏇存柊瀹℃牳鐘舵��
+     * @param id
+     * @param status
+     */
+    public void updateNoticeInStatus(String id, String status) {
+        UpdateWrapper<InoutNoticeIn> updateWrapper = new UpdateWrapper<>();
+        updateWrapper.eq("id", id).set("audit_status", status);
+
+        noticeInMapper.update(null, updateWrapper);
     }
 
     /**
@@ -270,6 +286,9 @@
         if (StringUtils.isNotBlank(param.getDeptId())) {
             queryWrapper.eq("dept_id", param.getDeptId());
         }
+        if (StringUtils.isNotBlank(param.getAuditStatus())) {
+            queryWrapper.eq("audit_status", param.getAuditStatus());
+        }
         if (StringUtils.isNotBlank(param.getCompleteStatus())) {
             queryWrapper.eq("complete_status", param.getCompleteStatus());
         }
@@ -287,7 +306,6 @@
      * @return
      */
     public InoutNoticeOut getNoticeOutOne(String id) {
-
         QueryWrapper<InoutNoticeOut> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("id", id);
         return noticeOutMapper.selectOne(queryWrapper);
@@ -316,13 +334,13 @@
      */
     @Transactional(rollbackFor = Exception.class)
     public BaseResp saveOrUpdateOut(InoutNoticeOut data) {
-        //濡傛灉鍑哄簱閫氱煡鍗曠被鍨嬩负搴撳尯閫氱煡鍗曪紝楠岃瘉浠撳簱鏄惁鏄湭瑙e帇寰椾粨搴擄紝鏄垯涓嶅厑璁镐繚瀛�
+        //濡傛灉鍑哄簱閫氱煡鍗曠被鍨嬩负搴撳尯閫氱煡鍗曪紝楠岃瘉浠撳簱鏄惁鏄湭瑙f娂寰椾粨搴擄紝鏄垯涓嶅厑璁镐繚瀛�
         if (InoutConstant.NOTICE_IN_TYPE_10.equals(data.getType())) {
-            //鍦ㄨ川鎶煎悎鍚屾壘鍒版湭瑙e帇锛屼笖璐ㄦ娂浠撳簱鍖呭惈褰撳墠浠撳簱鐨勬暟鎹�
+            //鍦ㄨ川鎶煎悎鍚屾壘鍒版湭瑙f娂锛屼笖璐ㄦ娂浠撳簱鍖呭惈褰撳墠浠撳簱鐨勬暟鎹�
             //鑾峰彇璐ㄦ娂鍚堝悓鏁版嵁
             PledgeContract pledge = this.getPledgeByDepotIdOut(data);
             if (null != pledge && pledge.getStatus().equals(Constant.YN_N)) {
-                return BaseResp.error("褰撳墠浠撳簱鏈夋湭瑙e帇鐨勮川鎶煎悎鍚岋紝璐ㄦ娂鍚堝悓=" + pledge.getName());
+                return BaseResp.error("褰撳墠浠撳簱鏈夋湭瑙f娂鐨勮川鎶煎悎鍚岋紝璐ㄦ娂鍚堝悓=" + pledge.getName());
             }
         }
         //濡傛灉鍑哄簱閫氱煡鍗曠被鍨嬩负鐩戠閫氱煡鍗�
@@ -347,6 +365,18 @@
             noticeOutMapper.updateById(data);
             return BaseResp.success();
         }
+    }
+
+    /**
+     * 鏇存柊瀹℃牳鐘舵��
+     * @param id
+     * @param status
+     */
+    public void updateNoticeOutStatus(String id, String status) {
+        UpdateWrapper<InoutNoticeOut> updateWrapper = new UpdateWrapper<>();
+        updateWrapper.eq("id", id).set("audit_status", status);
+
+        noticeOutMapper.update(null, updateWrapper);
     }
 
     /**
@@ -385,9 +415,9 @@
     }
 
     /**
-     * 鍒ゆ柇褰撳墠浠撳簱鏄惁鍦ㄨ川鎶煎悎鍚屼腑鏈В鍘�
+     * 鍒ゆ柇褰撳墠浠撳簱鏄惁鍦ㄨ川鎶煎悎鍚屼腑鏈В鎶�
      * @param data 褰撳墠鏁版嵁
-     * @return true-鍦ㄨ川鎶煎悎鍚屼腑鏈В鍘嬶紝false-鍦ㄨ川鎶煎悎鍚屼腑宸茶В鍘�
+     * @return true-鍦ㄨ川鎶煎悎鍚屼腑鏈В鎶硷紝false-鍦ㄨ川鎶煎悎鍚屼腑宸茶В鎶�
      */
     private PledgeContract getPledgeByDepotIdOut(InoutNoticeOut data) {
         IgdsBaseParam param = new IgdsBaseParam();

--
Gitblit v1.9.3