|
@@ -136,7 +136,10 @@ public class ProjectManageArchivesServiceImpl extends ServiceImpl<ProjectManageA
|
|
* @desc 将里程碑计划数据转成树状结构
|
|
* @desc 将里程碑计划数据转成树状结构
|
|
*/
|
|
*/
|
|
private List<ProBusinessOtherListRespDTO> getPlanList(List<ProjectManageBusinessOther> otherList) {
|
|
private List<ProBusinessOtherListRespDTO> getPlanList(List<ProjectManageBusinessOther> otherList) {
|
|
- otherList.sort((x, y) -> Integer.compare(x.getSort(), y.getSort()));
|
|
|
|
|
|
+ if(!CollectionUtils.isEmpty(otherList)){
|
|
|
|
+ otherList.sort((x, y) -> Integer.compare(x.getSort(), y.getSort()));
|
|
|
|
+ }
|
|
|
|
+
|
|
List<ProBusinessOtherListRespDTO> resp = Lists.newArrayList();
|
|
List<ProBusinessOtherListRespDTO> resp = Lists.newArrayList();
|
|
//根据parentId分组
|
|
//根据parentId分组
|
|
Map<String, List<ProjectManageBusinessOther>> postMap = otherList.stream().collect(Collectors.groupingBy(ProjectManageBusinessOther :: getParentId));
|
|
Map<String, List<ProjectManageBusinessOther>> postMap = otherList.stream().collect(Collectors.groupingBy(ProjectManageBusinessOther :: getParentId));
|
|
@@ -190,7 +193,9 @@ public class ProjectManageArchivesServiceImpl extends ServiceImpl<ProjectManageA
|
|
* @desc 获取里程碑数据
|
|
* @desc 获取里程碑数据
|
|
*/
|
|
*/
|
|
private List<ProArchivesAndBusinessAddReqDTO> getBsInfoData(List<ProjectManageArchivesAndBusiness> businessList, int planType) {
|
|
private List<ProArchivesAndBusinessAddReqDTO> getBsInfoData(List<ProjectManageArchivesAndBusiness> businessList, int planType) {
|
|
- businessList.sort((x, y) -> Integer.compare(x.getSort(), y.getSort()));
|
|
|
|
|
|
+ if(!CollectionUtils.isEmpty(businessList)){
|
|
|
|
+ businessList.sort((x, y) -> Integer.compare(x.getSort(), y.getSort()));
|
|
|
|
+ }
|
|
List<ProArchivesAndBusinessAddReqDTO> reqDTOS = Lists.newArrayList();
|
|
List<ProArchivesAndBusinessAddReqDTO> reqDTOS = Lists.newArrayList();
|
|
for(ProjectManageArchivesAndBusiness business : businessList){
|
|
for(ProjectManageArchivesAndBusiness business : businessList){
|
|
int currentPlanType = business.getPlanType();
|
|
int currentPlanType = business.getPlanType();
|