|
@@ -1,5 +1,6 @@
|
|
|
package com.dayou.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollectionUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.dayou.common.BaseEntity;
|
|
|
import com.dayou.dto.TaskRecordDTO;
|
|
@@ -76,6 +77,7 @@ public class BusinessProductionPerformanceServiceImpl extends ServiceImpl<Busine
|
|
|
BusinessProductionPerformanceVO businessProductionPerformance = new BusinessProductionPerformanceVO();
|
|
|
if (performance.getBusinessType().equals(MainBusinessEnum.MAJOR_BUSINESS.name())){
|
|
|
List<BusinessProductionPerformance> performances = businessProductionPerformanceMapper.getMajorDetail(performance);
|
|
|
+ if (CollectionUtil.isNotEmpty(performances)){
|
|
|
for (BusinessProductionPerformance bpp: performances){
|
|
|
if (bpp.getId()==null){
|
|
|
bpp.setCheckLoop(performance.getCheckLoop());
|
|
@@ -84,10 +86,12 @@ public class BusinessProductionPerformanceServiceImpl extends ServiceImpl<Busine
|
|
|
}
|
|
|
businessProductionPerformance.getInfo().add(bpp);
|
|
|
}
|
|
|
- businessProductionPerformance.setPrincipal(performances.get(0).getPrincipal());
|
|
|
- businessProductionPerformance.setProductionName(performances.get(0).getProductionName());
|
|
|
- businessProductionPerformance.setProductionType(performances.get(0).getProductionType());
|
|
|
- businessProductionPerformance.setProductionNo(performance.getProductionNo());
|
|
|
+ businessProductionPerformance.setPrincipal(performances.get(0).getPrincipal());
|
|
|
+ businessProductionPerformance.setProductionName(performances.get(0).getProductionName());
|
|
|
+ businessProductionPerformance.setProductionType(performances.get(0).getProductionType());
|
|
|
+ businessProductionPerformance.setProductionNo(performance.getProductionNo());
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
return businessProductionPerformance;
|
|
|
}
|