whycxzp
2022-09-03 24ffd7762ead9354264b29a3374ee46cae07ad45
src/main/java/com/whyc/controller/ProductBomHistoryController.java
@@ -10,9 +10,6 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Api(tags = "文档历史信息管理")
@RestController
@RequestMapping("productBomHistory")
@@ -38,4 +35,11 @@
    public void downloaByVersion(HttpServletRequest req, HttpServletResponse resp, @RequestParam String parentModel, @RequestParam int version){
        service.downloaByVersion(req,resp,parentModel,version);
    }*/
    @GetMapping("compare")
    @ApiOperation(value = "版本对比",notes = "preProductId:旧版本的产品id,productId:新版本的产品id")
    public Response compare(@RequestParam int preProductId,@RequestParam int productId){
        return service.compare(preProductId,productId);
    }
}