feat(UserCreateLogLists.php): 修改用户创建日志列表查询

This commit is contained in:
mkm 2024-07-01 15:56:23 +08:00
parent a1c3de68db
commit a8d4e200c4

View File

@ -49,13 +49,13 @@ class UserCreateLogLists extends BaseAdminDataLists implements ListsSearchInterf
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
->select()->each(function ($item){
$data['ship_name']='';
$data['mobile']='';
$data['nickname']='';
$item['ship_name']='';
$item['mobile']='';
$item['nickname']='';
$find =User::where('id',$item['uid'])->find();
if($find &&$find['user_ship']>0){
$data['ship_name']=UserShip::where('id',$find['user_ship'])->value('title');
$data['mobile']=$find['mobile'];
$item['ship_name']=UserShip::where('id',$find['user_ship'])->value('title');
$item['mobile']=$find['mobile'];
$item['nickname'] = User::where('id',$item['uid'])->value('real_name');
}
$item['system_store_name'] = SystemStore::where('id',$item['store_id'])->value('name');