| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.ProductHistory; |
| | | import com.whyc.service.ProductHistoryService; |
| | | import com.whyc.service.ProductService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Autowired |
| | | private ProductService service; |
| | | |
| | | @Autowired |
| | | private ProductHistoryService historyService; |
| | | |
| | | @ApiOperation(tags = "物料管理",value = "根据物料编码查询所有包含该物料的产品信息",notes = "8.17修改后使用") |
| | | @GetMapping("getProductByMaterial") |
| | | public Response getProductByMaterial(@RequestParam String subCode){ |
| | |
| | | , @RequestParam(required = false) String customCode, @RequestParam int pageCurr, @RequestParam int pageSize){ |
| | | return service.getAllProduct(parentCode,parentName,parentModel,customCode,pageCurr,pageSize); |
| | | } |
| | | @ApiOperation(value = "产品详情查看版本信息",notes = "8.17修改后使用") |
| | | @GetMapping("getProductVersion") |
| | | public Response getProductVersion( @RequestParam String parentModel, String customCode){ |
| | | return historyService.getProductVersion(parentModel,customCode); |
| | | } |
| | | |
| | | } |