|
|
|
@ -203,6 +203,23 @@ public class CopyBigScreen {
|
|
|
|
|
return motherId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取城市的共享链接
|
|
|
|
|
* @param dataVisualizationName
|
|
|
|
|
* @param cityName
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String getCityShare(String dataVisualizationName,String cityName){
|
|
|
|
|
String screenName = dataVisualizationName + cityName;
|
|
|
|
|
String sql = "select * from data_visualization_info where name =?";
|
|
|
|
|
Record record = Db.use(DataEaseModel.DB_NAME).findFirst(sql, screenName);
|
|
|
|
|
long id = record.getLong("id");
|
|
|
|
|
sql = "select * from xpack_share where resource_id=?";
|
|
|
|
|
Record shareRecord = Db.use(DataEaseModel.DB_NAME).findFirst(sql, id);
|
|
|
|
|
System.out.println(cityName + "的共享链接:" + shareRecord.getStr("uuid"));
|
|
|
|
|
return shareRecord.getStr("uuid");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) throws InterruptedException {
|
|
|
|
|
//连接本地数据库系统
|
|
|
|
|
LocalMysqlConnectUtil.Init();
|
|
|
|
|