Przeglądaj źródła

update 删除日程安排提示

周箭河 4 lat temu
rodzic
commit
a6fd6296de

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/InspectionServiceImpl.java

@@ -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);