|
|
|
@ -244,6 +244,32 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
return map; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取当前月份的每天的新建审批数量 |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public List<Map<String, Integer>> getNewBusinessCount() { |
|
|
|
|
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
|
// 本月开始时间
|
|
|
|
|
String beginTime = dateFormat.format(DateUtils.getBeginDayOfMonth()); |
|
|
|
|
// 本月结束时间
|
|
|
|
|
String endTime = dateFormat.format(DateUtils.getEndDayOfMonth()); |
|
|
|
|
|
|
|
|
|
return applyAmountInfoMapper.getNewBusinessCount(beginTime, endTime); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取今天新建审批数量并按申请类型分类 |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public Map<String, Integer> getTodayBusinessCount() { |
|
|
|
|
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
|
|
|
|
|
|
return applyAmountInfoMapper.getTodayBusinessCount(dateFormat.format(new Date())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<PersonalEfficiencyListResponse> queryPersonalEfficiencyList() { |
|
|
|
|
int size = 100; |
|
|
|
@ -274,7 +300,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
//业务申请列表查询
|
|
|
|
|
IPage<BusinessApplicationListResponse> positionVO = applyAmountListMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId()); |
|
|
|
|
List<BusinessApplicationListResponse> records = positionVO.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0){ |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(businessApplicationListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = businessApplicationListResponse.getBusinessId(); |
|
|
|
@ -296,7 +322,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
// 担保部调查列表
|
|
|
|
|
IPage<GuaranteeListResponse> positionVO = guaranteeAssignUserMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId(), null); |
|
|
|
|
List<GuaranteeListResponse> records = positionVO.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(guaranteeListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = guaranteeListResponse.getBusinessId(); |
|
|
|
@ -310,8 +336,8 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -322,7 +348,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
// 资产部调查列表
|
|
|
|
|
IPage<AssetsInvestigationListResponse> positionVO = assetsInvestigationMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId(), null); |
|
|
|
|
List<AssetsInvestigationListResponse> records = positionVO.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(assetsInvestigationListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = assetsInvestigationListResponse.getBusinessId(); |
|
|
|
@ -336,8 +362,8 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -348,7 +374,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
// 信息部调查列表
|
|
|
|
|
IPage<MessageInvestigationListResponse> positionVO = messageInvestigationMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId(), null); |
|
|
|
|
List<MessageInvestigationListResponse> records = positionVO.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(messageInvestigationListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = messageInvestigationListResponse.getBusinessId(); |
|
|
|
@ -362,20 +388,20 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//担保部A/B角、法规经理角色、法规部C角、法规部分管领导
|
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_C_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_LD_ID))) { |
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.FG_C_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.FG_LD_ID))) { |
|
|
|
|
// 合规调查列表
|
|
|
|
|
DgComplianceInvestigationRequest dgComplianceInvestigationRequest = new DgComplianceInvestigationRequest(); |
|
|
|
|
IPage<DgComplianceInvestigationResponse> list = complianceInvestigationMapper.list(new Page(1, size), dgComplianceInvestigationRequest, roleList, currentUser); |
|
|
|
|
List<DgComplianceInvestigationResponse> records = list.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(dgComplianceInvestigationResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = dgComplianceInvestigationResponse.getBusinessId(); |
|
|
|
@ -389,8 +415,8 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -400,7 +426,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.GZU_ID))) { |
|
|
|
|
IPage<DgWorkConferencePO> list = workConferenceConsiderMapper.list(new Page(1, size), "", roleList, currentUser); |
|
|
|
|
List<DgWorkConferencePO> records = list.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(dgWorkConferencePO -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = dgWorkConferencePO.getBusinessId(); |
|
|
|
@ -414,18 +440,18 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//担保部A/B角、贷审会
|
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DSH_ID))) { |
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DSH_ID))) { |
|
|
|
|
IPage<DgLoanCommitteeConsiderResponse> list = loanCommitteeConsiderMapper.list(new Page(1, size), "", roleList, currentUser); |
|
|
|
|
List<DgLoanCommitteeConsiderResponse> records = list.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(dgLoanCommitteeConsiderResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
Integer businessId = dgLoanCommitteeConsiderResponse.getBusinessId(); |
|
|
|
@ -439,19 +465,19 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//法规经理、担保部A/B角、资产部经理
|
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))|roleIdList.contains(String.valueOf(PromptSuccess.ZC_JL_ID)) ) { |
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.ZC_JL_ID))) { |
|
|
|
|
//担保函
|
|
|
|
|
IPage<GuaranteeLetterListResponse> iPage = guaranteeLetterAssignUserMapper.pageByCondition(new Page(1, size), currentUser, roleIdList, null, null); |
|
|
|
|
List<GuaranteeLetterListResponse> records = iPage.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(guaranteeLetterListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
String name = guaranteeLetterListResponse.getName(); |
|
|
|
@ -465,19 +491,19 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//财务部、法规经理
|
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.CWB_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))) { |
|
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.CWB_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))) { |
|
|
|
|
//回款确认
|
|
|
|
|
IPage<PaymentConfirmationListResponse> iPage = paymentConfirmationConsiderMapper.pageByCondition(new Page(1, size), roleIdList, currentUser, null, null); |
|
|
|
|
List<PaymentConfirmationListResponse> records = iPage.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(paymentConfirmationListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
String name = paymentConfirmationListResponse.getName(); |
|
|
|
@ -491,8 +517,8 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -503,7 +529,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
//放款通知
|
|
|
|
|
IPage<LoanNoticeListResponse> iPage = loanNoticeMapper.pageByCondition(new Page(1, size), roleIdList, currentUser, null, null); |
|
|
|
|
List<LoanNoticeListResponse> records = iPage.getRecords(); |
|
|
|
|
if (records!=null && records.size()!=0) { |
|
|
|
|
if (records != null && records.size() != 0) { |
|
|
|
|
records.forEach(loanNoticeListResponse -> { |
|
|
|
|
StatusPO statusPO = new StatusPO(); |
|
|
|
|
String name = loanNoticeListResponse.getName(); |
|
|
|
@ -517,8 +543,8 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
statusPO.setName(name); |
|
|
|
|
statusPO.setStatus(status); |
|
|
|
|
//相同业务中,如果已经是待处理则数据不覆盖
|
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){ |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(businessId); |
|
|
|
|
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)) { |
|
|
|
|
hashMap.put(businessId, statusPO); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -528,7 +554,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
for (Integer key : hashMap.keySet()) { |
|
|
|
|
PersonalEfficiencyListResponse efficiencyListResponse = new PersonalEfficiencyListResponse(); |
|
|
|
|
efficiencyListResponse.setBusinessId(key); |
|
|
|
|
StatusPO po = (StatusPO)hashMap.get(key); |
|
|
|
|
StatusPO po = (StatusPO) hashMap.get(key); |
|
|
|
|
Integer businessStatus = po.getBusinessStatus(); |
|
|
|
|
Integer operatingStatus = po.getOperatingStatus(); |
|
|
|
|
Integer processId = po.getProcessId(); |
|
|
|
@ -549,7 +575,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
efficiencyListResponse.setApplicationDate(new SimpleDateFormat("yyyy-MM-dd").format(createTime)); |
|
|
|
|
//用户处理过业务,统计耗时
|
|
|
|
|
QueryWrapper<DgAuditProcess> wrapper = new QueryWrapper<>(); |
|
|
|
|
wrapper.eq("user_id", currentUser).eq("business_id",key); |
|
|
|
|
wrapper.eq("user_id", currentUser).eq("business_id", key); |
|
|
|
|
List<DgAuditProcess> auditProcessList = dgAuditProcessMapper.selectList(wrapper); |
|
|
|
|
if (auditProcessList != null && auditProcessList.size() != 0) { |
|
|
|
|
//获取累计耗时,完成时间
|
|
|
|
@ -572,7 +598,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
wrapper.eq("business_id", businessId).orderByAsc("create_time"); |
|
|
|
|
List<DgAuditProcess> auditProcessList = dgAuditProcessMapper.selectList(wrapper); |
|
|
|
|
long countTime = 0L; |
|
|
|
|
if (auditProcessList.size()>1){ |
|
|
|
|
if (auditProcessList.size() > 1) { |
|
|
|
|
//遍历业务流程数据,统计该用户的耗时
|
|
|
|
|
for (int i = 1; i <= auditProcessList.size() - 1; i++) { |
|
|
|
|
//从第二条数据开始,获取该数据
|
|
|
|
@ -602,11 +628,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
|
|
|
|
|
public static String countTime(String totalTime) { |
|
|
|
|
long time = Long.parseLong(totalTime); |
|
|
|
|
long days = time/ (1000 * 60 * 60 * 24); |
|
|
|
|
long hours = (time% (1000 * 60 * 60 * 24)) / (1000 * 60 * 60); |
|
|
|
|
long minutes = (time% (1000 * 60 * 60)) / (1000 * 60); |
|
|
|
|
long seconds = (time% (1000 * 60)) / 1000; |
|
|
|
|
return days + "天" + hours + "小时"+ minutes +"分钟"; |
|
|
|
|
long days = time / (1000 * 60 * 60 * 24); |
|
|
|
|
long hours = (time % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60); |
|
|
|
|
long minutes = (time % (1000 * 60 * 60)) / (1000 * 60); |
|
|
|
|
long seconds = (time % (1000 * 60)) / 1000; |
|
|
|
|
return days + "天" + hours + "小时" + minutes + "分钟"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -621,6 +647,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 查询审批数目的值的数组 |
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -632,78 +659,78 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
|
String roleIds = RedisUtil.get("dq:userRole:" + userId); |
|
|
|
|
PageUtils data = null; |
|
|
|
|
List<String> roleIdlist = new ArrayList<>(); |
|
|
|
|
if(roleIds != null) { |
|
|
|
|
if (roleIds != null) { |
|
|
|
|
String[] ids = roleIds.split(","); |
|
|
|
|
roleIdlist = Arrays.asList(ids); |
|
|
|
|
} |
|
|
|
|
//查询业务管理模块该用户待处理的记录
|
|
|
|
|
//业务申请模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list1 = applyAmountListMapper.selectApplyList(userId,roleIdlist); |
|
|
|
|
List<DgNoticeListResponse> list1 = applyAmountListMapper.selectApplyList(userId, roleIdlist); |
|
|
|
|
List<DgNoticeListResponse> list = new ArrayList(); |
|
|
|
|
for (DgNoticeListResponse res:list1) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:业务申请:"+res.getBusinessCode()); |
|
|
|
|
for (DgNoticeListResponse res : list1) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:业务申请:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//担保部调查模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list2 = guaranteeAssignUserMapper.selectGuaranteeList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list2) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:担保部调查:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list2 = guaranteeAssignUserMapper.selectGuaranteeList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list2) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:担保部调查:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//资产部调查模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list3 = assetsInvestigationMapper.selectAssetsList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list3) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:资产部调查:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list3 = assetsInvestigationMapper.selectAssetsList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list3) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:资产部调查:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//信息部调查模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list4 = messageInvestigationMapper.selectMessageList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list4) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:信息部调查:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list4 = messageInvestigationMapper.selectMessageList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list4) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:信息部调查:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//合规调查模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list5 = complianceInvestigationMapper.selectComplianceList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list5) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:合规调查:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list5 = complianceInvestigationMapper.selectComplianceList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list5) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:合规调查:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//工作会模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list6 = workConferenceConsiderMapper.selectWorkConferenceList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list6) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:工作会:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list6 = workConferenceConsiderMapper.selectWorkConferenceList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list6) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:工作会:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//贷审会模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list7 = loanCommitteeConsiderMapper.selectLoanCommitteeList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list7) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:贷审会:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list7 = loanCommitteeConsiderMapper.selectLoanCommitteeList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list7) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:贷审会:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//担保函模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list8 = guaranteeLetterAssignUserMapper.selectGuaranteeLetterList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list8) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:担保函:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list8 = guaranteeLetterAssignUserMapper.selectGuaranteeLetterList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list8) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:担保函:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
//回款确认模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list9 = paymentConfirmationConsiderMapper.selectPaymentConfirmationList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list9) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:回款确认:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list9 = paymentConfirmationConsiderMapper.selectPaymentConfirmationList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list9) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:回款确认:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//放款通知模块,查询该用户待处理的记录
|
|
|
|
|
List<DgNoticeListResponse> list10 = loanNoticeMapper.selectLoanNoticeList(userId,roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res:list10) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:放款通知:"+res.getBusinessCode()); |
|
|
|
|
List<DgNoticeListResponse> list10 = loanNoticeMapper.selectLoanNoticeList(userId, roleIdlist); |
|
|
|
|
for (DgNoticeListResponse res : list10) { |
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:放款通知:" + res.getBusinessCode()); |
|
|
|
|
list.add(res); |
|
|
|
|
} |
|
|
|
|
return list; |
|
|
|
|