更新查询条件
This commit is contained in:
parent
fbbc6a5d7f
commit
36d7aeecce
@ -1767,7 +1767,7 @@ class StoreOrderRepository extends BaseRepository
|
||||
$query = $this->dao->search($where)->where($this->getOrderType($status))->whereRaw("(StoreOrder.paid=0 and StoreOrder.pay_type!=8) or (StoreOrder.paid=1 and StoreOrder.pay_type=8 and StoreOrder.status=2)")->where('StoreOrder.is_del', 0);
|
||||
} else {
|
||||
$arr=$this->getOrderType($status);
|
||||
$query = $this->dao->search($where)->where($arr);
|
||||
$query = $this->dao->search($where)->where($arr)->where('StoreOrder.is_del', 0);
|
||||
}
|
||||
|
||||
$count = $query->count();
|
||||
|
Loading…
x
Reference in New Issue
Block a user