|
|
@@ -72,9 +72,7 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
|
|
|
* @return 插入操作是否成功的布尔值
|
|
|
*/
|
|
|
default boolean insertBatch(Collection<T> entityList) {
|
|
|
- Db.saveBatch(entityList);
|
|
|
- // 临时解决 新版本 mp 插入状态判断错误问题
|
|
|
- return true;
|
|
|
+ return Db.saveBatch(entityList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -84,9 +82,7 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
|
|
|
* @return 更新操作是否成功的布尔值
|
|
|
*/
|
|
|
default boolean updateBatchById(Collection<T> entityList) {
|
|
|
- Db.updateBatchById(entityList);
|
|
|
- // 临时解决 新版本 mp 插入状态判断错误问题
|
|
|
- return true;
|
|
|
+ return Db.updateBatchById(entityList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -96,9 +92,7 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
|
|
|
* @return 插入或更新操作是否成功的布尔值
|
|
|
*/
|
|
|
default boolean insertOrUpdateBatch(Collection<T> entityList) {
|
|
|
- Db.saveOrUpdateBatch(entityList);
|
|
|
- // 临时解决 新版本 mp 插入状态判断错误问题
|
|
|
- return true;
|
|
|
+ return Db.saveOrUpdateBatch(entityList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -109,9 +103,7 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
|
|
|
* @return 插入操作是否成功的布尔值
|
|
|
*/
|
|
|
default boolean insertBatch(Collection<T> entityList, int batchSize) {
|
|
|
- Db.saveBatch(entityList, batchSize);
|
|
|
- // 临时解决 新版本 mp 插入状态判断错误问题
|
|
|
- return true;
|
|
|
+ return Db.saveBatch(entityList, batchSize);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -122,9 +114,7 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
|
|
|
* @return 更新操作是否成功的布尔值
|
|
|
*/
|
|
|
default boolean updateBatchById(Collection<T> entityList, int batchSize) {
|
|
|
- Db.updateBatchById(entityList, batchSize);
|
|
|
- // 临时解决 新版本 mp 插入状态判断错误问题
|
|
|
- return true;
|
|
|
+ return Db.updateBatchById(entityList, batchSize);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -135,9 +125,7 @@ public interface BaseMapperPlus<T, V> extends BaseMapper<T> {
|
|
|
* @return 插入或更新操作是否成功的布尔值
|
|
|
*/
|
|
|
default boolean insertOrUpdateBatch(Collection<T> entityList, int batchSize) {
|
|
|
- Db.saveOrUpdateBatch(entityList, batchSize);
|
|
|
- // 临时解决 新版本 mp 插入状态判断错误问题
|
|
|
- return true;
|
|
|
+ return Db.saveOrUpdateBatch(entityList, batchSize);
|
|
|
}
|
|
|
|
|
|
/**
|