| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | */ |
| | | @PostMapping("/page") |
| | | @ApiOperation("分页条件查询") |
| | | public R<PageDTO<DeptVO>> page(@RequestBody DeptQuery query) { |
| | | public R<PageDTO<DeptVO>> page(@Validated @RequestBody DeptQuery query) { |
| | | try { |
| | | return R.ok(tbDeptService.queryPage(query)); |
| | | } catch (Exception e) { |