|
|
@ -2,13 +2,16 @@ package com.daqing.financial.guarantee.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgAuditProcessMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.*; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgEfficiencyMapper; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.response.BusinessApplicationListResponse; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.response.DgNoticeListResponse; |
|
|
|
import com.daqing.financial.guarantee.model.response.EfficiencyApprovalResponse; |
|
|
|
import com.daqing.financial.guarantee.model.response.EfficiencyApprovalResponse; |
|
|
|
import com.daqing.financial.guarantee.service.IDgEfficiencyService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgEfficiencyService; |
|
|
|
import com.daqing.financial.guarantee.util.DateUtils; |
|
|
|
import com.daqing.financial.guarantee.util.DateUtils; |
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
|
|
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
|
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -33,6 +36,26 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private DgAuditProcessMapper dgAuditProcessMapper; |
|
|
|
private DgAuditProcessMapper dgAuditProcessMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgApplyAmountListMapper dgApplyAmountListMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgGuaranteeAssignUserMapper dgGuaranteeAssignUserMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgAssetsInvestigationMapper dgAssetsInvestigationMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgMessageInvestigationMapper dgMessageInvestigationMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgComplianceInvestigationMapper dgComplianceInvestigationMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgWorkConferenceConsiderMapper dgWorkConferenceConsiderMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgLoanCommitteeConsiderMapper dgLoanCommitteeConsiderMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgGuaranteeLetterAssignUserMapper dgGuaranteeLetterAssignUserMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgPaymentConfirmationConsiderMapper dgPaymentConfirmationConsiderMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgLoanNoticeMapper dgLoanNoticeMapper; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 团队效率 |
|
|
|
* 团队效率 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -141,8 +164,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map approvalNum() { |
|
|
|
public Map approvalNum() { |
|
|
|
//获取当前用户id
|
|
|
|
//获取当前用户id
|
|
|
|
//String userId = dgApplyAmountInfoController.getUserId();
|
|
|
|
String userId = dgApplyAmountInfoController.getUserId(); |
|
|
|
String userId = "5"; |
|
|
|
|
|
|
|
//近十天的日期数组
|
|
|
|
//近十天的日期数组
|
|
|
|
List<String>timeList = dgAuditProcessMapper.selectTenDays(Integer.parseInt(userId)); |
|
|
|
List<String>timeList = dgAuditProcessMapper.selectTenDays(Integer.parseInt(userId)); |
|
|
|
//近十天审批数目的值的数组
|
|
|
|
//近十天审批数目的值的数组
|
|
|
@ -152,4 +174,96 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA |
|
|
|
map.put("approvalNumArr",approvalList); |
|
|
|
map.put("approvalNumArr",approvalList); |
|
|
|
return map; |
|
|
|
return map; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 查询审批数目的值的数组 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public List notice() { |
|
|
|
|
|
|
|
//获取当前用户id
|
|
|
|
|
|
|
|
//String userId = dgApplyAmountInfoController.getUserId();
|
|
|
|
|
|
|
|
String userId = "5"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据角色查询资产部调查列表
|
|
|
|
|
|
|
|
String roleIds = RedisUtil.get("dq:userRole:" + userId); |
|
|
|
|
|
|
|
PageUtils data = null; |
|
|
|
|
|
|
|
List<String> roleIdlist = new ArrayList<>(); |
|
|
|
|
|
|
|
if(roleIds != null) { |
|
|
|
|
|
|
|
String[] ids = roleIds.split(","); |
|
|
|
|
|
|
|
roleIdlist = Arrays.asList(ids); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//查询业务管理模块该用户待处理的记录
|
|
|
|
|
|
|
|
//业务申请模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list1 = dgApplyAmountListMapper.selectApplyList(userId,roleIdlist); |
|
|
|
|
|
|
|
List<DgNoticeListResponse> list = new ArrayList(); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list1) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:业务申请:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//担保部调查模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list2 = dgGuaranteeAssignUserMapper.selectGuaranteeList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list2) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:担保部调查:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//资产部调查模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list3 = dgAssetsInvestigationMapper.selectAssetsList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list3) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:资产部调查:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//信息部调查模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list4 = dgMessageInvestigationMapper.selectMessageList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list4) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:信息部调查:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//合规调查模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list5 = dgComplianceInvestigationMapper.selectComplianceList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list5) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:合规调查:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//工作会模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list6 = dgWorkConferenceConsiderMapper.selectWorkConferenceList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list6) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:工作会:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//贷审会模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list7 = dgLoanCommitteeConsiderMapper.selectLoanCommitteeList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list7) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:贷审会:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//担保函模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list8 = dgGuaranteeLetterAssignUserMapper.selectGuaranteeLetterList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list8) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:担保函:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//回款确认模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list9 = dgPaymentConfirmationConsiderMapper.selectPaymentConfirmationList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list9) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:回款确认:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//放款通知模块,查询该用户待处理的记录
|
|
|
|
|
|
|
|
List<DgNoticeListResponse> list10 = dgLoanNoticeMapper.selectLoanNoticeList(userId,roleIdlist); |
|
|
|
|
|
|
|
for (DgNoticeListResponse res:list10) { |
|
|
|
|
|
|
|
res.setBusinessCode("您有一个待办任务需办理,评审内容:放款通知:"+res.getBusinessCode()); |
|
|
|
|
|
|
|
list.add(res); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return list; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |