lip 1 неделя назад
Родитель
Сommit
4664c3fe2e
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app/Services/BalanceLogService.php

+ 4 - 0
app/Services/BalanceLogService.php

@@ -74,6 +74,10 @@ class BalanceLogService extends BaseService
             $where[] = ['member_id', '=', $search['member_id']];
         }
 
+        if (isset($search['type']) && !empty($search['type'])) {
+            $where[] = ['type', '=', $search['type']];
+        }
+        
         if (isset($search['change_type']) && !empty($search['change_type'])) {
             $where[] = ['change_type', '=', $search['change_type']];
         }