mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
退款页面总数优化
This commit is contained in:
parent
049ceb4fbc
commit
b201d34ee3
@ -95,9 +95,27 @@ class StoreOrderRefundDao extends BaseDao
|
||||
})->order('id DESC')->select()->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* 退款订单数量
|
||||
* @param array $where
|
||||
* @param bool $search
|
||||
* @return int
|
||||
* @throws \ReflectionException
|
||||
* @author 吴汐
|
||||
* @email 442384644@qq.com
|
||||
* @date 2023/06/19
|
||||
*/
|
||||
public function count(array $where = [], bool $search = false)
|
||||
{
|
||||
return $this->search($where, $search)->count();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据时间获取
|
||||
* @param array $where
|
||||
* @param string $sum_field
|
||||
* @param string $selectType
|
||||
* @param string $group
|
||||
* @return float|int
|
||||
*/
|
||||
public function getOrderRefundMoneyByWhere(array $where, string $sum_field, string $selectType, string $group = "")
|
||||
|
||||
@ -35,6 +35,7 @@ use crmeb\services\CacheService;
|
||||
use crmeb\services\FormBuilder as Form;
|
||||
use crmeb\services\pay\Pay;
|
||||
use crmeb\services\workerman\ChannelService;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
@ -600,7 +601,7 @@ class StoreOrderRefundServices extends BaseServices
|
||||
$userInfo = $userServices->get($order['uid']);
|
||||
$order['nickname'] = $userInfo['nickname'];
|
||||
$order['phone'] = $userInfo['phone'];
|
||||
if (in_array($orderInfo['pay_type'], ['weixin', 'alipay', 'allinpay', 'offline'])) {
|
||||
if (in_array($order['pay_type'], ['weixin', 'alipay', 'allinpay', 'offline'])) {
|
||||
$capitalFlowServices->setFlow($order, 'refund');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user