| | |
| | | } |
| | | |
| | | |
| | | //删除工单 |
| | | @ApiOperation("删除工单接口") |
| | | //删除流程卡 |
| | | @ApiOperation("删除流程卡接口") |
| | | @PostMapping("/deleteFlowCard/{orderId}/{processId}") |
| | | public Result deleteOrderWork( |
| | | @PathVariable String orderId, |
| | |
| | | if(flowCardService.deleteFlowCardSv(orderId,processId)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"删除失败"); |
| | | throw new ServiceException(Constants.Code_500,"删除失败,请检查是否已报工"); |
| | | |
| | | } |
| | | } |
| | | |
| | | //修改排版状态 |
| | | @ApiOperation("修改排版状态接口") |
| | | @PostMapping("/updateLayoutStatus/{processId}") |
| | | @PostMapping("/updateLayoutStatus/{processId}/{state}") |
| | | public Result updateLayoutStatus( |
| | | @PathVariable String processId |
| | | @PathVariable String processId, |
| | | @PathVariable Integer state |
| | | ){ |
| | | if(flowCardService.updateLayoutStatusSv(processId)){ |
| | | if(flowCardService.updateLayoutStatusSv(processId,state)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"修改失败"); |
| | |
| | | return Result.seccess(flowCardService.selectSchedulingSv(selectTime1,selectTime2,orderId,processes,state,flowCard)); |
| | | |
| | | } |
| | | //流程卡明细查询 |
| | | @ApiOperation("流程卡明细查询接口") |
| | | @PostMapping ("/flowCardDetail/{processId}") |
| | | public Result flowCardDetail( |
| | | @PathVariable String processId, |
| | | @RequestBody FlowCard flowCard){ |
| | | return Result.seccess(flowCardService.flowCardDetailSv(processId,flowCard)); |
| | | |
| | | } |
| | | } |