|
|
|
|
@ -360,31 +360,38 @@ public class InspectionTaskServiceImpl extends BaseServiceImpl<InspectionTaskMap |
|
|
|
|
// 更新 WorkPlanItem
|
|
|
|
|
wpItemService.updateById(wpItemDB); |
|
|
|
|
//
|
|
|
|
|
for (WorkPlanItemDetailVO wpItemDetailVO : wpItemVO.getWpItemDetailList()) { |
|
|
|
|
WorkPlanItemDetail wpItemDetail = new WorkPlanItemDetail(); |
|
|
|
|
BeanUtil.copyProperties(wpItemDetailVO, wpItemDetail); |
|
|
|
|
wpItemDetail.setWorkPlanItemId(wpItemDB.getId()); |
|
|
|
|
if (IdUtil.isValid(wpItemDetail.getId())) { |
|
|
|
|
// 更新 WorkPlanItemDetail
|
|
|
|
|
wpItemDetailService.updateById(wpItemDetail); |
|
|
|
|
} else { |
|
|
|
|
// 保存
|
|
|
|
|
wpItemDetailService.save(wpItemDetail); |
|
|
|
|
|
|
|
|
|
if(null != wpItemVO.getWpItemDetailList() && wpItemVO.getWpItemDetailList().size() > 0){ |
|
|
|
|
for (WorkPlanItemDetailVO wpItemDetailVO : wpItemVO.getWpItemDetailList()) { |
|
|
|
|
WorkPlanItemDetail wpItemDetail = new WorkPlanItemDetail(); |
|
|
|
|
BeanUtil.copyProperties(wpItemDetailVO, wpItemDetail); |
|
|
|
|
wpItemDetail.setWorkPlanItemId(wpItemDB.getId()); |
|
|
|
|
if (IdUtil.isValid(wpItemDetail.getId())) { |
|
|
|
|
// 更新 WorkPlanItemDetail
|
|
|
|
|
wpItemDetailService.updateById(wpItemDetail); |
|
|
|
|
} else { |
|
|
|
|
// 保存
|
|
|
|
|
wpItemDetailService.save(wpItemDetail); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (WorkPlanItemThicknessVO wpItemDetailVO : wpItemVO.getThicknessList()) { |
|
|
|
|
WorkPlanThicknessDetail wpItemDetail = new WorkPlanThicknessDetail(); |
|
|
|
|
BeanUtil.copyProperties(wpItemDetailVO, wpItemDetail); |
|
|
|
|
wpItemDetail.setWorkPlanItemId(wpItemDB.getId()); |
|
|
|
|
if (IdUtil.isValid(wpItemDetail.getId())) { |
|
|
|
|
// 更新 WorkPlanItemDetail
|
|
|
|
|
wpItemThicknessService.updateById(wpItemDetail); |
|
|
|
|
} else { |
|
|
|
|
// 保存
|
|
|
|
|
wpItemThicknessService.save(wpItemDetail); |
|
|
|
|
|
|
|
|
|
if(null != wpItemVO.getThicknessList() && wpItemVO.getThicknessList().size() > 0){ |
|
|
|
|
for (WorkPlanItemThicknessVO wpItemDetailVO : wpItemVO.getThicknessList()) { |
|
|
|
|
WorkPlanThicknessDetail wpItemDetail = new WorkPlanThicknessDetail(); |
|
|
|
|
BeanUtil.copyProperties(wpItemDetailVO, wpItemDetail); |
|
|
|
|
wpItemDetail.setWorkPlanItemId(wpItemDB.getId()); |
|
|
|
|
if (IdUtil.isValid(wpItemDetail.getId())) { |
|
|
|
|
// 更新 WorkPlanItemDetail
|
|
|
|
|
wpItemThicknessService.updateById(wpItemDetail); |
|
|
|
|
} else { |
|
|
|
|
// 保存
|
|
|
|
|
wpItemThicknessService.save(wpItemDetail); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//
|
|
|
|
|
refreshStatusAndQty(detailVO.getId()); |
|
|
|
|
|