chenrui
2025-04-02 ed29342061c29cc16e36b17ae61d7b97a4dcb884
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);
        }