|
|
|
@ -187,6 +187,28 @@ public class EquUpkeepServiceImpl implements IEquUpkeepService {
|
|
|
|
|
EquPlanDetail detail = new EquPlanDetail();
|
|
|
|
|
BeanUtils.copyProperties(checkItem,detail);
|
|
|
|
|
|
|
|
|
|
if (!detail.getItemCode().isEmpty()) {
|
|
|
|
|
itemTempName.append(detail.getItemName()).append(",");
|
|
|
|
|
// 获取检查项详情list
|
|
|
|
|
List<EquCheckItemDetail> equCheckItemDetailList = equCheckItemDetailMapper.selectCheckItemDetailByItemCode(detail.getItemCode());
|
|
|
|
|
if (equCheckItemList.size() > 0) {
|
|
|
|
|
List<EquPlanStandard> standardList = new ArrayList<>();
|
|
|
|
|
for (EquCheckItemDetail standardTemp : equCheckItemDetailList) {
|
|
|
|
|
EquPlanStandard standard = new EquPlanStandard();
|
|
|
|
|
BeanUtils.copyProperties(standardTemp,standard);
|
|
|
|
|
|
|
|
|
|
standard.setShowFlag(true);
|
|
|
|
|
standardList.add(standard);
|
|
|
|
|
}
|
|
|
|
|
detail.setEquPlanStandardList(standardList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
detailList.add(detail);
|
|
|
|
|
}
|
|
|
|
|
if (data.getItemLoop() == 0) {
|
|
|
|
|
EquPlanDetail detail = new EquPlanDetail();
|
|
|
|
|
BeanUtils.copyProperties(checkItem,detail);
|
|
|
|
|
|
|
|
|
|
if (!detail.getItemCode().isEmpty()) {
|
|
|
|
|
itemTempName.append(detail.getItemName()).append(",");
|
|
|
|
|
// 获取检查项详情list
|
|
|
|
|