mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-10 21:19:00 +08:00
✨ Introducing new features.#1908 日志功能新增时间过滤条件
This commit is contained in:
1 parent
b43599167e
commit
fa33aeae4c
1 file changed
+3
-5
+3
-5
@@ -25,7 +25,6 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pig4cloud.pigx.admin.api.entity.SysRole;
|
||||
import com.pig4cloud.pigx.admin.api.vo.RoleVO;
|
||||
import com.pig4cloud.pigx.admin.service.SysRoleMenuService;
|
||||
import com.pig4cloud.pigx.admin.service.SysRoleService;
|
||||
import com.pig4cloud.pigx.common.core.constant.CacheConstants;
|
||||
import com.pig4cloud.pigx.common.core.util.R;
|
||||
@@ -51,8 +50,6 @@ public class SysRoleController {
|
||||
|
||||
private final SysRoleService sysRoleService;
|
||||
|
||||
private final SysRoleMenuService sysRoleMenuService;
|
||||
|
||||
/**
|
||||
* 通过ID查询角色信息
|
||||
* @param id ID
|
||||
@@ -114,11 +111,12 @@ public class SysRoleController {
|
||||
/**
|
||||
* 分页查询角色信息
|
||||
* @param page 分页对象
|
||||
* @param role 查询条件
|
||||
* @return 分页对象
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
public R getRolePage(Page page) {
|
||||
return R.ok(sysRoleService.page(page, Wrappers.emptyWrapper()));
|
||||
public R getRolePage(Page page,SysRole role) {
|
||||
return R.ok(sysRoleService.page(page, Wrappers.query(role)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user