first commit
This commit is contained in:
42
src/main/java/com/example/sso/dao/KeChengWeiWanchengDao.java
Normal file
42
src/main/java/com/example/sso/dao/KeChengWeiWanchengDao.java
Normal file
@ -0,0 +1,42 @@
|
||||
package com.example.sso.dao;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.example.sso.util.V5utils;
|
||||
|
||||
public class KeChengWeiWanchengDao {
|
||||
public static JSONArray jsonArray(String idCard) {
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("app_id","665ea38ef718f1edccf7b20d");
|
||||
jsonObject.put("entry_id","6667e754f718f1edcc1ba298");
|
||||
jsonObject.put("limit",10000);
|
||||
JSONArray fields = new JSONArray();
|
||||
fields.add("_widget_1718085460711");
|
||||
fields.add("_widget_1718086369844");
|
||||
fields.add("_widget_1718086369845");
|
||||
fields.add("_widget_1718086369846");
|
||||
fields.add("_widget_1718086369847");
|
||||
fields.add("_widget_1718085460707");
|
||||
jsonObject.put("fields",fields);
|
||||
JSONObject filter = new JSONObject();
|
||||
filter.put("rel","and");
|
||||
JSONArray cond = new JSONArray();
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
jsonObject1.put("field","_widget_1718085460711");
|
||||
jsonObject1.put("method","eq");
|
||||
JSONArray value = new JSONArray();
|
||||
value.add(idCard);
|
||||
jsonObject1.put("value",value);
|
||||
cond.add(jsonObject1);
|
||||
filter.put("cond",cond);
|
||||
jsonObject.put("filter",filter);
|
||||
|
||||
String jsonString = jsonObject.toJSONString();
|
||||
|
||||
String list = V5utils.list(jsonString);
|
||||
JSONObject jsonObject11 = JSON.parseObject(list);
|
||||
JSONArray jsonArray = jsonObject11.getJSONArray("data");
|
||||
return jsonArray;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user