|
|
|
|
@ -167,7 +167,7 @@ public class ObjectController extends BladeController {
|
|
|
|
|
qw.lambda().in(PlanObjectTemplateEntity::getObjectId,delIdList); |
|
|
|
|
int count = planObjectTemplateService.count(qw); |
|
|
|
|
if(count>0) { |
|
|
|
|
return R.fail("该巡检对象已被巡检计划引用,无法删除"); |
|
|
|
|
return R.fail("该巡检对象已被巡检模板引用,无法删除"); |
|
|
|
|
} |
|
|
|
|
for (Long aLong : delIdList) { |
|
|
|
|
objectTemplateService.remove(new QueryWrapper<ObjectTemplateEntity>(){{ |
|
|
|
|
|