fix(crm-order): 修复订单查询排序逻辑
``` 重新调整订单查询的排序顺序,将创建时间降序排列移到订单类型升序排列之后, 确保预订单(0)在正式订单(1)之前显示,同时按创建时间倒序排列。 ```
This commit is contained in:
@@ -96,9 +96,9 @@ public class CrmOrderServiceImpl implements ICrmOrderService {
|
||||
qw.eq(bo.getUnpaidAmount() != null, "co.unpaid_amount", bo.getUnpaidAmount());
|
||||
//逻辑删除
|
||||
qw.eq("co.del_flag", 0);
|
||||
qw.orderByDesc("co.create_time");
|
||||
//根据orderType排序预订单是0 正是订单是1 0排在前面 1排在后面 升序
|
||||
qw.orderByAsc("co.order_type");
|
||||
qw.orderByDesc("co.create_time");
|
||||
return qw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user