Skip to content

Commit

Permalink
增加deleteByIds空集合处理.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Jun 14, 2024
1 parent 151a7d5 commit 423d434
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ default int deleteByIds(@Param(Constants.COLL) Collection<?> idList) {
* @since 3.5.7
*/
default int deleteByIds(@Param(Constants.COLL) Collection<?> collections, boolean useFill) {
if (CollectionUtils.isEmpty(collections)) {
return 0;
}
MybatisMapperProxy<?> mybatisMapperProxy = MybatisUtils.getMybatisMapperProxy(this);
Class<?> entityClass = GenericTypeUtils.resolveTypeArguments(getClass(), BaseMapper.class)[0];
SqlSession sqlSession = mybatisMapperProxy.getSqlSession();
Expand Down

0 comments on commit 423d434

Please sign in to comment.