Commit 9a8f736ebb5f926d2e04e21ae261a3b58a7ba445

Authored by liquanyu
1 parent 510d966454

update code

Showing 2 changed files with 19 additions and 17 deletions

platform-common/src/main/java/com/lyms/platform/common/utils/HttpClientUtil.java View file @ 9a8f736
... ... @@ -223,8 +223,9 @@
223 223 Map<String,String> map = new HashMap<String, String>();
224 224 map.put("page","1");
225 225 map.put("limit","10");
  226 + map.put("patientIds","5959c0a9d5402ad93418edc9");
226 227 long start = System.currentTimeMillis();
227   - String s = doGet("https://area-dz-api.healthbaby.com.cn:12356/getNoSendLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba");
  228 + String s = doGet("https://area-qhd-api.healthbaby.com.cn:18019/getAppLis", map, "utf-8","3d19960bf3e81e7d816c4f26051c49ba");
228 229  
229 230 long end = System.currentTimeMillis();
230 231 System.out.print(end -start);
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java View file @ 9a8f736
... ... @@ -591,7 +591,8 @@
591 591 query.setPage(page);
592 592 query.setLimit(limit);
593 593 query.setNeed("true");
594   - query.setSort(" CHECK_TIME,ID DESC ");
  594 +// query.setSort(" CHECK_TIME,ID DESC ");
  595 + query.setSort(" PUBLISH_TIME DESC ");
595 596  
596 597 query.setPhones(phones);
597 598 query.setVcCardNos(vcCardNos);
... ... @@ -601,21 +602,21 @@
601 602 Map<String,String> hospitalNames = getHospitalNames(hosptalIds);
602 603 lises = lisService.queryLisDataByQuery(query);
603 604 System.out.println("patientIds==" + patientIds + "; lies siez = " + lises.size());
604   - // 排序
605   - Collections.sort(lises, new Comparator() {
606   - public int compare(Object a, Object b) {
607   - if (((LisReportModel) a).getCheckTime() == null) {
608   - return -1;
609   - }
610   - if (((LisReportModel) b).getCheckTime() == null) {
611   - return -1;
612   - }
613   - if (((LisReportModel) a).getCheckTime().before(((LisReportModel) a).getCheckTime())) {
614   - return 1;
615   - }
616   - return -1;
617   - }
618   - });
  605 +// // 排序
  606 +// Collections.sort(lises, new Comparator() {
  607 +// public int compare(Object a, Object b) {
  608 +// if (((LisReportModel) a).getCheckTime() == null) {
  609 +// return -1;
  610 +// }
  611 +// if (((LisReportModel) b).getCheckTime() == null) {
  612 +// return -1;
  613 +// }
  614 +// if (((LisReportModel) a).getCheckTime().before(((LisReportModel) a).getCheckTime())) {
  615 +// return 1;
  616 +// }
  617 +// return -1;
  618 +// }
  619 +// });
619 620  
620 621 if (CollectionUtils.isNotEmpty(lises))
621 622 {