package com.whyc.controller;
|
|
import com.whyc.dto.Response;
|
import com.whyc.service.ProductBomHistoryService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@Api(tags = "文档历史信息管理")
|
@RestController
|
@RequestMapping("productBomHistory")
|
public class ProductBomHistoryController {
|
@Autowired
|
private ProductBomHistoryService service;
|
|
@ApiOperation(value = "根据子件名称和母料型号查询历史版本记录")
|
@GetMapping("getBomHistoryByPModelAndSName")
|
public Response getBomHistoryByPModelAndSName(@RequestParam String pmodel, @RequestParam String sname){
|
return service.getBomHistoryByPModelAndSName(pmodel,sname);
|
}
|
|
/*@ApiOperation(tags="产品管理",value = "查询产品的最大版本信息")
|
@GetMapping("getMaxBoom")
|
public Response getMaxBoom(@RequestParam String parentCode,@RequestParam String parentName,@RequestParam String parentModel){
|
return service.getMaxBoom(parentCode,parentName,parentModel);
|
}*/
|
}
|