|
|
@@ -369,6 +369,9 @@ public class PurchaseManage { |
|
|
|
if (purchase.getId() == null) { |
|
|
|
purchase.setCreateBy(user.getUserIdStr()); |
|
|
|
} |
|
|
|
purchase.setSelfTestStatus(TenderSelfTestStatusEnum.WITHOUT_SELF_TEST_INFO.getCode()); |
|
|
|
purchase.setTestValidStatus(TenderTestValidStatusEnum.WITHOUT_TEST_VALID_INFO.getCode()); |
|
|
|
purchase.setAdaptStatus(TenderAdaptStatusEnum.WITHOUT_ADAPT_INFO.getCode()); |
|
|
|
purchase.setStatus(TenderStatusEnum.TO_BE_SUBMIT_PURCHASE_INFO.getTenderStatus()); |
|
|
|
notices.add(buildPurchaseNotice(w, user)); |
|
|
|
return purchase; |
|
|
@@ -499,10 +502,16 @@ public class PurchaseManage { |
|
|
|
}); |
|
|
|
} |
|
|
|
List<Long> projectIds = CollUtils.fieldList(records, Purchase::getProjectId); |
|
|
|
List<Project> projects = projectService.listByIds(projectIds); |
|
|
|
Map<Long, Project> projectMap = CollUtils.listToMap(projects, Project::getId); |
|
|
|
Map<Long, Contract> contractMap = contractService.listByProjectIds(projectIds); |
|
|
|
List<TestValidListVO> data = records.stream().map(w -> { |
|
|
|
TestValidListVO item = new TestValidListVO(); |
|
|
|
item.setBidId(w.getId()); |
|
|
|
Project project = projectMap.get(w.getProjectId()); |
|
|
|
if (project != null) { |
|
|
|
item.setProjectName(project.getProjectName()); |
|
|
|
} |
|
|
|
item.setBizName(w.getBidName()); |
|
|
|
item.setProjectId(w.getProjectId()); |
|
|
|
String projectCode = ProjectIdCodeCacheUtil.get(w.getProjectId()); |
|
|
|