| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | @RequestMapping("productOrder") |
| | | @RequestMapping("/productOrder") |
| | | @RestController |
| | | @Api(tags = "生产订单") |
| | | public class ProductOrderController { |
| | |
| | | @GetMapping("page") |
| | | public R page(ProductOrderDto productOrder, Page page) { |
| | | return R.ok(productOrderService.pageProductOrder(page, productOrder)); |
| | | } |
| | | |
| | | @ApiOperation("工单开始和暂停") |
| | | @PostMapping("/startOrPause") |
| | | public R startOrPause(@RequestBody ProductOrderDto productOrder) { |
| | | return R.ok(productOrderService.startOrPause(productOrder)); |
| | | } |
| | | |
| | | @ApiOperation("绑定工艺路线") |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation("新增生产订单") |
| | | @PostMapping("/addProductOrder") |
| | | public R addProductOrder(@RequestBody ProductOrder productOrder) throws IOException { |
| | | return R.ok(productOrderService.addProductOrder(productOrder)); |
| | | } |
| | | |
| | | @ApiOperation("删除生产订单") |
| | | @DeleteMapping("/{ids}") |
| | | public R delete(@PathVariable("ids") Long[] ids) { |
| | | return R.ok(productOrderService.delete(ids)); |
| | | } |
| | | } |