feat(user): 新增开发者筛选条件
- 在UserParam中添加isDeveloper字段及其注解说明 - 在UserMapper.xml中添加isDeveloper的查询条件判断 - 支持根据开发者身份进行用户筛选查询
This commit is contained in:
@@ -125,6 +125,9 @@
|
|||||||
<if test="param.isAdmin != null">
|
<if test="param.isAdmin != null">
|
||||||
AND a.is_admin = #{param.isAdmin}
|
AND a.is_admin = #{param.isAdmin}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.isDeveloper != null">
|
||||||
|
AND a.is_developer = #{param.isDeveloper}
|
||||||
|
</if>
|
||||||
<if test="param.templateId != null">
|
<if test="param.templateId != null">
|
||||||
AND a.template_id = #{param.templateId}
|
AND a.template_id = #{param.templateId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -225,6 +225,10 @@ public class UserParam extends BaseParam {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private Boolean isAdmin;
|
private Boolean isAdmin;
|
||||||
|
|
||||||
|
@Schema(description = "是否开发者")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Boolean isDeveloper;
|
||||||
|
|
||||||
@Schema(description = "是否企业管理员")
|
@Schema(description = "是否企业管理员")
|
||||||
private Integer isOrganizationAdmin;
|
private Integer isOrganizationAdmin;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user