|
@@ -339,11 +339,11 @@ class User extends BaseModel
|
|
if(!empty($post["parent_uid"])){
|
|
if(!empty($post["parent_uid"])){
|
|
$where[]=["u.parent_uid","=",$post["parent_uid"]];
|
|
$where[]=["u.parent_uid","=",$post["parent_uid"]];
|
|
}
|
|
}
|
|
|
|
+ // . ",(select count(*) from table_info_audit where uid = u.uid ) as is_show"
|
|
if($is_admin==1){
|
|
if($is_admin==1){
|
|
$field = "u.*"
|
|
$field = "u.*"
|
|
. ",ut.show_template_id"
|
|
. ",ut.show_template_id"
|
|
-// . ",(select count(*) from table_info_audit where uid = u.uid ) as is_show"
|
|
|
|
- .",(select is_show form table_info_audit where uid = u.uid ) as is_show"
|
|
|
|
|
|
+ .",(select is_show form table_info_audit where uid = u.uid and status = 1 ) as is_show"
|
|
. ",p.nickname as p_nickname,p.mobile as p_mobile"
|
|
. ",p.nickname as p_nickname,p.mobile as p_mobile"
|
|
. ",wt.title as 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_user_show_template where uid = u.uid) as showTempCount"
|