feat(UserLists.php): 更新用户列表功能
This commit is contained in:
parent
1ee0e2b7c2
commit
f81989efc2
@ -11,6 +11,7 @@ use app\common\model\user\User;
|
||||
use app\common\model\user_ship\UserShip;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\user\UserAddress;
|
||||
use app\common\model\user_sign_log\UserSignLog;
|
||||
use app\common\model\vip_flow\VipFlow;
|
||||
|
||||
class UserLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
@ -62,8 +63,8 @@ class UserLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
where(['user_id'=>$data['id'],'status'=>0])
|
||||
->sum('number')??0;
|
||||
$data['amount_frozen'] = UserSign::where('uid',$data['id'])->where('status',0)->sum('number');
|
||||
$number1 = UserSign::where('uid',$data['id'])->where('status',1)->where('type','<>',3)->sum('number');
|
||||
$number2 = UserSign::where('uid',$data['id'])->where('status',1)->where('type',3)->sum('number');
|
||||
$number1 = UserSign::where('uid',$data['id'])->where('status',1)->sum('number');
|
||||
$number2 = UserSignLog::where('uid',$data['id'])->where(['status'=>1,'order_type'=>0])->sum('number');
|
||||
if($number1<$number2){
|
||||
$data['get_frozen']=0;
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user