feat: 增强角色查询功能,支持按时间范围过滤
- 在SysRoleVo中添加beginTime和endTime字段 - 在SysRoleMapper.xml中添加时间范围查询条件 - 支持按创建时间进行角色数据过滤
This commit is contained in:
parent
355616e685
commit
0804bdf14e
@ -27,4 +27,14 @@ public class SysRoleVo extends BaseVo {
|
|||||||
*/
|
*/
|
||||||
private String roleStatus;
|
private String roleStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始时间
|
||||||
|
*/
|
||||||
|
private String beginTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束时间
|
||||||
|
*/
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,6 +29,12 @@
|
|||||||
<if test="vo.roleStatus != null and vo.roleStatus != ''">
|
<if test="vo.roleStatus != null and vo.roleStatus != ''">
|
||||||
AND t1.role_status = #{vo.roleStatus}
|
AND t1.role_status = #{vo.roleStatus}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="vo.beginTime != null and vo.beginTime != ''">
|
||||||
|
AND t1.create_time >= #{vo.beginTime}
|
||||||
|
</if>
|
||||||
|
<if test="vo.endTime != null and vo.endTime != ''">
|
||||||
|
AND t1.create_time <![CDATA[<=]]> #{vo.endTime}
|
||||||
|
</if>
|
||||||
<if test="vo.params.roleDataScope != null and vo.params.roleDataScope != ''">
|
<if test="vo.params.roleDataScope != null and vo.params.roleDataScope != ''">
|
||||||
${vo.params.roleDataScope}
|
${vo.params.roleDataScope}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user