| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.R; |
| | | import com.zy.asrs.wms.common.annotation.CacheData; |
| | | import com.zy.asrs.wms.common.annotation.OperationLog; |
| | | import com.zy.asrs.wms.common.domain.BaseParam; |
| | | import com.zy.asrs.wms.common.domain.KeyValVo; |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('system:userLogin:list')") |
| | | @PostMapping("/userLogin/page") |
| | | @CacheData(tableName = {"sys_user_login"}) |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<UserLogin, BaseParam> pageParam = new PageParam<>(baseParam, UserLogin.class); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('system:userLogin:list')") |
| | | @PostMapping("/userLogin/list") |
| | | @CacheData(tableName = {"sys_user_login"}) |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(userLoginService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:userLogin:list')") |
| | | @GetMapping("/userLogin/{id}") |
| | | @CacheData(tableName = {"sys_user_login"}) |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(userLoginService.getById(id)); |
| | | } |
| | |
| | | @PreAuthorize("hasAuthority('system:userLogin:list')") |
| | | @PostMapping("/userLogin/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(userLoginService.list(), UserLogin.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<UserLogin, BaseParam> pageParam = new PageParam<>(baseParam, UserLogin.class); |
| | | List<UserLogin> data = userLoginService.list(pageParam.buildWrapper(true)); |
| | | |
| | | ExcelUtil.build(ExcelUtil.create(data, UserLogin.class), response); |
| | | } |
| | | |
| | | } |