|
@ -3030,10 +3030,13 @@ public class YkyyEntranceService {
|
|
|
|
|
|
|
|
|
|
|
|
public String selectByAddress(String cardNo) throws Exception {
|
|
|
public JSONObject selectByAddress(String cardNo) throws Exception {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
String address = null;
|
|
|
String zydm = null;
|
|
|
String jtdh = null;
|
|
|
JSONArray array = new JSONArray();
|
|
|
String sql = "SELECT brid as \"brid\",lxdz as \"lxdz\" from portal_his.V_ZKSG_BRCX@xec_link where jzkh = '"+cardNo+"'";
|
|
|
String sql = "SELECT brid as \"brid\",hkdz as \"hkdz\",zydm as \"zydm\",jtdh as \"jtdh\" from portal_his.V_ZKSG_BRCX@xec_link where jzkh = '"+cardNo+"'";
|
|
|
Map<String,Object> params = new HashedMap();
|
|
|
params.put("sql",sql);
|
|
|
HttpResponse response = HttpUtils.doGet(url,params);
|
|
@ -3045,12 +3048,17 @@ public class YkyyEntranceService {
|
|
|
array = rs.getJSONArray("detailModelList");
|
|
|
if (array!=null&&array.size()!=0){
|
|
|
JSONObject object = array.getJSONObject(0);
|
|
|
address=object.getString("lxdz");
|
|
|
address=object.getString("hkdz");
|
|
|
zydm = object.getString("zydm");
|
|
|
jtdh = object.getString("jtdh");
|
|
|
jsonObject.put("address",address);
|
|
|
jsonObject.put("zydm",zydm);
|
|
|
jsonObject.put("jtdh",jtdh);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
return address;
|
|
|
return jsonObject;
|
|
|
}
|
|
|
|
|
|
|