feat(订单查询): 添加退货状态查询条件
在订单查询条件中增加退货状态字段,根据不同的退货状态值查询对应的支付状态和商品状态
This commit is contained in:
parent
76647e5b95
commit
b1328b35ec
|
@ -26,11 +26,21 @@ public class SearchShopOrderQuery<T> extends AbstractPageQuery<T> {
|
|||
private Date payTime;
|
||||
private String paymentMethod;
|
||||
private String corpid;
|
||||
private Integer returnStatus;
|
||||
|
||||
@Override
|
||||
public QueryWrapper<T> addQueryCondition() {
|
||||
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||
|
||||
if (returnStatus != null) {
|
||||
if (returnStatus.equals(1)) {
|
||||
queryWrapper.eq("o.pay_status", 2)
|
||||
.eq("og.status", 2);
|
||||
} else {
|
||||
queryWrapper.eq("o.pay_status", 2)
|
||||
.eq("og.status", 1);
|
||||
}
|
||||
}
|
||||
queryWrapper
|
||||
.eq(orderId != null, "o.order_id", orderId)
|
||||
.eq(cellId != null, "og.cell_id", cellId)
|
||||
|
|
Loading…
Reference in New Issue