| | |
| | | entity.setHasOtherCheck(request.getHasOtherCheck()); |
| | | entity.setHasPrecisionCheck(request.getHasPrecisionCheck()); |
| | | entity.setHasSafetyEquipmentCheck(request.getHasSafetyEquipmentCheck()); |
| | | entity.setRemark(request.getRemark()); |
| | | this.getBaseMapper().updateById(entity); |
| | | //处理详情 |
| | | if(CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | //先删除检查项 |
| | | standardDetailService.removeByStandardId(entity.getId()); |
| | | |
| | | request.getTableDetailList().forEach(tableDetail -> { |
| | | tableDetail.setStandardId(entity.getId()); |
| | | }); |
| | | //根据分类判断是否保存 |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | //保存其他分类 |
| | |
| | | newEntity.setHasSafetyEquipmentCheck(request.getHasSafetyEquipmentCheck()); |
| | | //删除标记 |
| | | newEntity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | newEntity.setRemark(request.getRemark()); |
| | | //重复性校验 |
| | | EamTechnicalStatusEvaluationStandard exist = checkDuplicate(newEntity.getEquipmentId(), entity.getId()); |
| | | if(exist != null){ |