main
黄海 9 months ago
parent 4960d7321f
commit 5661f27f38

@ -15,10 +15,12 @@ import io.github.yedaxia.apidocs.ApiDoc;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
import java.util.List; import java.util.List;
@ApiDoc @ApiDoc
public class DataEaseController extends Controller { public class DataEaseController extends Controller {
DataEaseModel dm = new DataEaseModel(); DataEaseModel dm = new DataEaseModel();
BaseModel bm=new BaseModel(); BaseModel bm = new BaseModel();
/** /**
* identity_id, * identity_id,
*/ */
@ -65,7 +67,7 @@ public class DataEaseController extends Controller {
JSONArray jsonArray = JSONArray.fromObject(data); JSONArray jsonArray = JSONArray.fromObject(data);
for (Object o : jsonArray) { for (Object o : jsonArray) {
net.sf.json.JSONObject jo = (net.sf.json.JSONObject) o; net.sf.json.JSONObject jo = (net.sf.json.JSONObject) o;
if (identity_id>1 && jo.containsKey("行政区划") && !jo.getString("行政区划").equals(xmqh)) { if (identity_id > 1 && jo.containsKey("行政区划") && !jo.getString("行政区划").equals(xmqh)) {
renderJson(CommonUtil.returnMessageJson(false, "数据集数据与当前登录人员所属行政区划不一致,请重新选择数据集!")); renderJson(CommonUtil.returnMessageJson(false, "数据集数据与当前登录人员所属行政区划不一致,请重新选择数据集!"));
return; return;
} }

Loading…
Cancel
Save