feat:(REQ-3034) 增加roleIds查询条件
This commit is contained in:
parent
68d0641f2e
commit
1468582e58
@ -10,6 +10,7 @@ import lombok.experimental.SuperBuilder;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
@SuperBuilder
|
@SuperBuilder
|
||||||
@Data
|
@Data
|
||||||
@ -30,4 +31,6 @@ public class PageRoleUserRelationReq{
|
|||||||
private Date updateAtGE;
|
private Date updateAtGE;
|
||||||
|
|
||||||
private Boolean includeDelete;
|
private Boolean includeDelete;
|
||||||
|
|
||||||
|
private Set<Long> roleIds;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,6 +70,14 @@
|
|||||||
<if test="param.updateAtGE != null">
|
<if test="param.updateAtGE != null">
|
||||||
AND t1.update_at <![CDATA[ >= ]]> #{param.updateAtGE}
|
AND t1.update_at <![CDATA[ >= ]]> #{param.updateAtGE}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if test="param.roleIds != null and param.roleIds.size()>0">
|
||||||
|
AND t1.role_id IN
|
||||||
|
<foreach collection="param.roleIds" open="(" close=")" separator="," index="index" item="item">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user