| | |
| | | @GetMapping("/select") |
| | | public AjaxResult selectList(BsSchoolBo bo) { |
| | | return AjaxResult.success(iBsSchoolService.list(new LambdaQueryWrapper<BsSchool>() |
| | | .ne(BsSchool::getCode, "0000") |
| | | .like(StringUtils.isNotBlank(bo.getName()), BsSchool::getName, bo.getName()))); |
| | | } |
| | | |
| | |
| | | @ApiOperation("导出学校列表") |
| | | @PreAuthorize("@ss.hasPermi('oa:school:export')") |
| | | @Log(title = "学校", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public void export(@Validated BsSchoolBo bo, HttpServletResponse response) { |
| | | List<BsSchoolVo> list = iBsSchoolService.queryList(bo); |
| | | @PostMapping("/export") |
| | | public void export(BsSchoolBo bo, HttpServletResponse response) { |
| | | List<BsSchoolVo> list = iBsSchoolService.exportList(bo); |
| | | ExcelUtil.exportExcel(list, "学校", BsSchoolVo.class, response); |
| | | } |
| | | |