feat(user): 增加机构ID集合查询功能并优化时间格式- 在 UserVerify 实体类中为 createTime 和 updateTime 字段添加 JsonFormat 注解以统一时间格式
- 在 UserVerifyMapper.xml 中增加对 organizationIds 的 IN 查询支持 - 在 UserVerifyParam 参数类中新增 organizationIds 字段用于接收机构 ID 集合查询条件 - 引入 TableField 注解标记 organizationIds为非数据库字段- 添加 Set 类型导入以支持机构 ID 集合查询参数处理
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.gxwebsoft.common.system.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@@ -87,9 +88,11 @@ public class UserVerify implements Serializable {
|
||||
private Integer tenantId;
|
||||
|
||||
@Schema(description = "注册时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
@Schema(description = "手机号码")
|
||||
|
||||
@@ -63,6 +63,12 @@
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
<if test="param.organizationIds != null">
|
||||
AND a.organization_id IN
|
||||
<foreach collection="param.organizationIds" item="item" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="param.keywords != null">
|
||||
AND (a.name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.gxwebsoft.common.system.param;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||
import com.gxwebsoft.common.core.web.BaseParam;
|
||||
@@ -9,6 +10,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 实名认证查询参数
|
||||
*
|
||||
@@ -65,6 +68,10 @@ public class UserVerifyParam extends BaseParam {
|
||||
@QueryField(type = QueryType.EQ)
|
||||
private Integer organizationId;
|
||||
|
||||
@Schema(description = "机构id合集")
|
||||
@TableField(exist = false)
|
||||
private Set<Integer> organizationIds;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String comments;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user