...
|
...
|
@@ -243,7 +243,7 @@ public class StorageService { |
|
|
* 排序 : 尺码小 价格低 创建时间前 的排序越靠前
|
|
|
*/
|
|
|
Collections.sort(result.getList(), (o1, o2) -> {
|
|
|
Double compareSize = Double.parseDouble(o1.getSizeName() == null ? "0" : o1.getSizeName()) - Double.parseDouble(o2.getSizeName() == null ? "0" : o2.getSizeName());
|
|
|
int compareSize = (o1.getSizeName() == null || o2.getSizeName() == null) ? 0 : (o1.getSizeName().compareTo(o2.getSizeName()));
|
|
|
if (compareSize < 0)
|
|
|
return -1;
|
|
|
else if (compareSize > 0)
|
...
|
...
|
|