|
|
@@ -364,8 +364,7 @@ class User extends BaseModel
|
|
|
->field("u.uid,ut.show_template_id,a.ancestral_place,a.status as is_type_audit")
|
|
|
->leftJoin("info_audit a", "u.uid=a.uid")
|
|
|
->leftJoin("user_show_template ut", "ut.uid = u.uid and ut.is_default = 1")//默认模板
|
|
|
- ->where($where);
|
|
|
- Log::info('搜索条件:' . json_encode($this->getLastSql(), JSON_UNESCAPED_UNICODE));
|
|
|
+ ->where($where)->where('ut.show_template_id',7);
|
|
|
|
|
|
if (!empty($post["service_area"]) && is_array($post["service_area"])) {
|
|
|
$dataModel->where(function ($query) use ($post, $cityModel) {
|
|
|
@@ -383,6 +382,8 @@ class User extends BaseModel
|
|
|
->order("u.uid", "desc")
|
|
|
->page($post["page"], $post["pageSize"])
|
|
|
->select();
|
|
|
+ Log::info('搜索语句:' . json_encode($this->getLastSql(), JSON_UNESCAPED_UNICODE));
|
|
|
+
|
|
|
if (!empty($data)) {
|
|
|
$data = $data->toArray();
|
|
|
}
|