liding
2025-04-01 b95f460e35a59aa920e27f0f7e29e0fdf0da1c7c
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);
        }