feat: 添加用户查询排除功能

main
lishiwei 2026-05-23 09:12:31 +08:00
parent 5bf71ab9da
commit ed851fd8e7
2 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
@ -46,6 +47,8 @@ public class UserQryCmd {
private Integer rzFlag;
@ApiModelProperty(value = "是否有人脸, 1-是, 0-否")
private Integer faceFlag;
@ApiModelProperty(value = "需要排除的用户ID列表")
private List<Long> excludeUserIds;
}

View File

@ -110,6 +110,13 @@
#{item}
</foreach>
</if>
<if test="params.excludeUserIds != null and params.excludeUserIds.size() > 0">
and u.id not in
<foreach item="item" collection="params.excludeUserIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</where>
order by u.sort ,
u.create_time desc