mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
修复拼团详情展示拼团退款订单问题
This commit is contained in:
parent
20102bcbee
commit
53a5b64edd
@ -151,8 +151,23 @@ class StorePinkServices extends BaseServices
|
||||
$where['cid'] = $id;
|
||||
$where['k_id'] = 0;
|
||||
$where['is_refund'] = 0;
|
||||
$list = $this->dao->pinkList($where);
|
||||
$ids = array_column($list, 'id');
|
||||
$pinkList = $this->dao->pinkList($where);
|
||||
$ids = array_column($pinkList, 'id');
|
||||
$orderIdKey = array_column($pinkList, 'order_id_key');
|
||||
$refunList = [];
|
||||
if ($orderIdKey) {
|
||||
$refunList = app()->make(StoreOrderRefundServices::class)->getColumn([['store_order_id', 'in', $orderIdKey]], 'id', 'store_order_id');
|
||||
}
|
||||
if ($refunList) {
|
||||
$list = [];
|
||||
foreach ($pinkList as $item) {
|
||||
if (!isset($refunList[$item['order_id_key']])) {
|
||||
$list[] = $item;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$list = $pinkList;
|
||||
}
|
||||
$counts = $this->dao->getPinkPeopleCount($ids);
|
||||
if ($type) {
|
||||
$pinkAll = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user