Commit e8784548 authored by 蔡闯's avatar 蔡闯

2021-2-19

parent 0b853c2b
......@@ -255,9 +255,11 @@ class Index extends Base
->leftJoin('house_village hvi','hvi.village_id = hub.village_id')
->field('hvi.village_id,hvi.village_name,hv.vacancy_code,hv.layout_id,hub.pass_time,hub.type,hub.status,hub.vacancy_id,hvi.village_logo,hv.name,hv.phone,hub.house_user_bind_id')
->find();
$res = Common::getVacancyAddress($data['vacancy_code'],$data['layout_id']);
$data['vacancy_address'] = $res['vacancy_address'];
//获取用户车辆信息
$cars = Db::name('car')->where(['uid'=>$this->uid,'village_id'=>$data['village_id']])->select()->toArray();
$data['car'] = $cars;
if($data['type'] ==0 ){
......@@ -302,6 +304,7 @@ class Index extends Base
public function getUser($where){
$user = Db::name('house_user_bind')->alias('hub')->leftJoin('user','user.uid = hub.uid')
->where($where)
->where('hub.uid','<>',$this->uid)
->whereNotIn('hub.status',[0,3])
->where('hub.uid','<>',null)
->field('hub.house_user_bind_id,hub.name,hub.phone,user.avatar,user.uid,hub.village_id,hub.status,hub.type')->select()->toArray();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment