Merge branch 'main' into wxl

pull/1/head
674780036@qq.com 9 months ago
commit c6eb85e852
  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()) { if(!UserService::isStore()) {
$filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ]; $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 = []; $filterOr = [];
if (!empty($param['searchValue']) && $param['searchType'] == 'all') { if (!empty($param['searchValue']) && $param['searchType'] == 'all') {
// $filterOr = [ // $filterOr = [

@ -77,6 +77,13 @@ class OrderRefund extends OrderRefundModel
if(!UserService::isStore()) { if(!UserService::isStore()) {
$filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ]; $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 = []; $filterOr = [];
if (!empty($param['searchValue']) && $param['searchType'] == 'all') { if (!empty($param['searchValue']) && $param['searchType'] == 'all') {
// $filterOr = [ // $filterOr = [

Loading…
Cancel
Save