Browse Source

Merge branch 'student_list_feature'

周箭河 4 years ago
parent
commit
dc1992f9e7

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