|
|
@@ -9,6 +9,7 @@ use library\basic\BaseModel;
|
|
|
use think\db\exception\DbException;
|
|
|
use app\model\api\ShowTemplate;
|
|
|
use app\model\api\InfoAudit;
|
|
|
+use think\facade\Log;
|
|
|
use think\Model;
|
|
|
use think\facade\Db;
|
|
|
use think\Request;
|
|
|
@@ -356,12 +357,16 @@ class User extends BaseModel
|
|
|
$totalCount = $totalModel->count();
|
|
|
$data = null;
|
|
|
if ($totalCount > 0) {
|
|
|
+ Log::info('搜索条件:' . json_encode($where, JSON_UNESCAPED_UNICODE));
|
|
|
+
|
|
|
$dataModel = $this
|
|
|
->alias("u")
|
|
|
->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));
|
|
|
+
|
|
|
if (!empty($post["service_area"]) && is_array($post["service_area"])) {
|
|
|
$dataModel->where(function ($query) use ($post, $cityModel) {
|
|
|
foreach ($post["service_area"] as $v) {
|