fix 修复 临时修复 mp3.5.7 批处理判断bug

2.X
疯狂的狮子Li 8 months ago
parent 03d2328e0b
commit 8f5dfe8579

@ -50,42 +50,54 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
* *
*/ */
default boolean insertBatch(Collection<T> entityList) { default boolean insertBatch(Collection<T> entityList) {
return Db.saveBatch(entityList); Db.saveBatch(entityList);
// 临时解决 新版本 mp 插入状态判断错误问题
return true;
} }
/** /**
* *
*/ */
default boolean updateBatchById(Collection<T> entityList) { default boolean updateBatchById(Collection<T> entityList) {
return Db.updateBatchById(entityList); Db.updateBatchById(entityList);
// 临时解决 新版本 mp 插入状态判断错误问题
return true;
} }
/** /**
* *
*/ */
default boolean insertOrUpdateBatch(Collection<T> entityList) { default boolean insertOrUpdateBatch(Collection<T> entityList) {
return Db.saveOrUpdateBatch(entityList); Db.saveOrUpdateBatch(entityList);
// 临时解决 新版本 mp 插入状态判断错误问题
return true;
} }
/** /**
* () * ()
*/ */
default boolean insertBatch(Collection<T> entityList, int batchSize) { default boolean insertBatch(Collection<T> entityList, int batchSize) {
return Db.saveBatch(entityList, batchSize); Db.saveBatch(entityList, batchSize);
// 临时解决 新版本 mp 插入状态判断错误问题
return true;
} }
/** /**
* () * ()
*/ */
default boolean updateBatchById(Collection<T> entityList, int batchSize) { default boolean updateBatchById(Collection<T> entityList, int batchSize) {
return Db.updateBatchById(entityList, batchSize); Db.updateBatchById(entityList, batchSize);
// 临时解决 新版本 mp 插入状态判断错误问题
return true;
} }
/** /**
* () * ()
*/ */
default boolean insertOrUpdateBatch(Collection<T> entityList, int batchSize) { default boolean insertOrUpdateBatch(Collection<T> entityList, int batchSize) {
return Db.saveOrUpdateBatch(entityList, batchSize); Db.saveOrUpdateBatch(entityList, batchSize);
// 临时解决 新版本 mp 插入状态判断错误问题
return true;
} }
default V selectVoById(Serializable id) { default V selectVoById(Serializable id) {

Loading…
Cancel
Save