yeg
2026-08-29 76f9639e3c0e14cc6a4e05d3a3212799ea1c48fb
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TBatteryGroupFieldServiceImpl.java
@@ -113,6 +113,10 @@
        for (Long fieldId : fieldIds)
        {
            selectBatteryGroupFieldById(fieldId);
            if (batteryGroupFieldMapper.countFieldReferences(fieldId) > 0)
            {
                throw new ServiceException("字段已被模板或电池组引用,不能删除");
            }
        }
        int rows = 0;
        for (Long fieldId : fieldIds)