|
@ -680,7 +680,7 @@ public class YkyyEntranceService {
|
|
jsonObject.put("cfsb","X155245");
|
|
jsonObject.put("cfsb","X155245");
|
|
jsonObject.put("cfhm","2524863258522");
|
|
jsonObject.put("cfhm","2524863258522");
|
|
jsonObject.put("fkzt","0");
|
|
jsonObject.put("fkzt","0");
|
|
jsonObject.put("cflx","其他");
|
|
|
|
|
|
jsonObject.put("cflx",1100);
|
|
jsonObject.put("kfrq","2020-06-23 15:25:58");
|
|
jsonObject.put("kfrq","2020-06-23 15:25:58");
|
|
jsonObject.put("scddh","SH2856545254");
|
|
jsonObject.put("scddh","SH2856545254");
|
|
jsonObject.put("brid","25318532");
|
|
jsonObject.put("brid","25318532");
|
|
@ -1545,19 +1545,24 @@ public class YkyyEntranceService {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public JSONArray findHisCard(String idcard) throws Exception {
|
|
|
|
|
|
public JSONArray findHisCard(String idcard,boolean demoFlag) throws Exception {
|
|
String sql = "select o.pat_no as \"pat_no\",o.card_no as \"card_no\",o.card_stat as \"card_stat\",o.op_date as \"op_date\",o.card_type as \"card_type\",o.card_type_name as \"card_type_name\" from v_zksg_brcx x,V_HLW_CARDINFO o where o.pat_no = x.mzhm and x.sfzh = '"+idcard+"'";
|
|
String sql = "select o.pat_no as \"pat_no\",o.card_no as \"card_no\",o.card_stat as \"card_stat\",o.op_date as \"op_date\",o.card_type as \"card_type\",o.card_type_name as \"card_type_name\" from v_zksg_brcx x,V_HLW_CARDINFO o where o.pat_no = x.mzhm and x.sfzh = '"+idcard+"'";
|
|
JSONArray array = new JSONArray();
|
|
JSONArray array = new JSONArray();
|
|
Map<String,Object> params = new HashedMap();
|
|
Map<String,Object> params = new HashedMap();
|
|
params.put("sql",sql);
|
|
params.put("sql",sql);
|
|
logger.info("idcard:"+sql);
|
|
logger.info("idcard:"+sql);
|
|
HttpResponse response = HttpUtils.doGet(url,params);
|
|
|
|
String content = response.getContent();
|
|
|
|
logger.info("response:"+content);
|
|
|
|
JSONObject rs = JSON.parseObject(content);
|
|
|
|
Integer status = rs.getInteger("status");
|
|
|
|
if (status==200){
|
|
|
|
array = rs.getJSONArray("detailModelList");
|
|
|
|
|
|
if (demoFlag){
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
HttpResponse response = HttpUtils.doGet(url,params);
|
|
|
|
String content = response.getContent();
|
|
|
|
logger.info("response:"+content);
|
|
|
|
JSONObject rs = JSON.parseObject(content);
|
|
|
|
Integer status = rs.getInteger("status");
|
|
|
|
if (status==200){
|
|
|
|
array = rs.getJSONArray("detailModelList");
|
|
|
|
}
|
|
}
|
|
}
|
|
return array;
|
|
return array;
|
|
}
|
|
}
|