...
|
...
|
@@ -257,7 +257,7 @@ class HouseAdmin extends Api |
|
|
$where = ['hb.house_id'=>$house_id];
|
|
|
$total_num = HouseBoard::where($where)
|
|
|
->alias('hb')
|
|
|
->join('house_admin ha','ha.user_id = hb.admin_user_id')
|
|
|
->join('house_admin ha','ha.id = hb.admin_user_id')
|
|
|
->count();
|
|
|
$list = $this->getBoardList($where,$page,$pageNum);
|
|
|
$this->success('success',compact('total_num','list'));
|
...
|
...
|
@@ -420,7 +420,7 @@ class HouseAdmin extends Api |
|
|
Db::startTrans();
|
|
|
try{
|
|
|
(new HouseBoard)->allowField(true)->save(array_merge([
|
|
|
'admin_user_id' => $this->auth->id
|
|
|
'admin_user_id' => $admin['id']
|
|
|
],$post));
|
|
|
// 该社区下的业主ID
|
|
|
$user_id_arr = UserHouse::where('house_id',$post['house_id'])
|
...
|
...
|
|