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
|
||||
public boolean saveAll(Collection<T> entityList) {
|
||||
if (CollUtil.isEmpty(entityList)) {
|
||||
return false;
|
||||
}
|
||||
return baseMapper.insertAll(entityList) == entityList.size();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user