@ -110,6 +110,7 @@ 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 ) ;
long childId = Long . parseLong ( JSONObject . parseObject ( res ) . getString ( "data" ) ) ;
//更新pid,没有这步的话,在界面上看不到拷贝出来的大屏!
@ -192,7 +193,7 @@ public class CopyBigScreen {
publishShare ( motherShareRecord , childId ) ;
System . out . println ( ( i + 1 ) + "、" + cityName + "修改完成,共" + ( list . size ( ) ) + "个。" ) ;
}
System . out . println ( list . size ( ) + "个城市大屏拷贝完成!" ) ;
System . out . println ( list . size ( ) + "个城市大屏拷贝完成!" ) ;
}
/ * *
@ -200,7 +201,7 @@ public class CopyBigScreen {
*
* @param dataVisualizationProvince 省 级 大 屏 的 名 称
* /
public static long copyProvinceScreen ( String dataVisualizationProvince ) {
public static void copyProvinceScreen ( String dataVisualizationProvince ) {
//清理掉旧的数据
clearScreen ( dataVisualizationProvince ) ;
//母屏信息
@ -219,7 +220,6 @@ public class CopyBigScreen {
//发布共享链接
publishShare ( motherShareRecord , childId ) ;
System . out . println ( "省级大屏拷贝完成!" ) ;
return motherId ;
}
/ * *
@ -252,10 +252,10 @@ public class CopyBigScreen {
//拷贝市州级大屏
copyCityScreen ( dataVisualizationNameCity ) ;
//更新复制出的省级大屏的链接路由
Record motherRecord = getVisualizationByName ( dataVisualization NameCity ) ;
Record motherRecord = getVisualizationByName ( dataVisualization Province + "【黄海】" ) ;
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=?)" ;
Db . use ( DB_NAME ) . update ( sql , motherId ) ;
System . out . println ( "恭喜,所有操作成功完成 ! ") ;
System . out . println ( "恭喜,所有操作成功完成 ~~~ ") ;
}
}