|
@@ -17,6 +17,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.http.MediaType;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
@@ -249,7 +250,7 @@ public class RmsCarrierController extends BaseRESTfulController {
|
|
}
|
|
}
|
|
|
|
|
|
// 处理承运商照片
|
|
// 处理承运商照片
|
|
- @PostMapping("/uploadCarrier1")
|
|
|
|
|
|
+ @PostMapping(value = "/uploadCarrier1",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
public RESTfulResult uploadCarrier1(@RequestParam("file") MultipartFile multipartFile) throws Exception {
|
|
public RESTfulResult uploadCarrier1(@RequestParam("file") MultipartFile multipartFile) throws Exception {
|
|
// String str="运输证";
|
|
// String str="运输证";
|
|
// int result=rmsCarrierService.uploadCarrier(multipartFile,str);
|
|
// int result=rmsCarrierService.uploadCarrier(multipartFile,str);
|