|
@@ -71,12 +71,14 @@ class Member extends BaseController
|
|
|
$data = (new UserModel)
|
|
$data = (new UserModel)
|
|
|
->field("u.uid,u.nickname,u.name,u.regtime,u.score,u.money,u.status,u.avatar,u.mobile,u.parent_uid"
|
|
->field("u.uid,u.nickname,u.name,u.regtime,u.score,u.money,u.status,u.avatar,u.mobile,u.parent_uid"
|
|
|
. ",p.nickname as p_nickname,p.mobile as p_mobile"
|
|
. ",p.nickname as p_nickname,p.mobile as p_mobile"
|
|
|
|
|
+ . ",wt.title as user_work_type_title"
|
|
|
. ",(select count(*) from table_user_show_template where uid = u.uid) as showTempCount"
|
|
. ",(select count(*) from table_user_show_template where uid = u.uid) as showTempCount"
|
|
|
. ",(select count(*) from table_info_audit where uid = u.uid and status = 1) as is_info_audit"
|
|
. ",(select count(*) from table_info_audit where uid = u.uid and status = 1) as is_info_audit"
|
|
|
. ",(select count(*) from table_type_audit where uid = u.uid and status = 1) as is_type_audit"
|
|
. ",(select count(*) from table_type_audit where uid = u.uid and status = 1) as is_type_audit"
|
|
|
. ",(select count(*) from table_user where parent_uid = u.uid) as branchCount")
|
|
. ",(select count(*) from table_user where parent_uid = u.uid) as branchCount")
|
|
|
->alias("u")
|
|
->alias("u")
|
|
|
->leftJoin("user p","p.uid = u.parent_uid")
|
|
->leftJoin("user p","p.uid = u.parent_uid")
|
|
|
|
|
+ ->leftJoin("user_work_type wt", "wt.id = u.user_work_type_id")//职称
|
|
|
->where($where)
|
|
->where($where)
|
|
|
->page((int)$post["page"], (int)$pageSize)
|
|
->page((int)$post["page"], (int)$pageSize)
|
|
|
->order("u.uid","desc")
|
|
->order("u.uid","desc")
|