|
|
@@ -184,14 +184,15 @@ public class SafetyCheckRuleItemServiceImpl
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public boolean del(Long id) {
|
|
|
- List<Long> idList = safetyCheckRulePointMapper.selectPointIds(id);
|
|
|
- if (idList.size() > 0) {
|
|
|
-
|
|
|
- Integer num1 = safetyCheckRulePointMapper.checkIsJoinResumptionPlan(idList);
|
|
|
- if (ObjectUtil.isNotNull(num1)) {
|
|
|
- throw new RuntimeException("该检查项已被检查计划或履职计划关联,请先删除检查计划或履职计划!");
|
|
|
- }
|
|
|
- }
|
|
|
+ //todo
|
|
|
+// List<Long> idList = safetyCheckRulePointMapper.selectPointIds(id);
|
|
|
+// if (idList.size() > 0) {
|
|
|
+//
|
|
|
+// Integer num1 = safetyCheckRulePointMapper.checkIsJoinResumptionPlan(idList);
|
|
|
+// if (ObjectUtil.isNotNull(num1)) {
|
|
|
+// throw new RuntimeException("该检查项已被检查计划关联!");
|
|
|
+// }
|
|
|
+// }
|
|
|
safetyCheckRuleItemMapper.deleteById(id);
|
|
|
safetyCheckRulePointMapper.deleteByMap(MapUtil.of("item_id", id));
|
|
|
return true;
|