feat: 新增用户船只信息查询功能
This commit is contained in:
parent
f9ae43777f
commit
21e888afe4
@ -8,6 +8,7 @@ use app\common\model\system_store\SystemStore;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\user\User;
|
||||
use app\common\model\user_create_log\UserCreateLog;
|
||||
use app\common\model\user_ship\UserShip;
|
||||
|
||||
/**
|
||||
* 用户前端添加记录列表
|
||||
@ -48,8 +49,16 @@ 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']='';
|
||||
$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['nickname'] = User::where('id',$item['uid'])->value('real_name');
|
||||
}
|
||||
$item['system_store_name'] = SystemStore::where('id',$item['store_id'])->value('name');
|
||||
$item['nickname'] = User::where('id',$item['uid'])->value('real_name');
|
||||
$item['create_nickname'] = User::where('id',$item['create_uid'])->value('real_name');
|
||||
})
|
||||
->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user