|
@@ -119,7 +119,7 @@ public class InspectionServiceImpl extends BaseServiceImpl<Long, Inspection> imp
|
|
|
}
|
|
|
if (!isUpdate) {
|
|
|
if (oldItem.getPlannedTimes() > 0) {
|
|
|
- throw new BizException(oldItem.getItem() + "已有日程安排不能删除");
|
|
|
+ throw new BizException(oldItem.getItem().getDesc() + "已有日程安排不能删除");
|
|
|
}
|
|
|
delItems.add(oldItem);
|
|
|
}
|
|
@@ -160,7 +160,7 @@ public class InspectionServiceImpl extends BaseServiceImpl<Long, Inspection> imp
|
|
|
List<InspectionItem> items = inspectionItemDao.getItemByInspectionId(id);
|
|
|
for (InspectionItem item : items) {
|
|
|
if (item.getPlannedTimes() > 0) {
|
|
|
- throw new BizException(item.getItem() + "已有日程安排不能删除");
|
|
|
+ throw new BizException(item.getItem().getDesc() + "已有日程安排不能删除");
|
|
|
}
|
|
|
}
|
|
|
inspectionDao.delete(id);
|