|
|
|
@ -102,23 +102,21 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
//根据业务id查询业务申请详细信息
|
|
|
|
|
DgApplyAmountInfoResponse dgApplyAmountInfo = dgApplyAmountInfoMapper.selectApplyAmountInfoById(guaranteeAssignUser.getBusinessId()); |
|
|
|
|
String measures = dgApplyAmountInfo.getEnGuaranteeMeasures(); |
|
|
|
|
if (measures.length() > 0) { |
|
|
|
|
String a = measures.substring(1, measures.length() - 1); |
|
|
|
|
String arry[] = a.split(","); |
|
|
|
|
List<String> demoList = Arrays.asList(arry); |
|
|
|
|
dgApplyAmountInfo.setEnGuaranteeMeasure(demoList); |
|
|
|
|
System.out.println("arry===============" + demoList); |
|
|
|
|
if(measures != null){ |
|
|
|
|
if (measures.length() > 0) { |
|
|
|
|
String a = measures.substring(1, measures.length() - 1); |
|
|
|
|
String arry[] = a.split(","); |
|
|
|
|
List<String> demoList = Arrays.asList(arry); |
|
|
|
|
dgApplyAmountInfo.setEnGuaranteeMeasure(demoList); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
System.out.println("业务申请详细=========" + dgApplyAmountInfo); |
|
|
|
|
|
|
|
|
|
DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); |
|
|
|
|
applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); |
|
|
|
|
//根据企业id查询企业详情
|
|
|
|
|
ResponseResult result = crmsFeignService.queryCustomerInfoById(applyAmountInfo); |
|
|
|
|
|
|
|
|
|
LinkedHashMap linkedList = (LinkedHashMap) result.getData(); |
|
|
|
|
System.out.println("企业详细============" + linkedList); |
|
|
|
|
|
|
|
|
|
//查询附件详细,附件关联业务主键id
|
|
|
|
|
DgEnclosureInfoResponse dgEnclosureInfo = dgEnclosureInfoMapper.selectByCompanyId(guaranteeAssignUser.getBusinessId()); |
|
|
|
@ -148,7 +146,6 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
String arr1[] = a1.split(","); |
|
|
|
|
arr1List = Arrays.asList(arr1); |
|
|
|
|
arr1List2.add(i, arr1List); |
|
|
|
|
System.out.println("arr1LIst====" + arr1List); |
|
|
|
|
} else { |
|
|
|
|
arr1List2.add(i, null); |
|
|
|
|
} |
|
|
|
@ -168,7 +165,6 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
dgEnclosureInfo.setMeetingMinutesList((List<String>) arr1List2.get(12)); |
|
|
|
|
dgEnclosureInfo.setMarriageCopyList((List<String>) arr1List2.get(13)); |
|
|
|
|
|
|
|
|
|
System.out.println("附件详细==============" + dgEnclosureInfo); |
|
|
|
|
|
|
|
|
|
//查询担保部经理审核的金额和期限
|
|
|
|
|
DgGuaranteeAssignUser assignUser = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
@ -540,21 +536,31 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
dgGuaranteeAssignUser2.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
|
dgGuaranteeAssignUserMapper.insert(dgGuaranteeAssignUser2); |
|
|
|
|
|
|
|
|
|
List<DgGuaranteePO> list = new ArrayList(); |
|
|
|
|
DgGuaranteePO dgGuaranteePO1 = new DgGuaranteePO(); |
|
|
|
|
dgGuaranteePO1.setUserId(guaranteeRequest.getEmpAId().longValue()); |
|
|
|
|
dgGuaranteePO1.setRoleId(PromptSuccess.DB_A_ID.longValue()); |
|
|
|
|
DgGuaranteePO dgGuaranteePO2 = new DgGuaranteePO(); |
|
|
|
|
dgGuaranteePO2.setUserId(guaranteeRequest.getEmpBId().longValue()); |
|
|
|
|
dgGuaranteePO2.setRoleId(PromptSuccess.DB_B_ID.longValue()); |
|
|
|
|
list.add(dgGuaranteePO1); |
|
|
|
|
list.add(dgGuaranteePO2); |
|
|
|
|
//批量绑定角色关系
|
|
|
|
|
hrmsFeignService.insertUsrRole(list); |
|
|
|
|
//查询用户角色表是否已绑定,如果没有绑定,则去往绑定页面
|
|
|
|
|
ResponseResult i = hrmsFeignService.selectUserRole(guaranteeRequest.getEmpAId().longValue(), PromptSuccess.DB_A_ID.longValue()); |
|
|
|
|
ResponseResult u = hrmsFeignService.selectUserRole(guaranteeRequest.getEmpBId().longValue(),PromptSuccess.DB_B_ID.longValue()); |
|
|
|
|
int a = (int) i.getData(); |
|
|
|
|
int b = (int) u.getData(); |
|
|
|
|
int sum = a+b; |
|
|
|
|
if(sum==0){ |
|
|
|
|
List<DgGuaranteePO> list = new ArrayList(); |
|
|
|
|
DgGuaranteePO dgGuaranteePO1 = new DgGuaranteePO(); |
|
|
|
|
dgGuaranteePO1.setUserId(guaranteeRequest.getEmpAId().longValue()); |
|
|
|
|
dgGuaranteePO1.setRoleId(PromptSuccess.DB_A_ID.longValue()); |
|
|
|
|
DgGuaranteePO dgGuaranteePO2 = new DgGuaranteePO(); |
|
|
|
|
dgGuaranteePO2.setUserId(guaranteeRequest.getEmpBId().longValue()); |
|
|
|
|
dgGuaranteePO2.setRoleId(PromptSuccess.DB_B_ID.longValue()); |
|
|
|
|
list.add(dgGuaranteePO1); |
|
|
|
|
list.add(dgGuaranteePO2); |
|
|
|
|
//批量绑定角色关系
|
|
|
|
|
hrmsFeignService.insertUsrRole(list); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//hrmsFeignService.insertUserRole(guaranteeRequest.getEmpAId().longValue(),PromptSuccess.DB_A_ID.longValue());
|
|
|
|
|
//hrmsFeignService.insertUserRole(guaranteeRequest.getEmpBId().longValue(),PromptSuccess.DB_B_ID.longValue());
|
|
|
|
|
return new ResponseResult(); |
|
|
|
|
return ResponseResult.SUCCESS(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|