| | |
| | | import com.ruoyi.production.pojo.ProcessRoute; |
| | | import com.ruoyi.production.pojo.ProductOrder; |
| | | import com.ruoyi.production.service.ProductOrderService; |
| | | import com.ruoyi.sales.pojo.SalesLedgerProduct; |
| | | import com.ruoyi.sales.service.impl.SalesLedgerProductServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private ProductOrderService productOrderService; |
| | | |
| | | @Autowired |
| | | private SalesLedgerProductServiceImpl salesLedgerProductService; |
| | | |
| | | @PostMapping("/add") |
| | | @ApiOperation("添加生产订单") |
| | | public R add(@RequestBody SalesLedgerProduct salesLedgerProduct) { |
| | | salesLedgerProductService.addProductionData(salesLedgerProduct); |
| | | return R.ok(1); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("分页查询") |
| | |
| | | util.exportExcel(response, list, "生产订单数据"); |
| | | } |
| | | |
| | | @ApiOperation("查询生产订单对应的BOM") |
| | | @GetMapping("/listProcessBom") |
| | | public R listProcessBom(Long orderId) { |
| | | return R.ok(productOrderService.listProcessBom(orderId)); |
| | | } |
| | | |
| | | |
| | | } |