| | |
| | | throw new ServiceException(Constants.Code_500,Constants.Code_msg); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("订单保存") |
| | | @PostMapping("/saveOrderTitle") |
| | | @SaCheckPermission("createOrder.add") |
| | | public Result saveOrderTitle(@RequestBody Map<String, Object> orderMap) throws Exception { |
| | | if(orderService.saveOrderTitle(orderMap)) { |
| | | return Result.seccess(true); |
| | | }else{ |
| | | throw new ServiceException(Constants.Code_500,Constants.Code_msg); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("重复订单查询") |
| | | @SaCheckPermission("createOrder.search") |
| | | @PostMapping("/selectOrder") |
| | | public Result selectOrder(@RequestBody Map<String, Object> orderMap) throws Exception { |
| | | return Result.seccess(orderService.selectOrder(orderMap)); |
| | | } |
| | | @ApiOperation("订单分页筛选查询") |
| | | @SaCheckPermission("selectOrder.search") |
| | | @PostMapping("/getOrderList/{pageNum}/{pageSize}/{orderType}/{selectDate}") |
| | |
| | | } |
| | | @ApiOperation("审核订单") |
| | | @SaCheckPermission("createOrder.review") |
| | | @PostMapping("/reviewOrderById/{id}/{status}") |
| | | public Result reviewOrderById(@PathVariable String id,@PathVariable Integer status) { |
| | | return Result.seccess(orderService.reviewOrderById(id,status)); |
| | | @PostMapping("/reviewOrderById/{id}/{status}/{userId}/{userName}") |
| | | public Result reviewOrderById(@PathVariable String id, |
| | | @PathVariable Integer status |
| | | ,@PathVariable String userId,@PathVariable String userName) { |
| | | return Result.seccess(orderService.reviewOrderById(id,status,userId,userName)); |
| | | } |
| | | |
| | | @ApiOperation("审核工艺") |
| | |
| | | |
| | | return Result.seccess(orderService.printOrderProductGlassDetail(orderId)); |
| | | } |
| | | @ApiOperation("订单加工单打印-成品2") |
| | | @GetMapping ("/printOrderProductDetail/{orderId}/{productId}") |
| | | public Result printOrderProductDetail(@PathVariable String orderId,@PathVariable String productId) { |
| | | |
| | | return Result.seccess(orderService.printOrderProductDetails(orderId,productId)); |
| | | } |
| | | |
| | | |
| | | } |