Commit 643daee35a29fae2961f7707f0de874a8ec9eede
1 parent
10f77133d6
Exists in
master
and in
1 other branch
修改新电子病历
Showing 1 changed file with 13 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
643daee
... | ... | @@ -481,6 +481,19 @@ |
481 | 481 | } |
482 | 482 | list12.add(matDeliverExt); |
483 | 483 | } |
484 | + | |
485 | + Collections.sort(list12, new Comparator<MatDeliverListResult.MatDeliverExt>() { | |
486 | + @Override | |
487 | + public int compare(MatDeliverListResult.MatDeliverExt o1, MatDeliverListResult.MatDeliverExt o2) { | |
488 | + if (DateUtil.parseYMD(o1.getCheckTime()).after(DateUtil.parseYMD(o2.getCheckTime()))) { | |
489 | + return -1; | |
490 | + } | |
491 | + if (DateUtil.parseYMD(o1.getCheckTime()).before(DateUtil.parseYMD(o2.getCheckTime()))) { | |
492 | + return 1; | |
493 | + } | |
494 | + return 0; | |
495 | + } | |
496 | + }); | |
484 | 497 | matDeliverListResult.setData(list12); |
485 | 498 | } |
486 | 499 |