This commit is contained in:
Ray.Hao
2024-10-18 22:23:46 +08:00
5 changed files with 82 additions and 65 deletions

View File

@@ -25,7 +25,7 @@ public class ColumnMetaData {
/**
* 字段长度
*/
private Integer characterMaximumLength;
private Long characterMaximumLength;
/**
* 是否主键(1-是 0-否)

View File

@@ -40,7 +40,7 @@ public class GenFieldConfig extends BaseEntity {
/**
* 字段长度
*/
private Integer maxLength;
private Long maxLength;
/**
* 字段名称
@@ -103,4 +103,4 @@ public class GenFieldConfig extends BaseEntity {
* 字典类型
*/
private String dictType;
}
}

View File

@@ -27,6 +27,9 @@ public class UserPageQuery extends BasePageQuery {
@Schema(description="部门ID")
private Long deptId;
@Schema(description="角色ID")
private List<Long> roleIds;
@Schema(description="创建时间范围")
private List<String> createTime;

View File

@@ -37,6 +37,12 @@
<if test='queryParams.deptId!=null'>
AND concat(',',concat(d.tree_path,',',d.id),',') like concat('%,',#{queryParams.deptId},',%')
</if>
<if test='queryParams.roleIds!=null and queryParams.roleIds.size > 0'>
AND sur.role_id in
<foreach collection="queryParams.roleIds" item="roleId" open="(" close=")" separator=",">
#{roleId}
</foreach>
</if>
<if test="queryParams.createTime != null and queryParams.createTime.size > 0">
<if test="queryParams.createTime[0] != null and queryParams.createTime[0] != ''">
<bind name="startDate" value="queryParams.createTime[0].length() == 10 ? queryParams.createTime[0] + ' 00:00:00' : queryParams.createTime[0]"/>