|
@@ -471,9 +471,9 @@ class User extends BaseModel
|
|
|
|
|
|
|
|
// 构建查询(不设置 field,用默认查所有,减少解析开销)
|
|
// 构建查询(不设置 field,用默认查所有,减少解析开销)
|
|
|
$query = $this
|
|
$query = $this
|
|
|
- ->alias("u")
|
|
|
|
|
- ->leftJoin("info_audit a", "u.uid=a.uid and a.status = 1 and a.is_show = 1")
|
|
|
|
|
- ->leftJoin("user_show_template ut", "ut.uid = u.uid and ut.is_default = 1")
|
|
|
|
|
|
|
+// ->alias("u")
|
|
|
|
|
+// ->leftJoin("info_audit a", "u.uid=a.uid and a.status = 1 and a.is_show = 1")
|
|
|
|
|
+// ->leftJoin("user_show_template ut", "ut.uid = u.uid and ut.is_default = 1")
|
|
|
->where($where);
|
|
->where($where);
|
|
|
if ($serviceAreaWhere) {
|
|
if ($serviceAreaWhere) {
|
|
|
$query->where($serviceAreaWhere);
|
|
$query->where($serviceAreaWhere);
|