|
|
@ -102,15 +102,14 @@ 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 != null){ |
|
|
|
if (measures.length() > 0) { |
|
|
|
if (measures.length() > 0) { |
|
|
|
String a = measures.substring(1, measures.length() - 1); |
|
|
|
String a = measures.substring(1, measures.length() - 1); |
|
|
|
String arry[] = a.split(","); |
|
|
|
String arry[] = a.split(","); |
|
|
|
List<String> demoList = Arrays.asList(arry); |
|
|
|
List<String> demoList = Arrays.asList(arry); |
|
|
|
dgApplyAmountInfo.setEnGuaranteeMeasure(demoList); |
|
|
|
dgApplyAmountInfo.setEnGuaranteeMeasure(demoList); |
|
|
|
System.out.println("arry===============" + demoList); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
System.out.println("业务申请详细=========" + dgApplyAmountInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); |
|
|
|
DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); |
|
|
|
applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); |
|
|
|
applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); |
|
|
@ -118,7 +117,6 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
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,6 +536,13 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
dgGuaranteeAssignUser2.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
dgGuaranteeAssignUser2.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
dgGuaranteeAssignUserMapper.insert(dgGuaranteeAssignUser2); |
|
|
|
dgGuaranteeAssignUserMapper.insert(dgGuaranteeAssignUser2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询用户角色表是否已绑定,如果没有绑定,则去往绑定页面
|
|
|
|
|
|
|
|
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(); |
|
|
|
List<DgGuaranteePO> list = new ArrayList(); |
|
|
|
DgGuaranteePO dgGuaranteePO1 = new DgGuaranteePO(); |
|
|
|
DgGuaranteePO dgGuaranteePO1 = new DgGuaranteePO(); |
|
|
|
dgGuaranteePO1.setUserId(guaranteeRequest.getEmpAId().longValue()); |
|
|
|
dgGuaranteePO1.setUserId(guaranteeRequest.getEmpAId().longValue()); |
|
|
@ -551,10 +554,13 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
list.add(dgGuaranteePO2); |
|
|
|
list.add(dgGuaranteePO2); |
|
|
|
//批量绑定角色关系
|
|
|
|
//批量绑定角色关系
|
|
|
|
hrmsFeignService.insertUsrRole(list); |
|
|
|
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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|