pull/1/head
lqmac 9 months ago
parent 9796022bcc
commit 18c8a8666b
  1. 6
      app/store/model/Order.php
  2. 8
      app/store/model/OrderRefund.php

@ -63,9 +63,9 @@ class Order extends OrderModel
// 检索查询条件
$filter = $this->getQueryFilter($param);
//不是店长查询当前用户订单
if(!UserService::isStore()) {
$filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ];
}
// if(!UserService::isStore()) {
// $filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ];
// }
$filterOr = [];
if (!empty($param['searchValue']) && $param['searchType'] == 'all') {
// $filterOr = [

@ -38,10 +38,10 @@ class OrderRefund extends OrderRefundModel
// 检索查询条件
$filter = $this->getFilter($param);
//不是店长查询当前用户订单
if(!UserService::isStore()) {
$filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ];
}
$filterOr = [];
// if(!UserService::isStore()) {
// $filter[] = ['user.user_id' ,'=', UserService::getCurrentLoginUserId() ];
// }
$filterOr = [];Ne
if (!empty($param['searchValue']) && $param['searchType'] == 'all') {
// $filterOr = [
// ['order.order_no', 'like', "%{$param['searchValue']}%"],

Loading…
Cancel
Save