|
@@ -346,7 +346,6 @@ class User extends BaseModel
|
|
|
. ",(select is_show from table_info_audit where uid = u.uid and status = 1 ) as is_show"
|
|
|
. ",p.nickname as p_nickname,p.mobile as p_mobile"
|
|
|
. ",wt.title as work_type_title"
|
|
|
- .",(select * from table_info_audit where is_show = 1)"
|
|
|
. ",(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"
|
|
@@ -380,7 +379,13 @@ class User extends BaseModel
|
|
|
$data[$k]["parent_time"] = date("Y-m-d H:i:s",$v["parent_time"]);
|
|
|
}
|
|
|
}
|
|
|
- return ["list" => $data, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
+ $datatwo = [];
|
|
|
+ foreach($data as $v){
|
|
|
+ if($v['is_show'] == 1){
|
|
|
+ $datatwo[] = $v;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return ["list" => $datatwo, "pageSize" => $post["pageSize"],"page"=>$post["page"],"totalCount"=>$totalCount];
|
|
|
}
|
|
|
|
|
|
/**
|