mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-18 01:06:40 +08:00
update 优化 saveAll 空列表校验
This commit is contained in:
parent
e54033f4e4
commit
673d10c6c4
@ -127,6 +127,9 @@ public class ServicePlusImpl<M extends BaseMapperPlus<T>, T, V> extends ServiceI
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean saveAll(Collection<T> entityList) {
|
public boolean saveAll(Collection<T> entityList) {
|
||||||
|
if (CollUtil.isEmpty(entityList)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return baseMapper.insertAll(entityList) == entityList.size();
|
return baseMapper.insertAll(entityList) == entityList.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user