main
黄海 7 months ago
parent df6dbef1f0
commit 1c5914d98e

@ -105,7 +105,6 @@ public class CopyBigScreen {
jo.put("pid", pid);
String res = HttpUtil.createPost(url).contentType("application/json")
.header("x-de-token", getToken()).body(jo.toString()).execute().body();
System.out.println(res);
Thread.sleep(2000);
long childId = Long.parseLong(JSONObject.parseObject(res).getString("data"));
@ -240,8 +239,10 @@ public class CopyBigScreen {
//更新复制出的省级大屏的链接路由
Record motherRecord = getVisualizationByName(dataVisualizationProvince + "【拷贝】");
long motherId = motherRecord.getLong("id");//母屏ID
String sql = "update visualization_link_jump_info set content=REPLACE(content,'/dsBase/dataease/route?city_name=','/dsBase/dataease/routeV2?city_name=') where link_jump_id in (select id from visualization_link_jump where source_dv_id=?)";
String sql = "update visualization_link_jump_info set content=replace(content,'/dsBase/dataease/route?city_name=','/dsBase/dataease/routeV2?city_name=') where link_jump_id in (select id from visualization_link_jump where source_dv_id=?)";
Db.use(DB_NAME).update(sql, motherId);
sql = "update visualization_link_jump_info set content=replace(content,'10.10.14.14','10.10.21.20') where link_jump_id in (select id from visualization_link_jump where source_dv_id=?)";
Db.use(DB_NAME).update(sql,motherId);
System.out.println("恭喜,所有操作成功完成~~~");
}
}

Loading…
Cancel
Save