家庭成员增加户主排序

This commit is contained in:
monanxiao 2023-03-18 17:13:55 +08:00
parent d3e2d1bce6
commit 781fe13f0e

View File

@ -1680,6 +1680,7 @@ class Maintainentry extends BaseController
// 获取家庭的人员信息
$res = Db::table('fa_szxc_information_usermsg')->where($map)
->order('id desc')
->order('is_hz desc')
->field("id,user_id,name,age,gender,family_num,political_outlook,householder_id,is_hz,address_name,family_relation,phone")
->withAttr('avatar', function ($value, $data) {
return Db::table('fa_user')->where('id', $data['user_id'])->value('avatar');