|
@@ -141,7 +141,7 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
);
|
|
|
//封装申请消息
|
|
|
ApplyPageResponse applyPageResponse = new ApplyPageResponse();
|
|
|
- packCompanyApplyStatusCount(mtCompanyAttestationListResult, applyPageResponse);
|
|
|
+ packCompanyApplyStatusCount(mtCompanyAttestationListResult, applyPageResponse, companyAttestationRequest.getIsCertificated());
|
|
|
|
|
|
//封装具体信息
|
|
|
Long currentUserId = companyAttestationRequest.getCurrentUserId();
|
|
@@ -188,6 +188,7 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
mtCompanyAttestationPage.setRecords(companyAttestationResponseList);
|
|
|
}
|
|
|
applyPageResponse.setPage(mtCompanyAttestationPage);
|
|
|
+ applyPageResponse.setCount(mtCompanyAttestationPage.getTotal());
|
|
|
return RestResponse.success(applyPageResponse, ApiConstants.RESULT_SUCCESS, "获取公司申请信息成功");
|
|
|
}
|
|
|
|
|
@@ -197,7 +198,8 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
* @description 封装企业申请消息对应条数
|
|
|
* @date 2020-01-06 23:17
|
|
|
*/
|
|
|
- private void packCompanyApplyStatusCount(List<MtCompanyAttestation> mtCompanyAttestationListResult, ApplyPageResponse applyPageResponse) {
|
|
|
+ private void packCompanyApplyStatusCount(List<MtCompanyAttestation> mtCompanyAttestationListResult,
|
|
|
+ ApplyPageResponse applyPageResponse, int isCertificated) {
|
|
|
Map<Integer, Long> statusToCount = userApplicationService.getApplyStatusToCountMap(mtCompanyAttestationListResult,
|
|
|
CommonConstants.COMPANY_ATTESTATION_STATUS, "isCertificated");
|
|
|
//待审核
|
|
@@ -206,6 +208,8 @@ public class MtCompanyAttestationServiceImpl extends ServiceImpl<MtCompanyAttest
|
|
|
applyPageResponse.setApplyPassCount(statusToCount.get(ApiConstants.CompanyConstants.MAINTENANCE_PASS));
|
|
|
//审核未通过
|
|
|
applyPageResponse.setApplyFailCount(statusToCount.get(ApiConstants.CompanyConstants.MAINTENANCE_FAIL));
|
|
|
+ //当前状态为筛选条数
|
|
|
+ applyPageResponse.setCount(statusToCount.get(isCertificated));
|
|
|
}
|
|
|
|
|
|
/***
|