fix 角色管理创建时间搜索
This commit is contained in:
parent
39eca08f6d
commit
45b3fa3537
|
|
@ -1,5 +1,6 @@
|
|||
package com.chushang.system.controller;
|
||||
|
||||
import com.chushang.common.core.util.StringUtils;
|
||||
import com.chushang.common.core.web.AjaxResult;
|
||||
import com.chushang.common.log.annotation.SysLog;
|
||||
import com.chushang.common.log.enums.BusinessType;
|
||||
|
|
@ -50,9 +51,12 @@ public class RoleController {
|
|||
@RequestParam(defaultValue = "10") Integer limit // 默认每页条数为10
|
||||
) {
|
||||
ListRoleDTO.Params params = new ListRoleDTO.Params();
|
||||
params.setBeginTime(beginTime);
|
||||
params.setEndTime(endTime);
|
||||
|
||||
if(StringUtils.isNotEmpty(beginTime)){
|
||||
params.setBeginTime(beginTime+" 00:00:00");
|
||||
}
|
||||
if(StringUtils.isNotEmpty(endTime)){
|
||||
params.setEndTime(endTime+" 23:59:59");
|
||||
}
|
||||
ListRoleDTO listRole = new ListRoleDTO();
|
||||
listRole.setRoleName(roleName);
|
||||
listRole.setRoleKey(roleKey);
|
||||
|
|
|
|||
Loading…
Reference in New Issue