whycxzp
2022-09-07 414d8e938349358b43e6ff485f7ca819d10b7a41
src/main/java/com/whyc/controller/SoftwareController.java
@@ -12,6 +12,7 @@
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
@Api(tags = "软件管理-新版")
@@ -24,7 +25,7 @@
    @ApiModelProperty("excel解析")
    @PostMapping("excelParse")
    public Response excelParse(@RequestParam MultipartFile multipartFile) throws IOException, InvalidFormatException {
    public Response excelParse(@RequestParam MultipartFile multipartFile) throws IOException, InvalidFormatException, ParseException {
        Response<Object> response = new Response<>();
        String name=multipartFile.getOriginalFilename();
        assert name != null;
@@ -43,5 +44,11 @@
        return service.getAllSoftware(fileName,pageCurr,pageSize);
    }
    @ApiOperation(value = "根据subcode查询软件列表")
    @GetMapping("getSoftBySubCode")
    public Response getSoftBySubCode(@RequestParam String subCode ){
        return service.getSoftBySubCode(subCode);
    }
}