|
|
@ -46,6 +46,8 @@ public class EquSpotCheckServiceImpl implements IEquSpotCheckService {
|
|
|
|
if (equCheckItemList.size() > 0) {
|
|
|
|
if (equCheckItemList.size() > 0) {
|
|
|
|
List<EquPlanDetail> detailList = new ArrayList<>();
|
|
|
|
List<EquPlanDetail> detailList = new ArrayList<>();
|
|
|
|
for (EquCheckItem checkItem : equCheckItemList) {
|
|
|
|
for (EquCheckItem checkItem : equCheckItemList) {
|
|
|
|
|
|
|
|
// 只需要循环周期一致的检查项
|
|
|
|
|
|
|
|
if(checkItem.getItemLoop() == data.getItemLoop() && checkItem.getItemLoopType().equals(data.getItemLoopType())) {
|
|
|
|
EquPlanDetail detail = new EquPlanDetail();
|
|
|
|
EquPlanDetail detail = new EquPlanDetail();
|
|
|
|
BeanUtils.copyProperties(checkItem,detail);
|
|
|
|
BeanUtils.copyProperties(checkItem,detail);
|
|
|
|
|
|
|
|
|
|
|
@ -67,6 +69,7 @@ public class EquSpotCheckServiceImpl implements IEquSpotCheckService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
detailList.add(detail);
|
|
|
|
detailList.add(detail);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
data.setEquPlanDetailList(detailList);
|
|
|
|
data.setEquPlanDetailList(detailList);
|
|
|
|
data.setItemTempName(itemTempName.toString());
|
|
|
|
data.setItemTempName(itemTempName.toString());
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|