This commit is contained in:
liu 2024-07-05 19:14:05 +08:00
commit 988adf0795

View File

@ -257,13 +257,13 @@ class UserLogic extends BaseLogic
switch ($params['type']){
case 1:
//采购款明细
$categories = ['user_balance_recharge', 'user_order_purchase_pay','system_purchase_add'];
$categories = ['user_balance_recharge', 'user_order_purchase_pay','system_purchase_add','user_balance_recharge_refund'];
$query = CapitalFlow::where('uid', $uid)
->whereIn('category', $categories);
if($params['mark'] == 1){
if(isset($params['mark'])&&$params['mark'] == 1){
$query->where('type','in');
}
if($params['mark'] == 2){
if(isset($params['mark'])&&$params['mark'] == 2){
$query->where('type','out');
}
$count = $query->count();