Commit 3f3f69d0c2bee6abaa3ee6ce782f79309a77cb5d

Authored by liquanyu
1 parent bf6c7742c1

update code

Showing 3 changed files with 27 additions and 23 deletions

platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java View file @ 3f3f69d
... ... @@ -4,6 +4,7 @@
4 4 * Created by Administrator on 2017-01-18.
5 5 */
6 6  
  7 +import com.lyms.platform.common.pojo.SyncDataModel;
7 8 import org.apache.http.HttpEntity;
8 9 import org.apache.http.HttpResponse;
9 10 import org.apache.http.HttpStatus;
... ... @@ -171,6 +172,21 @@
171 172 }
172 173 }
173 174 return httpStr;
  175 + }
  176 +
  177 + public static void main(String[] args) throws Exception {
  178 +
  179 + Map<String,String> map = new HashMap<String, String>();
  180 + map.put("patientIds","59687f1de4b0b4e56acd1f81");
  181 + map.put("page","1");
  182 + map.put("limit","10");
  183 + long start = System.currentTimeMillis();
  184 + String s = doGet("https://area-lc-api.healthbaby.com.cn:55581/getAppLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba");
  185 +
  186 + List<SyncDataModel> list = JsonUtil.toList(s, SyncDataModel.class);
  187 + long end = System.currentTimeMillis();
  188 + System.out.print(end -start);
  189 + System.out.println(s);
174 190 }
175 191 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java View file @ 3f3f69d
... ... @@ -162,15 +162,17 @@
162 162 }else{
163 163  
164 164 List<CheckResponse> result = new ArrayList<CheckResponse>();
165   - if("7".equals(HIS_VERSION)){
166   - //根据调用接口获取四川南充中心医院的Lis数据
167   - result.addAll(NczxyyLisService.queryLisCheckList(vcCardNo));
168   - }else if("6".equals(HIS_VERSION)){
169   - //调用德州妇幼lis接口
170   - result.addAll(DzfyHisService.queryLisCheckList(vcCardNo));
171   - }else{
172   - result.addAll(queryLisCheckList(vcCardNo,phone,userId));
173   - }
  165 +// if("7".equals(HIS_VERSION)){
  166 +// //根据调用接口获取四川南充中心医院的Lis数据
  167 +// result.addAll(NczxyyLisService.queryLisCheckList(vcCardNo));
  168 +// }else if("6".equals(HIS_VERSION)){
  169 +// //调用德州妇幼lis接口
  170 +// result.addAll(DzfyHisService.queryLisCheckList(vcCardNo));
  171 +// }else{
  172 +// result.addAll(queryLisCheckList(vcCardNo,phone,userId));
  173 +// }
  174 +
  175 + result.addAll(queryLisCheckList(vcCardNo,phone,userId));
174 176  
175 177 //result.addAll(queryPacsCheckList(cardNo));
176 178 List<String> keyList = new ArrayList<>();
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/HttpClientUtil.java View file @ 3f3f69d
... ... @@ -171,19 +171,5 @@
171 171 return json1;
172 172 }
173 173  
174   -
175   -
176   -
177   -
178   - public static void main(String[] args) throws Exception {
179   -
180   - long start = System.currentTimeMillis();
181   - String s = doPost("https://area-qhd-api.healthbaby.com.cn:18019/findSyncData", new HashMap<String, String>(), "utf-8");
182   -
183   - List<SyncDataModel> list = JsonUtil.toList(s, SyncDataModel.class);
184   - long end = System.currentTimeMillis();
185   - System.out.print(end -start);
186   - System.out.println(s);
187   - }
188 174 }