ソースを参照

政策-总监编辑提交

yangzian 3 年 前
コミット
04020b3274

+ 9 - 3
jeecg-boot-finance/src/main/java/org/jeecg/ctop/finance/policy/controller/CwjsPolicyInfoController.java

@@ -162,8 +162,14 @@ public class CwjsPolicyInfoController {
 				//firstAudit = examineUser.getString("directorId");
 				firstAudit = "legalAffairs";
 			}else {
-				//销售的 上级
-				firstAudit = examineUser.getString("leaderId");
+				//查询创建人角色 -- 自己创建的
+				String createUserRole = roleService.getRoleCodeByUserId(cwjsPolicyInfo.getCreateUserId());
+				if (StringUtils.equals("saleDirector",createUserRole)){
+					firstAudit = cwjsPolicyInfo.getCreateUserId();
+				}else {
+					//销售的 上级
+					firstAudit = examineUser.getString("leaderId");
+				}
 			}
 
 			 cwjsPolicyInfo.setApprovedStatus(1);
@@ -205,7 +211,7 @@ public class CwjsPolicyInfoController {
 
 			 //第一个审核人 - 法务
 		 	if(approvalUser.equals("legalAffairs")){
-		 		//查询创建人角色 -- 自己创建的
+				//查询创建人角色 -- 自己创建的
 				String createUserRole = roleService.getRoleCodeByUserId(cwjsPolicyInfo.getCreateUserId());
 				if (StringUtils.equals("saleDirector",createUserRole)){
 					cwjsPolicyInfo.setApprovedStatus(1);