| | |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.StringPool; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.excel.SecurityExcel; |
| | | import org.springblade.modules.system.excel.UserExcel; |
| | | import org.springblade.modules.system.excel.UserImporter; |
| | | import org.springblade.modules.system.service.IUserService; |
| | |
| | | */ |
| | | @GetMapping("/page-security") |
| | | public R<IPage<UserVO>> pageSecurity(@ApiIgnore UserVO user, Query query) { |
| | | user.setAccount("admin"); |
| | | //user.setAccount("admin"); |
| | | IPage<UserVO> pages = userService.selectUserPageSecurity(Condition.getPage(query), user); |
| | | return R.data(pages); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导出用户审查明细 |
| | | */ |
| | | @GetMapping("export-security") |
| | | @ApiOperationSupport(order = 13) |
| | | @ApiOperation(value = "导出用户", notes = "传入user") |
| | | public void exportSecurity(UserVO user, HttpServletResponse response) { |
| | | List<SecurityExcel> list = userService.exportSecurity(user); |
| | | ExcelUtil.export(response, "保安员审查数据" + DateUtil.time(), "保安员审查数据表", list, SecurityExcel.class); |
| | | } |
| | | |
| | | /** |
| | | * 导出模板 |
| | | */ |
| | | @GetMapping("export-template") |