普通会员和plus会员添加查询条件

pull/1/head
ztt 11 months ago
parent 4ca768f2e0
commit cf1e787717
  1. 7
      app/store/model/Order.php
  2. 7
      app/store/model/OrderRefund.php

@ -105,6 +105,13 @@ class Order extends OrderModel
if(!UserService::isStore()) {
$filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ];
}
//普通会员和plus会员查询条件
if (!empty($param['user_id'])) {
$filter[] = ['user.user_id' ,'=', $param['user_id']];
}
if (!empty($param['delivery_type'])) {
$filter[] = ['order.delivery_type', '=', $param['delivery_type']];
}
$filterOr = [];
if (!empty($param['searchValue']) && $param['searchType'] == 'all') {
// $filterOr = [

@ -77,6 +77,13 @@ class OrderRefund extends OrderRefundModel
if(!UserService::isStore()) {
$filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ];
}
//普通会员和plus会员查询条件
if (!empty($param['user_id'])) {
$filter[] = ['user.user_id' ,'=', $param['user_id']];
}
if (!empty($param['delivery_type'])) {
$filter[] = ['order.delivery_type', '=', $param['delivery_type']];
}
$filterOr = [];
if (!empty($param['searchValue']) && $param['searchType'] == 'all') {
// $filterOr = [

Loading…
Cancel
Save