From 8ed411856bd6341d927cd8fa7eda44e7ddad4b7d Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期五, 19 八月 2022 10:31:59 +0800 Subject: [PATCH] 产品详情查看版本信息 --- src/main/java/com/whyc/controller/ProductController.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/controller/ProductController.java b/src/main/java/com/whyc/controller/ProductController.java index 4ad597d..4611c3c 100644 --- a/src/main/java/com/whyc/controller/ProductController.java +++ b/src/main/java/com/whyc/controller/ProductController.java @@ -1,6 +1,8 @@ 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; @@ -17,6 +19,9 @@ @Autowired private ProductService service; + @Autowired + private ProductHistoryService historyService; + @ApiOperation(tags = "鐗╂枡绠$悊",value = "鏍规嵁鐗╂枡缂栫爜鏌ヨ鎵�鏈夊寘鍚鐗╂枡鐨勪骇鍝佷俊鎭�",notes = "8.17淇敼鍚庝娇鐢�") @GetMapping("getProductByMaterial") public Response getProductByMaterial(@RequestParam String subCode){ @@ -29,4 +34,10 @@ , @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); + } + } -- Gitblit v1.9.1