@ -147,7 +147,7 @@ public class PhysicalToolManageServiceImpl implements PhysicalToolManageService
public void deleteConfigPhysicalTool(String id) {
// 删除之前,校验这个工具是否在某些地方已经被配置了,如果配置了,就不允许删除
Integer count = diseasePhysicalService.lambdaQuery().eq(DiseasePhysical::getToolId, id).count();
if (0 > count) {
if (count > 0 ) {
throw new BusinessException("工具已被使用,不允许删除");
}
configPhysicalToolService.removeById(id);