|
|
@ -265,7 +265,19 @@ public class DataEaseController extends Controller {
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@IsLoginInterface({})
|
|
|
|
@IsNumericInterface({ "id" })
|
|
|
|
@IsNumericInterface({ "id" })
|
|
|
|
public void getDataSetContent(int id) {
|
|
|
|
public void getDataSetContent(int id) {
|
|
|
|
List<Record> list = dm.getDataSetContent(id);
|
|
|
|
//登录的人员
|
|
|
|
|
|
|
|
int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
|
|
|
|
String person_id = CookieUtil.getValue(getRequest(), "person_id");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取他是哪个城市或者县区的管理员
|
|
|
|
|
|
|
|
//行政区划码
|
|
|
|
|
|
|
|
String area_code = rm.getAreaCode(identity_id, person_id);
|
|
|
|
|
|
|
|
//根据区域码,获取区域名称
|
|
|
|
|
|
|
|
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);
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|