| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.admin.request.RetentionQuery; |
| | | import com.doumee.dao.business.model.Retention; |
| | | import com.doumee.dao.system.vo.RetentionVo; |
| | | import com.doumee.service.business.RetentionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @ApiOperation("分页查询") |
| | | @PostMapping("/page") |
| | | //@RequiresPermissions("business:retention:query") |
| | | public ApiResponse<PageData<Retention>> findPage (@RequestBody PageWrap<RetentionQuery> pageWrap) { |
| | | public ApiResponse<PageData<Retention>> findPage (@RequestBody PageWrap<Retention> pageWrap) { |
| | | return ApiResponse.success(retentionService.findTrainTimePage(pageWrap)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/exportExcel") |
| | | //@RequiresPermissions("business:retention:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<Retention> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(Retention.class).export(retentionService.findPage(pageWrap).getRecords(), "在厂人员信息 表(滞留)", response); |
| | | ExcelExporter.build(RetentionVo.class).export(retentionService.findPageExcel(pageWrap), "在厂人员信息 表(滞留)", response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |