From c9cc74fad46adaa4bc448cba673e830baf705fce Mon Sep 17 00:00:00 2001
From: cuilei <ray_tsu1@163.com>
Date: 星期二, 24 六月 2025 17:40:45 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 lxzn-module-dnc/src/main/java/org/jeecg/modules/dncFlow/service/impl/AssignFileStreamServiceImpl.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dncFlow/service/impl/AssignFileStreamServiceImpl.java b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dncFlow/service/impl/AssignFileStreamServiceImpl.java
index 036ac42..18f1a94 100644
--- a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dncFlow/service/impl/AssignFileStreamServiceImpl.java
+++ b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dncFlow/service/impl/AssignFileStreamServiceImpl.java
@@ -98,9 +98,11 @@
     private String secretFolder;    //娑夊瘑缃戜紶杈搉c鏂囦欢澶�
     @Autowired
     private FileFerryService ferryService;
+    @Autowired
+    private IDocClassificationService iDocClassificationService;
     @Override
     @Transactional(rollbackFor = {Exception.class})
-    public Result applyAssignFile(AssignFileStream stream) {
+    public Result<?> applyAssignFile(AssignFileStream stream) {
         synchronized (this){
             //鍒ゆ柇璁惧鐗规畩瀛楃
             String specialChar = getDeviceSpecialChar(stream.getDeviceId(),stream.getFileId());
@@ -108,6 +110,12 @@
                 //鎶涘嚭鐗规畩瀛楃寮傚父
                 return Result.error("鏂囦欢鍚嶇О瀛樺湪璁惧鐗规畩瀛楃");
             }
+            //鏌ヨ鏂囨。鐨勭姸鎬侊紝鎵瑰噯鐘舵�佹墠鍙互鎸囨淳
+            DocInfo docInfo=getDocInfo(stream);
+            DocClassification docClassification=iDocClassificationService.getById(docInfo.getClassificationId());
+            if (docInfo.getDocDispatchStatus()!=null&&docInfo.getDocDispatchStatus()!=3&&docClassification.getClassificationCode().equals("nc")){
+                return Result.error("璇ユ枃浠剁姸鎬佷笉鍏佽鎸囨淳,璇峰厛瀹屾垚瀹$娴佺▼");
+            }
             if(flowableEnable) {
                 return applyAssignFileActive(stream);
             }else {

--
Gitblit v1.9.3