gongchunyi
5 小时以前 7ea8883ca6b47ec014a32ed57c3bea64544e893e
src/main/java/com/ruoyi/appendix/controller/AppendixController.java
@@ -1,8 +1,13 @@
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>
@@ -17,4 +22,15 @@
@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();
    }
}