|
@@ -562,6 +562,10 @@ public class CwjsPolicyInfoController {
|
|
|
cwjsPolicyInfo.setCompanySubjectId(companySubjectId);
|
|
cwjsPolicyInfo.setCompanySubjectId(companySubjectId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ //查询销售角色
|
|
|
|
|
+ String roleCode = roleService.getRoleCodeByUserId(cwjsPolicyInfo.getSaleId());
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//政策所属销售的部门 和 上级
|
|
//政策所属销售的部门 和 上级
|
|
|
JSONObject examineUser = cwjsPolicyInfoMapper.getUserLeaderAndDirectorByRoleName(cwjsPolicyInfo.getSaleId(),"分公司总经理");
|
|
JSONObject examineUser = cwjsPolicyInfoMapper.getUserLeaderAndDirectorByRoleName(cwjsPolicyInfo.getSaleId(),"分公司总经理");
|
|
|
String firstAudit = "";//第一次审核人
|
|
String firstAudit = "";//第一次审核人
|
|
@@ -573,6 +577,11 @@ public class CwjsPolicyInfoController {
|
|
|
//firstAudit = examineUser.getString("directorId");
|
|
//firstAudit = examineUser.getString("directorId");
|
|
|
cwjsPolicyInfo.setApprovedStatus(1);
|
|
cwjsPolicyInfo.setApprovedStatus(1);
|
|
|
firstAudit = "legalAffairs";
|
|
firstAudit = "legalAffairs";
|
|
|
|
|
+
|
|
|
|
|
+ //助理给销售总监创建
|
|
|
|
|
+ }else if (StringUtils.equals(roleCode,"saleDirector") && !StringUtils.equals(cwjsPolicyInfo.getCreateUserId(),cwjsPolicyInfo.getSaleId())){
|
|
|
|
|
+ //审核人是销售总监自己
|
|
|
|
|
+ firstAudit = cwjsPolicyInfo.getSaleId();
|
|
|
}else {
|
|
}else {
|
|
|
//销售的 上级
|
|
//销售的 上级
|
|
|
firstAudit = examineUser.getString("leaderId");
|
|
firstAudit = examineUser.getString("leaderId");
|