chenrui
2025-04-02 bd735893d1eb510d170fea899b909f46189e8b46
cnas-device/src/main/java/com/ruoyi/device/service/impl/DeviceServiceImpl.java
@@ -607,12 +607,12 @@
            }
        }
        // 批量插入(使用MyBatis-Plus的insertBatch,默认batchSize=1000)
        // 批量插入
        if (CollUtil.isNotEmpty(toInsert)) {
            saveOrUpdateBatch(toInsert);
            baseMapper.insertBatchSomeColumn(toInsert);
        }
        // 批量更新(使用MyBatis-Plus的updateBatchById,默认batchSize=1000)
        // 批量更新
        if (CollUtil.isNotEmpty(toUpdate)) {
            updateBatchById(toUpdate);
        }