feat:(REQ-3034) 增加roleIds查询条件

This commit is contained in:
lilong 2024-09-29 17:45:21 +08:00
parent 68d0641f2e
commit 1468582e58
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import lombok.experimental.SuperBuilder;
import java.util.Date;
import java.util.List;
import java.util.Set;
@SuperBuilder
@Data
@ -30,4 +31,6 @@ public class PageRoleUserRelationReq{
private Date updateAtGE;
private Boolean includeDelete;
private Set<Long> roleIds;
}

View File

@ -70,6 +70,14 @@
<if test="param.updateAtGE != null">
AND t1.update_at <![CDATA[ >= ]]> #{param.updateAtGE}
</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>
</select>
</mapper>