Skip to content

Commit

Permalink
补充方法注释
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Jun 9, 2024
1 parent 421e546 commit 88a213c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ default int deleteByIds(@Param(Constants.COLL) Collection<?> idList) {

/**
* 删除(根据ID或实体 批量删除)
* <p>
* 普通删除: DELETE FROM h2user WHERE id IN ( ? , ? )
* </p>
* <p>
* 逻辑删除: UPDATE h2user SET deleted=1 WHERE id IN ( ? , ? ) AND deleted=0
* </p>
* <p>
* 逻辑删除(填充): UPDATE h2user SET delete_user = 'xxx', deleted=1 WHERE id IN ( ? , ? ) AND deleted=0
* <ul>注意:无论参数为id还是实体,填充参数只会以方法追加的et参数为准.<ul/>
* </p>
*
* @param collections 主键ID列表或实体列表(不能为 null 以及 empty)
* @param useFill 逻辑删除下是否填充
Expand Down

0 comments on commit 88a213c

Please sign in to comment.