|
|
|
@ -860,7 +860,7 @@ public class BaseController extends Controller {
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void saveDataSetTable(int dataset_id, String data) {
|
|
|
|
|
//登录的人员
|
|
|
|
|
//int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
|
int identity_id = Integer.parseInt(CookieUtil.getValue(getRequest(), "identity_id"));
|
|
|
|
|
String person_id = CookieUtil.getValue(getRequest(), "person_id");
|
|
|
|
|
//如果是市/州,名称
|
|
|
|
|
//如果是县区,名称
|
|
|
|
@ -873,7 +873,18 @@ public class BaseController extends Controller {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
model.saveDataSetTable(dataset_id, xmqh, jsonArray);
|
|
|
|
|
if (identity_id > 1) {
|
|
|
|
|
for (Object o : jsonArray) {
|
|
|
|
|
net.sf.json.JSONObject jo = (net.sf.json.JSONObject) o;
|
|
|
|
|
if (!jo.containsKey("行政区划")) {
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(false, "数据集数据不是省级管理员操作,但却没有行政区划的字段!"));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//保存
|
|
|
|
|
model.saveDataSetTable(identity_id, dataset_id, xmqh, jsonArray);
|
|
|
|
|
renderJson(CommonUtil.returnMessageJson(true, "保存成功"));
|
|
|
|
|
}
|
|
|
|
|
}
|