| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.EncryptionReq; |
| | | import com.doumee.config.annotation.EncryptionResp; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.Constants; |
| | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:workorder:create") |
| | | public ApiResponse create(@RequestBody Workorder workorder) { |
| | |
| | | } |
| | | @ApiOperation("工作台统计数据") |
| | | @PostMapping("/getIndexData") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<WorkorderIndexNumVO> getIndexData(@RequestBody Workorder workorder) { |
| | | return ApiResponse.success( workorderService.getIndexData(workorder)); |
| | | } |
| | | @ApiOperation("工作台统计报表数据") |
| | | @PostMapping("/getWorkOrderData") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<List<WorkOrderDataVO>> getWorkOrderData(@RequestBody OrderDataDTO workorder) { |
| | | return ApiResponse.success( workorderService.getWorkOrderData(workorder)); |
| | | } |
| | | |
| | | @ApiOperation("分页查询") |
| | | @PostMapping("/page") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | @RequiresPermissions("business:workorder:query") |
| | | public ApiResponse<PageData<Workorder>> findPage (@RequestBody PageWrap<Workorder> pageWrap) { |
| | | return ApiResponse.success(workorderService.findPage(pageWrap)); |
| | |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @PostMapping("/exportExcel") |
| | | @EncryptionReq |
| | | @RequiresPermissions("business:workorder:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<Workorder> pageWrap, HttpServletResponse response) { |
| | | //0SHE事件 1DCA事件提交记录 2DCA工单 3跌绊滑事件 |
| | |
| | | @ApiOperation("根据ID查询") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:workorder:query") |
| | | @EncryptionResp |
| | | @EncryptionReq |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(workorderService.getDetail(id,null)); |
| | | } |