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