|
|
@@ -40,6 +40,7 @@ import com.hz.pm.api.projectdeclared.model.req.*; |
|
|
|
import com.hz.pm.api.projectdeclared.model.req.SubmitPurchaseNoticeReq.PurchaseNoticeTenderDTO; |
|
|
|
import com.hz.pm.api.projectdeclared.model.vo.*; |
|
|
|
import com.hz.pm.api.projectdeclared.service.*; |
|
|
|
import com.hz.pm.api.projectlib.entity.ProjectGovSystemReplaceInfos; |
|
|
|
import com.hz.pm.api.projectlib.entity.PurchaseStatusChange; |
|
|
|
import com.hz.pm.api.projectlib.helper.ProjectManageUtil; |
|
|
|
import com.hz.pm.api.projectlib.model.entity.Project; |
|
|
@@ -49,6 +50,7 @@ import com.hz.pm.api.projectlib.model.enumeration.status.*; |
|
|
|
import com.hz.pm.api.projectlib.model.req.ProjectListReq; |
|
|
|
import com.hz.pm.api.projectlib.model.vo.ProjectLibListItemVO; |
|
|
|
import com.hz.pm.api.projectlib.model.vo.TenderListInfoVO; |
|
|
|
import com.hz.pm.api.projectlib.service.IProjectGovSystemReplaceInfosService; |
|
|
|
import com.hz.pm.api.projectlib.service.IProjectInstService; |
|
|
|
import com.hz.pm.api.projectlib.service.IProjectService; |
|
|
|
import com.hz.pm.api.projectlib.service.IPurchaseStatusChangeService; |
|
|
@@ -127,6 +129,7 @@ public class PurchaseManage { |
|
|
|
private final MhXchxFileHelper mhXchxFileHelper; |
|
|
|
private final IPurchaseStatusChangeService purchaseStatusChangeService; |
|
|
|
private final MhUnitQueryAuthHelper mhUnitQueryAuthHelper; |
|
|
|
private final IProjectGovSystemReplaceInfosService projectGovSystemReplaceInfosService; |
|
|
|
|
|
|
|
public PurchaseProgressStatVO purchaseProgressStatistics(ProjectListReq req) { |
|
|
|
UserInfoDetails user = LoginUserUtil.loginUserDetail(); |
|
|
@@ -439,6 +442,20 @@ public class PurchaseManage { |
|
|
|
return purchase; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
purchaseService.saveOrUpdateBatch(purchases); |
|
|
|
List<ProjectGovSystemReplaceInfos> projectGovSystemReplaceInfos = new ArrayList<>(); |
|
|
|
for (int i = 0; i < req.getTenders().size(); i++) { |
|
|
|
List<Long> systemReplaceInfoIds = req.getTenders().get(i).getSystemReplaceInfoIds(); |
|
|
|
if (CollUtil.isNotEmpty(systemReplaceInfoIds)) { |
|
|
|
Long bidId = purchases.get(i).getId(); |
|
|
|
for (Long systemReplaceInfoId : systemReplaceInfoIds) { |
|
|
|
ProjectGovSystemReplaceInfos replaceInfos = new ProjectGovSystemReplaceInfos(); |
|
|
|
replaceInfos.setId(systemReplaceInfoId); |
|
|
|
replaceInfos.setBidId(bidId); |
|
|
|
projectGovSystemReplaceInfos.add(replaceInfos); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
projectGovSystemReplaceInfosService.updateBatchById(projectGovSystemReplaceInfos); |
|
|
|
projectStateMachineUtil.pass(project); |
|
|
|
projectService.updateById(project); |
|
|
|
// 发布采购公告 |
|
|
|