chenrui
2025-04-01 2917cb5d06bcdf78327ce84ba5b9b36076adb4af
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);
        }