Commit f1e04ce6774114c0a631576a934ba5eed1a95be7

Authored by liquanyu
1 parent 832ba3e358

update

Showing 1 changed file with 2 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AmniocentesisFacade.java View file @ f1e04ce
... ... @@ -319,12 +319,12 @@
319 319 @Override
320 320 public int compare(Map<String,Object> o1, Map<String,Object> o2) {
321 321 String weight1 = o1.get("weight").toString();
322   - String weight2 = o1.get("weight").toString();
  322 + String weight2 = o2.get("weight").toString();
323 323 if (StringUtils.isNotEmpty(weight1) && StringUtils.isNotEmpty(weight2))
324 324 {
325 325 Double d1 = Double.parseDouble(weight1);
326 326 Double d2 = Double.parseDouble(weight2);
327   - return (int)(d1 - d2);
  327 + return (int)(d2 - d1);
328 328 }
329 329 return 0;
330 330 }