zhoupeng 1 yıl önce
ebeveyn
işleme
a49ba016ab

+ 2 - 2
cqcy-ei/cqcy-ei-da/src/main/java/com/example/opc_da/service/impl/ItemGroupServiceImpl.java

@@ -143,11 +143,11 @@ public class ItemGroupServiceImpl implements ItemGroupService {
             if (Blank.isNotEmpty(itemList1)) {
                 Long tttiCount = reportTableDao.getTttiCountByItemId(itemList1);
                 if (tttiCount > 0) {
-                    return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "数据组在报表中配置了相应的数据项无法修改");
+                    throw new CustomException(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "数据组在报表中配置了相应的数据项无法修改");
                 }
                 Long ttciCount = reportTableDao.getTtciCountByItemId(itemList1);
                 if (ttciCount > 0) {
-                    return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "数据组在报表中配置了相应的数据项无法修改");
+                    throw new CustomException(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "数据组在报表中配置了相应的数据项无法修改");
                 }
             }
             List<Item> itemList = itemGroup.getItemList();