Commit 172b4e7521743d6b26492640186ba4d1498cd7f1
1 parent
8a3155fa68
Exists in
master
and in
1 other branch
update code
Showing 1 changed file with 3 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java
View file @
172b4e7
| ... | ... | @@ -300,10 +300,9 @@ |
| 300 | 300 | com.lyms.platform.common.utils.StringUtils.isNum(orderB)) |
| 301 | 301 | { |
| 302 | 302 | int sortNum1 = Integer.parseInt(orderA); |
| 303 | - int sortNum2 = Integer.parseInt(orderA); | |
| 304 | - if (sortNum1 > sortNum2) { | |
| 305 | - return 1; | |
| 306 | - } | |
| 303 | + int sortNum2 = Integer.parseInt(orderB); | |
| 304 | + return sortNum1 - sortNum2; | |
| 305 | + | |
| 307 | 306 | } |
| 308 | 307 | |
| 309 | 308 | return -1; |