| | |
| | | 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("分页查询") |
| | | @GetMapping("page") |