|
|
@@ -402,7 +402,7 @@ class UserBrokerageServices extends BaseServices
|
|
|
* @throws \think\db\exception\DbException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
*/
|
|
|
- public function getBrokerageList($uid, $type)
|
|
|
+ public function getBrokerageList($uid, $type,$pm)
|
|
|
{
|
|
|
$where = [];
|
|
|
$where['uid'] = $uid;
|
|
|
@@ -410,6 +410,9 @@ class UserBrokerageServices extends BaseServices
|
|
|
if ($type == 4) {
|
|
|
$where['type'] = ['extract', 'extract_money', 'extract_fail'];
|
|
|
}
|
|
|
+ if ($pm !== '' && $pm !== null) {
|
|
|
+ $where['pm'] = $pm;
|
|
|
+ }
|
|
|
/** @var UserExtractServices $userExtractService */
|
|
|
$userExtractService = app()->make(UserExtractServices::class);
|
|
|
$userExtract = $userExtractService->getColumn(['uid' => $uid], 'fail_msg,extract_type,state,wechat_order_id', 'id');
|
|
|
@@ -439,21 +442,21 @@ class UserBrokerageServices extends BaseServices
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 生成月份列表
|
|
|
+// 生成月份列表
|
|
|
$times = array_merge(array_unique(array_column($list, 'time_key')));
|
|
|
|
|
|
- // type=3时按月份分组
|
|
|
- if ($type == 3) {
|
|
|
- $groupedList = [];
|
|
|
- foreach ($list as $item) {
|
|
|
- $month = $item['time_key'];
|
|
|
- if (!isset($groupedList[$month])) {
|
|
|
- $groupedList[$month] = [];
|
|
|
- }
|
|
|
- $groupedList[$month][] = $item;
|
|
|
- }
|
|
|
- $list = $groupedList;
|
|
|
- }
|
|
|
+// // type=3时按月份分组
|
|
|
+// if ($type == 3) {
|
|
|
+// $groupedList = [];
|
|
|
+// foreach ($list as $item) {
|
|
|
+// $month = $item['time_key'];
|
|
|
+// if (!isset($groupedList[$month])) {
|
|
|
+// $groupedList[$month] = [];
|
|
|
+// }
|
|
|
+// $groupedList[$month][] = $item;
|
|
|
+// }
|
|
|
+// $list = $groupedList;
|
|
|
+// }
|
|
|
}
|
|
|
return ['list' => $list, 'time' => $times, 'count' => $count];
|
|
|
}
|