|
@@ -129,6 +129,9 @@ public class ProjectServiceImpl implements ProjectService {
|
|
|
}
|
|
|
Page<Project> result = projectMapper.page(page, projectDto);
|
|
|
List<Project> records = page.getRecords();
|
|
|
+ if(CollectionUtil.isEmpty(records)){
|
|
|
+ return result;
|
|
|
+ }
|
|
|
Set<String> ids = convertSet(records, Project::getId);
|
|
|
List<Contract> contracts = contractService.selectByProjectIds(ids);
|
|
|
List<ContractApply> ContractApplys = contractApplyService.getListByProjectIds(ids);
|