|
@@ -65,7 +65,7 @@ public class DataMigrationController {
|
|
|
* targetGroupCode 现场集团编码
|
|
|
* targetProjectId 现场项目id
|
|
|
*/
|
|
|
- @GetMapping("/excel")
|
|
|
+ @PostMapping("/excel")
|
|
|
public void migrateForExcel(HttpServletResponse response, @RequestBody MigrationInfo migrationInfo) {
|
|
|
//调用服务迁移数据,返回处理结果excel
|
|
|
try {
|
|
@@ -209,7 +209,7 @@ public class DataMigrationController {
|
|
|
log.error("参数转化失败(QueryCriteria -> jsonString)"+ e.getMessage());
|
|
|
return false;
|
|
|
}
|
|
|
- String response = HttpUtil.post(url.toString(), requestBody, 5000);
|
|
|
+ String response = HttpUtil.post(url.toString(), requestBody, 3000);
|
|
|
CommonResult<List> commonResult = JSONUtil.toBean(response, CommonResult.class);
|
|
|
if(commonResult.getResult().equals(DmpResult.SUCCESS) && commonResult.getCount() == 1 ){
|
|
|
return true;
|