@@ -1,6 +1,7 @@
package com.xjrsoft.module.organization.dto;
import com.xjrsoft.common.page.PageInput;
+import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
@@ -30,4 +31,6 @@ public class UserPageDto extends PageInput {
private String mobile;
private Integer userType;
+ @ApiModelProperty("角色id")
+ private Long roleId;
}
@@ -11,5 +11,8 @@
<if test="dto.keyword != null and dto.keyword !=''">
and (t1.name like concat('%', #{dto.keyword}, '%') or t1.mobile like concat('%', #{dto.keyword}, '%'))
</if>
+ <if test="dto.roleId != null">
+ and t2.role_id = #{dto.roleId}
+ </if>
</select>
</mapper>