|
@@ -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);
|