feat: 添加用户查询排除功能
parent
5bf71ab9da
commit
ed851fd8e7
|
|
@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -46,6 +47,8 @@ public class UserQryCmd {
|
||||||
private Integer rzFlag;
|
private Integer rzFlag;
|
||||||
@ApiModelProperty(value = "是否有人脸, 1-是, 0-否")
|
@ApiModelProperty(value = "是否有人脸, 1-是, 0-否")
|
||||||
private Integer faceFlag;
|
private Integer faceFlag;
|
||||||
|
@ApiModelProperty(value = "需要排除的用户ID列表")
|
||||||
|
private List<Long> excludeUserIds;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,13 @@
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</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>
|
</where>
|
||||||
order by u.sort ,
|
order by u.sort ,
|
||||||
u.create_time desc
|
u.create_time desc
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue