lxw
2022-09-05 d335649da38f1bd270d7724121d0d5d428f27a40
src/main/java/com/whyc/controller/MaterialController.java
@@ -59,4 +59,16 @@
    public Response getAttachByMaterialId(@RequestParam int materialId){
        return service.getAttachByMaterialId(materialId);
    }
    @ApiOperation(value = "根据物料型号('-','_'之前的部分)查询物料的历史版本",notes = "9.3修改后使用")
    @GetMapping("getMaterialVersion")
    public Response getMaterialVersion(@RequestParam String subModel){
        return service.getMaterialVersion(subModel);
    }
    @ApiOperation(value = "根据物料id查询物料信息",notes = "9.3修改后使用")
    @GetMapping("getMaterialById")
    public Response getMaterialById(@RequestParam int materialId){
        return service.getMaterialById(materialId);
    }
}