| | |
| | | @PostMapping("/addOrderWork") |
| | | public Result addOrderWork( @RequestBody Map<String,Object> object){ |
| | | |
| | | if(workOrderService.addOrderWorkSv(object)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"保存失败"); |
| | | // if(workOrderService.addOrderWorkSv(object)){ |
| | | // return Result.seccess(); |
| | | // }else { |
| | | // throw new ServiceException(Constants.Code_500,"保存失败"); |
| | | // |
| | | // } |
| | | |
| | | } |
| | | return Result.seccess(workOrderService.addOrderWorkSv(object)); |
| | | } |
| | | |
| | | //删除工单 |
| | |
| | | @PathVariable String orderId, |
| | | @PathVariable String productionId |
| | | ){ |
| | | if(workOrderService.deleteOrderWorkSv(orderId,productionId)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"删除失败"); |
| | | |
| | | } |
| | | // if(workOrderService.deleteOrderWorkSv(orderId,productionId)){ |
| | | // return Result.seccess(); |
| | | // }else { |
| | | // throw new ServiceException(Constants.Code_500,"删除失败"); |
| | | // |
| | | // } |
| | | return Result.seccess(workOrderService.deleteOrderWorkSv(orderId,productionId)); |
| | | } |
| | | } |