From 9a8f736ebb5f926d2e04e21ae261a3b58a7ba445 Mon Sep 17 00:00:00 2001 From: liquanyu Date: Tue, 22 Aug 2017 18:35:26 +0800 Subject: [PATCH] update code --- .../lyms/platform/common/utils/HttpClientUtil.java | 3 +- .../platform/operate/web/facade/LisFacade.java | 33 +++++++++++----------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java b/platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java index 06f60ac..5443353 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java +++ b/platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java @@ -223,8 +223,9 @@ public class HttpClientUtil { Map map = new HashMap(); map.put("page","1"); map.put("limit","10"); + map.put("patientIds","5959c0a9d5402ad93418edc9"); long start = System.currentTimeMillis(); - String s = doGet("https://area-dz-api.healthbaby.com.cn:12356/getNoSendLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba"); + String s = doGet("https://area-qhd-api.healthbaby.com.cn:18019/getAppLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba"); long end = System.currentTimeMillis(); System.out.print(end -start); diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java index bf25ff4..1ec72b2 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java @@ -591,7 +591,8 @@ public class LisFacade { query.setPage(page); query.setLimit(limit); query.setNeed("true"); - query.setSort(" CHECK_TIME,ID DESC "); +// query.setSort(" CHECK_TIME,ID DESC "); + query.setSort(" PUBLISH_TIME DESC "); query.setPhones(phones); query.setVcCardNos(vcCardNos); @@ -601,21 +602,21 @@ public class LisFacade { Map hospitalNames = getHospitalNames(hosptalIds); lises = lisService.queryLisDataByQuery(query); System.out.println("patientIds==" + patientIds + "; lies siez = " + lises.size()); - // 排序 - Collections.sort(lises, new Comparator() { - public int compare(Object a, Object b) { - if (((LisReportModel) a).getCheckTime() == null) { - return -1; - } - if (((LisReportModel) b).getCheckTime() == null) { - return -1; - } - if (((LisReportModel) a).getCheckTime().before(((LisReportModel) a).getCheckTime())) { - return 1; - } - return -1; - } - }); +// // 排序 +// Collections.sort(lises, new Comparator() { +// public int compare(Object a, Object b) { +// if (((LisReportModel) a).getCheckTime() == null) { +// return -1; +// } +// if (((LisReportModel) b).getCheckTime() == null) { +// return -1; +// } +// if (((LisReportModel) a).getCheckTime().before(((LisReportModel) a).getCheckTime())) { +// return 1; +// } +// return -1; +// } +// }); if (CollectionUtils.isNotEmpty(lises)) { -- 1.8.3.1