Commit 356ae6d4b60b44f7efcda4512e071dbcb1f0b6f4

Authored by baohanddd
1 parent 19d15f344f

add lis pacs check query

Showing 1 changed file with 5 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/v1/HisService.java View file @ 356ae6d
... ... @@ -41,15 +41,15 @@
41 41 Collections.sort(list, new Comparator() {
42 42 public int compare(Object a, Object b) {
43 43 if (((CheckResponse)a).getModified() == null) {
44   - return 1;
  44 + return -1;
45 45 }
46 46 if (((CheckResponse)b).getModified() == null) {
47   - return 1;
  47 + return -1;
48 48 }
49 49 if (((CheckResponse)a).getModified().before(((CheckResponse)a).getModified())) {
50   - return 0;
  50 + return 1;
51 51 }
52   - return 1;
  52 + return -1;
53 53 }
54 54 });
55 55 for (CheckResponse check:list) {
... ... @@ -117,7 +117,7 @@
117 117 check.setDoctor(info.getP_APPLATIONDOCNAME());
118 118 if ("1".equals(info.getP_SEX())) {
119 119 check.setSex("男");
120   - } else if ("0".equals(info.getP_SEX())) {
  120 + } else if ("2".equals(info.getP_SEX())) {
121 121 check.setSex("女");
122 122 }
123 123 List<CheckItemResponse> itemList = new ArrayList<>();