| | |
| | | package com.ruoyi.appendix.controller; |
| | | |
| | | import com.ruoyi.appendix.service.AppendixService; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.production.pojo.ProductOrder; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <br> |
| | |
| | | @RequestMapping("/appendix") |
| | | @Api("BOM-工艺路线附表控制层") |
| | | public class AppendixController { |
| | | |
| | | @Resource |
| | | private AppendixService appendixService; |
| | | |
| | | @PostMapping("/bindingRoute") |
| | | @ApiOperation("生产订单绑定工艺路线") |
| | | public AjaxResult bindingRoute(@RequestBody ProductOrder productOrder) { |
| | | appendixService.populateData(productOrder); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | } |