| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.dto.YwWorkorderDataDTO; |
| | | import com.doumee.dao.business.model.YwWorkorder; |
| | | import com.doumee.dao.business.vo.YwWorkorderDataVO; |
| | | import com.doumee.service.business.YwWorkorderService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @CloudRequiredPermission("business:ywworkorder:create") |
| | | public ApiResponse create(@RequestBody YwWorkorder ywWorkorder,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | ywWorkorder.setLoginUserInfo(this.getLoginUser(token)); |
| | | ywWorkorder.setOrigin(Constants.ZERO); |
| | | return ApiResponse.success(ywWorkorderService.create(ywWorkorder)); |
| | | } |
| | | |
| | |
| | | ywWorkorderService.updateById(ywWorkorder); |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("分派工单") |
| | | @PostMapping("/dispatchOrder") |
| | | @CloudRequiredPermission("business:ywworkorder:update") |
| | | public ApiResponse dispatchOrder(@RequestBody YwWorkorder ywWorkorder,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | ywWorkorder.setLoginUserInfo(this.getLoginUser(token)); |
| | | ywWorkorderService.dispatchOrder(ywWorkorder); |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("处理工单") |
| | | @PostMapping("/dealOrder") |
| | | @CloudRequiredPermission("business:ywworkorder:update") |
| | | public ApiResponse dealOrder(@RequestBody YwWorkorder ywWorkorder,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | ywWorkorder.setLoginUserInfo(this.getLoginUser(token)); |
| | | ywWorkorderService.dealOrder(ywWorkorder); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("获取工单数量信息") |
| | | @PostMapping("/getDataVO") |
| | | @CloudRequiredPermission("business:ywworkorder:update") |
| | | public ApiResponse<YwWorkorderDataVO> getDataVO(@RequestBody YwWorkorderDataDTO dto,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | YwWorkorderDataVO ywWorkorderDataVO = ywWorkorderService.getDataVO(dto); |
| | | return ApiResponse.success(ywWorkorderDataVO); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ApiOperation("分页查询") |
| | | @PostMapping("/page") |