| | |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.dto.sd.OrderDTO; |
| | | import com.example.erp.dto.sd.OrderDetailProductDTO; |
| | | import com.example.erp.entity.sd.Order; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.entity.sd.OrderGlassDetail; |
| | |
| | | } |
| | | |
| | | @ApiOperation("根据id获取订单明细信息") |
| | | @SaCheckPermission("selectOrder.edit") |
| | | @SaCheckPermission("selectOrder.search") |
| | | @PostMapping("/getOrderDetailById/{id}") |
| | | public Result getOrderDetailById(@PathVariable String id) { |
| | | return Result.seccess(orderService.getOrderDetailById(id)); |
| | |
| | | DownExcel.download(response, OrderDTO.class, orderService.exportOrderProductSummary(dates),"orderReport"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("订单小片标签") |
| | | @PostMapping("/getOrderProductDetailTag/{orderId}") |
| | | public Result getOrderProductDetailTag(@PathVariable String orderId) { |
| | |
| | | @ApiOperation("订单加工单打印-小片明细") |
| | | @GetMapping ("/printOrderProductGlassDetail/{orderId}") |
| | | public Result printOrderProductGlassDetail(@PathVariable String orderId) { |
| | | |
| | | return Result.seccess(orderService.printOrderProductGlassDetail(orderId)); |
| | | } |
| | | @ApiOperation("订单加工单打印-小片明细1") |
| | | @PostMapping ("/printOrderProductGlassDetailMonolithic/{orderId}") |
| | | public Result printOrderProductGlassDetailMonolithic(@PathVariable String orderId,@RequestBody List<String> selectedValues) { |
| | | return Result.seccess(orderService.printOrderProductGlassDetailMonolithic(orderId,selectedValues)); |
| | | } |
| | | @ApiOperation("订单加工单打印-成品2") |
| | | @GetMapping ("/printOrderProductDetail/{orderId}/{selectedValues}") |
| | |
| | | return Result.seccess(orderService.printOrderProductDetails(orderId,selectedValues)); |
| | | } |
| | | |
| | | @ApiOperation("订单打印计数") |
| | | @PostMapping ("/updateOrderPrintNumber/{orderId}") |
| | | public Result updateOrderPrintNumber(@PathVariable String orderId) { |
| | | |
| | | return Result.seccess(orderService.updateOrderPrintNumber(orderId)); |
| | | } |
| | | |
| | | |
| | | } |