# Conflicts:
#	src/main/java/com/youlai/boot/system/model/query/UserPageQuery.java
This commit is contained in:
Kang_Yang
2024-10-17 10:59:31 +08:00
5 changed files with 80 additions and 66 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,7 +27,7 @@ public class UserPageQuery extends BasePageQuery {
@Schema(description="部门ID")
private Long deptId;
@Schema(description = "角色ID")
@Schema(description="角色ID")
private List<Long> roleIds;
@Schema(description="创建时间范围")

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]"/>