|
|
@@ -97,6 +97,7 @@ public class FinalAcceptanceManage { |
|
|
|
private final TenderStateMachineUtil tenderStateMachineUtil; |
|
|
|
private final IProjectInstService projectInstService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 待采购的-项目列表 |
|
|
|
* |
|
|
@@ -108,8 +109,13 @@ public class FinalAcceptanceManage { |
|
|
|
LambdaQueryWrapper<Project> query = ProjectHelper.projectQuery(req); |
|
|
|
//待终验 并且还未过期 |
|
|
|
//只能看自己单位的 |
|
|
|
Set<Long> projectIds = purchaseService.listProjectIdByStatus(TenderStatusEnum.FINALLY_INSPECTED_FAILED, |
|
|
|
TenderStatusEnum.TO_BE_SUBMIT_FINALLY_INSPECTED_APPLY); |
|
|
|
if (projectIds.isEmpty()) { |
|
|
|
return PageVo.empty(); |
|
|
|
} |
|
|
|
query.eq(Project::getBuildOrgCode, user.getMhUnitIdStr()); |
|
|
|
query.eq(Project::getStatus, ProjectStatusEnum.TO_BE_FINALLY_INSPECTED.getCode()); |
|
|
|
query.in(Project::getId, projectIds); |
|
|
|
query.eq(Project::getStage, ProjectStatusEnum.PROJECT_APPROVED.getCode()); |
|
|
|
query.eq(Project::getNewest, Boolean.TRUE); |
|
|
|
query.orderByAsc(Project::getApprovalDate); |
|
|
@@ -118,11 +124,11 @@ public class FinalAcceptanceManage { |
|
|
|
if ((total = page.getTotal()) == 0) { |
|
|
|
return PageVo.empty(); |
|
|
|
} |
|
|
|
List<Long> projectIds = new ArrayList<>(); |
|
|
|
List<Long> allProjectIds = new ArrayList<>(); |
|
|
|
for (Project project : page.getRecords()) { |
|
|
|
projectIds.add(project.getId()); |
|
|
|
allProjectIds.add(project.getId()); |
|
|
|
} |
|
|
|
List<Purchase> purchases = purchaseService.listByProjectIds(projectIds); |
|
|
|
List<Purchase> purchases = purchaseService.listByProjectIds(allProjectIds); |
|
|
|
Map<Long, List<Purchase>> purchaseMap = CollUtils.group(purchases, Purchase::getProjectId); |
|
|
|
Map<Long, Contract> contractMap = contractService.listByProjectIds(projectIds); |
|
|
|
Map<Long, List<ProjectAnnualPaymentPlan>> paymentPlansMap = projectAnnualPaymentPlanService.listByProjectIds(projectIds); |
|
|
|