From ac665d31e7df794f604f722e8364a08b940243d1 Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期三, 07 九月 2022 10:49:09 +0800 Subject: [PATCH] 根据subcode查询软件列表 --- src/main/java/com/whyc/controller/SoftwareController.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/whyc/controller/SoftwareController.java b/src/main/java/com/whyc/controller/SoftwareController.java index 0ac33c0..1f6dc02 100644 --- a/src/main/java/com/whyc/controller/SoftwareController.java +++ b/src/main/java/com/whyc/controller/SoftwareController.java @@ -5,12 +5,10 @@ import com.whyc.service.SoftwareService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiOperation; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; @@ -39,4 +37,17 @@ return response; } + @ApiOperation(value = "鏌ヨ杞欢鍒楄〃鐨勪俊鎭�") + @GetMapping("getAllSoftware") + public Response getAllSoftware(@RequestParam(required = false) String fileName,@RequestParam int pageCurr,@RequestParam int pageSize ){ + return service.getAllSoftware(fileName,pageCurr,pageSize); + } + + @ApiOperation(value = "鏍规嵁subcode鏌ヨ杞欢鍒楄〃") + @GetMapping("getSoftBySubCode") + public Response getSoftBySubCode(@RequestParam String subCode ){ + return service.getSoftBySubCode(subCode); + } + + } -- Gitblit v1.9.1