|
@@ -6,16 +6,9 @@ import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import java.io.File;
|
|
|
-
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
-
|
|
|
/**
|
|
|
* @author :sc
|
|
|
* @since :2024/12/2
|
|
@@ -32,8 +25,9 @@ public class SynchronizationDataController {
|
|
|
*/
|
|
|
@PostMapping("/{id}/{code}")
|
|
|
public R dataSync(@PathVariable String id, @PathVariable String code) {
|
|
|
- return synchronizationDataService.dataSync(id,code);
|
|
|
+ return synchronizationDataService.dataSync(id, code);
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 模仿测试文件上传
|
|
|
*/
|
|
@@ -41,14 +35,15 @@ public class SynchronizationDataController {
|
|
|
@ResponseBody
|
|
|
public JSONObject uploadFile(@RequestParam("STANDARD_DATA") String jsonObject, @RequestParam("UPLOAD_FILE") MultipartFile file) {
|
|
|
System.out.println("fileId: " + jsonObject);
|
|
|
- if(!file.isEmpty()){
|
|
|
+ if (!file.isEmpty()) {
|
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
|
jsonObject1.put("FILE_ID", SecurityUtil.getUUID());
|
|
|
return jsonObject1;
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 文件上传对接接口
|
|
|
*/
|