tianwu.sun 3 月之前
父节点
当前提交
9db5cddfbc
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

+ 6 - 2
src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

@@ -716,14 +716,18 @@ public class GyDataServiceImpl implements GyDataService {
                 return 0;
             }
         }
-
+        UserDO currUser = ShiroUtils.getUser();
         String auditStage =null;
         if("1".equals(deployType)){ //市级单独部署
             auditStage = "1";
         } else if("2".equals(deployType)){ //省级单独部署
             auditStage = "2";
         }  else if("3".equals(deployType)){ //省市一体部署
-            auditStage = "1";
+            if (managerValue.contains(currUser.getDeptId().toString())) { //机构是管理员
+                auditStage = "1";
+            } else { //一般省级人员
+                auditStage = "2";
+            }
         }
 
         return gyDataDao.recover(id, auditStage);