|
|
@ -47,7 +47,7 @@ public class DataEaseController extends Controller {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 省级路由
|
|
|
|
* 省级路由
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param city_name 城市名称
|
|
|
|
* @param city_name 市州名称
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Before({GET.class})
|
|
|
|
@Before({GET.class})
|
|
|
|
@EmptyInterface({"city_name"})
|
|
|
|
@EmptyInterface({"city_name"})
|
|
|
@ -72,6 +72,10 @@ public class DataEaseController extends Controller {
|
|
|
|
redirect(publish_url + BaseApplication.PropKit.get("dataEase.ShiZhou_url") + "?attachParams=" + base64Str);
|
|
|
|
redirect(publish_url + BaseApplication.PropKit.get("dataEase.ShiZhou_url") + "?attachParams=" + base64Str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 省级路由,配合市州的大屏文档拷贝使用,每个市州大屏的仪表盘都拷贝一份出来,然后修改名称和数据源即可
|
|
|
|
|
|
|
|
* @param city_name 市州名称
|
|
|
|
|
|
|
|
*/
|
|
|
|
@Before({GET.class})
|
|
|
|
@Before({GET.class})
|
|
|
|
@EmptyInterface({"city_name"})
|
|
|
|
@EmptyInterface({"city_name"})
|
|
|
|
public void routeV2(String city_name) {
|
|
|
|
public void routeV2(String city_name) {
|
|
|
@ -92,25 +96,6 @@ public class DataEaseController extends Controller {
|
|
|
|
redirect(publish_url + "/#/de-link/" + shareUrl + "?attachParams=" + base64Str);
|
|
|
|
redirect(publish_url + "/#/de-link/" + shareUrl + "?attachParams=" + base64Str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 为OpenResty拦截器写的更新城市地图的接口
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param city_name 城市名称
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
|
|
|
@EmptyInterface({"city_name"})
|
|
|
|
|
|
|
|
public void updateCityArea(String city_name) {
|
|
|
|
|
|
|
|
//大屏名称
|
|
|
|
|
|
|
|
String dataVisualizationNameCity = BaseApplication.PropKit.get("dataEase.dataVisualizationNameCity");
|
|
|
|
|
|
|
|
//先更新一下数据表
|
|
|
|
|
|
|
|
int res = dm.updateCityArea(dataVisualizationNameCity, city_name);
|
|
|
|
|
|
|
|
if (res == -1) {
|
|
|
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, dataVisualizationNameCity + "名称的大屏不唯一,无法完成更新操作!"));
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(true, "更新成功!"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 市级路由
|
|
|
|
* 市级路由
|
|
|
@ -375,8 +360,6 @@ public class DataEaseController extends Controller {
|
|
|
|
String area_code = rm.getAreaCode(identity_id, person_id);
|
|
|
|
String area_code = rm.getAreaCode(identity_id, person_id);
|
|
|
|
//根据区域码,获取区域名称
|
|
|
|
//根据区域码,获取区域名称
|
|
|
|
String area_name = rm.getAreaName(area_code);
|
|
|
|
String area_name = rm.getAreaName(area_code);
|
|
|
|
//父亲的区域名称
|
|
|
|
|
|
|
|
String parent_area_name = rm.getParentAreaName(area_name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Record> list = dm.getDataSetContent(id, identity_id, area_name);
|
|
|
|
List<Record> list = dm.getDataSetContent(id, identity_id, area_name);
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
@ -698,5 +681,4 @@ public class DataEaseController extends Controller {
|
|
|
|
kv.set("message", "上传成功");
|
|
|
|
kv.set("message", "上传成功");
|
|
|
|
renderJson(kv);
|
|
|
|
renderJson(kv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|