yingzi 2 年 前
コミット
3fe1c806ce
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/system/controller/Member.php

+ 2 - 2
app/system/controller/Member.php

@@ -71,14 +71,14 @@ class Member extends BaseController
         $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"
                         . ",p.nickname as p_nickname,p.mobile as p_mobile"
-                        . ",wt.title as user_work_type_title"
+                        . ",wt.title as work_type_title"
                         . ",(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_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")
                 ->alias("u")
                 ->leftJoin("user p","p.uid = u.parent_uid")
-                ->leftJoin("user_work_type wt", "wt.id  = u.user_work_type_id")//职称
+                ->leftJoin("user_work_type wt", "wt.id  = u.work_type_id")//职称
                 ->where($where)
                 ->page((int)$post["page"], (int)$pageSize)
                 ->order("u.uid","desc")