|
|
@@ -395,10 +395,10 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
public ApiResult<String> uploadDCRFile(String accessKey, String requestId, MultipartFile file,String data) throws IOException {
|
|
|
try {
|
|
|
String filename = file.getOriginalFilename();
|
|
|
- //String path = saveFile(file);
|
|
|
+ String path = saveFile(file);
|
|
|
//上传FTP
|
|
|
- uploadFTP(convertMultiPartFileToFile(file));
|
|
|
- //int id = saveFilePath(accessKey, requestId,path, (int) file.getSize(), filename,data);
|
|
|
+ //uploadFTP(convertMultiPartFileToFile(file));
|
|
|
+ int id = saveFilePath(accessKey, requestId,path, (int) file.getSize(), filename,data);
|
|
|
return ApiResponse.successRsp("0", "Success", requestId, "");
|
|
|
}catch (Exception e) {
|
|
|
e.printStackTrace();
|