Pre Merge pull request !84 from 抓蛙师/dev

This commit is contained in:
抓蛙师 2021-08-30 03:30:50 +00:00 committed by Gitee
commit 367505a35f

View File

@ -149,10 +149,12 @@ public class ServicePlusImpl<M extends BaseMapperPlus<T>, T, V> extends ServiceI
updateList.add(entity);
}
}
if (updateBatchById(updateList)) {
if (updateList.size()>0 && updateBatchById(updateList)) {
row += updateList.size();
}
row += baseMapper.insertAll(addList);
if (addList.size() > 0) {
row += baseMapper.insertAll(addList);
}
return row == entityList.size();
}