消费统计排序

This commit is contained in:
wanyongkang
2020-11-28 16:21:26 +08:00
parent cbeed2a5ce
commit 56c5404288

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-10-13 19:52:37
* @LastEditors: Please set LastEditors
* @LastEditTime: 2020-11-26 16:56:26
* @LastEditTime: 2020-11-28 16:20:54
*/
namespace app\manager\controller;
@@ -209,7 +209,9 @@ class UserFollow extends Controller
}
foreach ($account_expire as $info) {
$list[$info['UserId']]['account_expire'] = $info['used_count'];
$list[$info['UserId']]['account_count'] = $info['used_count'] + $list[$info['UserId']]['account_used'];
}
foreach ($user_id_list as $user_account_id){
$list[$user_account_id]['account_count'] = $list[$user_account_id]['account_used'] + $list[$user_account_id]['account_expire'];
}
if (!empty($search['sortLable'])) {