消费统计订单管理
This commit is contained in:
@@ -216,6 +216,7 @@ class ProductOrder extends Model
|
|||||||
return $this->field('UpdateTime,OrderNo,OrderType,ProductName,PackageName,PaymentAmount,Accounts,ConnectCount,AccountCount,PayType,DayPrice as OrderAmount')
|
return $this->field('UpdateTime,OrderNo,OrderType,ProductName,PackageName,PaymentAmount,Accounts,ConnectCount,AccountCount,PayType,DayPrice as OrderAmount')
|
||||||
->where(['UserId' => $user_id])
|
->where(['UserId' => $user_id])
|
||||||
->where($where)
|
->where($where)
|
||||||
|
->where(['OrderState' => ['in', ProductOrderEnum::$PayComplete]])
|
||||||
->order('Id desc')
|
->order('Id desc')
|
||||||
->fetchAll();
|
->fetchAll();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user