parent
0f58b5a234
commit
8054d630bc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
update visualization_link_jump_info set content=replace(content,'http://10.10.21.20:9000/dsBase/','https://www.edusoa.com/dsBase/') ;
|
||||
update data_visualization_info set component_data=replace(component_data,'http://10.10.21.20:9000/dsBase/','https://www.edusoa.com/dsBase/') ;
|
||||
update data_visualization_info set component_data=replace(component_data,'http://10.10.14.203/','https://www.edusoa.com/dataease/') ;
|
Binary file not shown.
Binary file not shown.
@ -1,45 +0,0 @@
|
||||
package com.dsideal.base.Tools;
|
||||
|
||||
import com.dsideal.base.DataEase.Model.DataEaseModel;
|
||||
import com.dsideal.base.Tools.Util.LocalMysqlConnectUtil;
|
||||
import com.jcraft.jsch.JSchException;
|
||||
import com.jfinal.plugin.activerecord.Db;
|
||||
import com.jfinal.plugin.activerecord.Record;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class Step4_ChangUrlLink {
|
||||
|
||||
public static DataEaseModel dm = new DataEaseModel();
|
||||
|
||||
public static void main(String[] args) throws IOException, JSchException {
|
||||
LocalMysqlConnectUtil.Init();
|
||||
//原地址
|
||||
Map<String, String> _map = new HashMap<>();
|
||||
//路由地址替换
|
||||
_map.put("http://10.10.21.20:9000/dsBase/", "https://www.edusoa.com/dsBase/");
|
||||
//大屏发布地址替换
|
||||
_map.put("http://10.10.14.203/", "https://www.edusoa.com/");
|
||||
|
||||
//select component_data from data_visualization_info where id=1036286881547030528
|
||||
String sql = "select * from data_visualization_info";
|
||||
List<Record> list = Db.use(DataEaseModel.DB_NAME).find(sql);
|
||||
for (Record record : list) {
|
||||
String content = record.getStr("component_data");
|
||||
long id = record.getLong("id");
|
||||
//遍历Map<String,String> _map
|
||||
for (Map.Entry<String, String> entry : _map.entrySet()) {
|
||||
String sourceHost = entry.getKey();
|
||||
String targetHost = entry.getValue();
|
||||
if (content.contains(sourceHost)) {
|
||||
sql = "update data_visualization_info set content=? where id=?";
|
||||
Db.use(DataEaseModel.DB_NAME).update(sql, content.replace(sourceHost, targetHost), id);
|
||||
System.out.println("id=" + id + " 替换完成,替换内容:" + sourceHost + "->" + targetHost);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue