记得上下班打卡 | git大法好,push需谨慎

Commit b0dc8a56 authored by 姜秀龙's avatar 姜秀龙

票种按照价格排序

parent 4e9b93bd
......@@ -366,6 +366,17 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
}
}
}
if (ticketListNew.size() > 1) {
ticketListNew.sort((t1, t2) -> {
if (t1 == null || t1.getPrice() == null) {
return (t2 == null || t2.getPrice() == null) ? 0 : 1;
}
if (t2 == null || t2.getPrice() == null) {
return -1;
}
return t1.getPrice().compareTo(t2.getPrice());
});
}
partner.setTicketList(ticketListNew);
if (ticketListNew.size() == 0) {
ticketTimesList.remove(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment