|
@@ -34,10 +34,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.mock.web.MockMultipartFile;
|
|
import org.springframework.mock.web.MockMultipartFile;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
-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;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
@@ -70,7 +67,7 @@ public class UploadCompanyInfoAndProductController {
|
|
@ApiImplicitParam(name = "type",value = "上传类型",required = true,allowableValues = "1,2,3"),
|
|
@ApiImplicitParam(name = "type",value = "上传类型",required = true,allowableValues = "1,2,3"),
|
|
@ApiImplicitParam(name = "compName",value = "公司名称",required = false)
|
|
@ApiImplicitParam(name = "compName",value = "公司名称",required = false)
|
|
})
|
|
})
|
|
- @GetMapping("/upload")
|
|
|
|
|
|
+ @PostMapping("/upload")
|
|
public CommonResult readFile(@RequestParam(value = "paths")String paths, @RequestParam(value = "type")String type, @RequestParam(value = "compName",required = false)String compName){
|
|
public CommonResult readFile(@RequestParam(value = "paths")String paths, @RequestParam(value = "type")String type, @RequestParam(value = "compName",required = false)String compName){
|
|
|
|
|
|
if ("1".equals(type)){
|
|
if ("1".equals(type)){
|