|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | 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") | 
|---|
|  |  |  | //@RequiresPermissions("business:retention:query") | 
|---|
|  |  |  | public ApiResponse<PageData<Retention>> findPage (@RequestBody PageWrap<Retention> pageWrap) { | 
|---|
|  |  |  | return ApiResponse.success(retentionService.findPage(pageWrap)); | 
|---|
|  |  |  | return ApiResponse.success(retentionService.findTrainTimePage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("导出Excel") | 
|---|
|  |  |  | @PostMapping("/exportExcel") | 
|---|
|  |  |  | @RequiresPermissions("business:retention: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查询") | 
|---|