|
@ -74,7 +74,7 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
int rows = screenProjectDataService.checkIfExisted(param.getCustomerId()); |
|
|
int rows = screenProjectDataService.checkIfExisted(param.getCustomerId()); |
|
|
|
|
|
|
|
|
List<ScreenProjectDataDTO> metaData = |
|
|
List<ScreenProjectDataDTO> metaData = |
|
|
originMainService.initNewScreenProjectData(param.getCustomerId(), rows , param.getDateId()); |
|
|
originMainService.initNewScreenProjectData(param.getCustomerId(), rows , param.getDateId(), param.getProjectId()); |
|
|
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(metaData)) { |
|
|
if(!CollectionUtils.isEmpty(metaData)) { |
|
|
// 查询项目信息
|
|
|
// 查询项目信息
|
|
@ -135,6 +135,7 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
|
|
|
|
|
|
ScreenProjectDataDTO orientCase = new ScreenProjectDataDTO(); |
|
|
ScreenProjectDataDTO orientCase = new ScreenProjectDataDTO(); |
|
|
orientCase.setCustomerId(param.getCustomerId()); |
|
|
orientCase.setCustomerId(param.getCustomerId()); |
|
|
|
|
|
orientCase.setProjectId( param.getProjectId()); |
|
|
//待更新的数据 需要检测更新的字段为:①projectStatusCode ②closeCaseTime ③allCategoryName ④projectLevel
|
|
|
//待更新的数据 需要检测更新的字段为:①projectStatusCode ②closeCaseTime ③allCategoryName ④projectLevel
|
|
|
List<ScreenProjectDataDTO> orientData = |
|
|
List<ScreenProjectDataDTO> orientData = |
|
|
screenProjectDataService.getPending(orientCase,param.getDateId()); |
|
|
screenProjectDataService.getPending(orientCase,param.getDateId()); |
|
@ -188,7 +189,8 @@ public class ScreenProjectSettleServiceImpl implements ScreenProjectSettleServic |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
List<ScreenProjectProcessDTO> processes = processService.buildNewScreenProjectProcessData(param.getCustomerId(), param.getDateId(),!screenProjectProcessService.checkIfHistoricalDataExists(param.getCustomerId())); |
|
|
List<ScreenProjectProcessDTO> processes = processService.buildNewScreenProjectProcessData(param.getCustomerId(), param.getDateId(), |
|
|
|
|
|
!screenProjectProcessService.checkIfHistoricalDataExists(param.getCustomerId()), param.getProjectId()); |
|
|
if(!CollectionUtils.isEmpty(processes)){ |
|
|
if(!CollectionUtils.isEmpty(processes)){ |
|
|
screenProjectProcessService.insertBatch(processes,param.getCustomerId(),param.getDateId()); |
|
|
screenProjectProcessService.insertBatch(processes,param.getCustomerId(),param.getDateId()); |
|
|
List<ScreenProjectProcessAttachmentDTO> attachments = processService.buildProcessAttachmentData(processes.stream().map(ScreenProjectProcessDTO::getProcessId).distinct().collect(Collectors.toList())); |
|
|
List<ScreenProjectProcessAttachmentDTO> attachments = processService.buildProcessAttachmentData(processes.stream().map(ScreenProjectProcessDTO::getProcessId).distinct().collect(Collectors.toList())); |
|
|