更新
This commit is contained in:
parent
6cc0b93c67
commit
765f78cfaf
@ -581,11 +581,13 @@ class Project extends BasicApi
|
|||||||
}
|
}
|
||||||
$data=[];
|
$data=[];
|
||||||
foreach($select as $k=>$v){
|
foreach($select as $k=>$v){
|
||||||
|
$find=Db::name('positioning')->where(['member_code'=>$v['member_code']])->order('date desc')->field('positioning,date')->find();
|
||||||
$data[]=[
|
$data[]=[
|
||||||
'name'=>$v['name'],
|
'name'=>$v['name'],
|
||||||
'avatar'=>$v['avatar'],
|
'avatar'=>$v['avatar'],
|
||||||
'member_code'=>$v['member_code'],
|
'member_code'=>$v['member_code'],
|
||||||
'positioning'=>Db::name('positioning')->where(['member_code'=>$v['member_code']])->order('date desc')->value('positioning'),
|
'positioning'=>$find['positioning']??'',
|
||||||
|
'date'=>$find['date']??'',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
$this->success('',$data);
|
$this->success('',$data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user