From c7b93d1b32fbd7258d8391738f48a2e98f7b489f Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Sun, 27 Sep 2020 15:38:53 +0800 Subject: [PATCH] 'commit' --- dsBaseRpc/Sql/t_base_teacher.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsBaseRpc/Sql/t_base_teacher.sql b/dsBaseRpc/Sql/t_base_teacher.sql index 3b61ae57..f3c85d43 100644 --- a/dsBaseRpc/Sql/t_base_teacher.sql +++ b/dsBaseRpc/Sql/t_base_teacher.sql @@ -30,6 +30,6 @@ case t1.`b_use` when -2 then 1 else 0 end AS `del_flag`, `t_base_organization`.`main_school_type` AS `main_school_type`, `t_base_organization`.`xxbxlxm` AS `xxbxlxm`, `t_base_organization`.`szdcxlxm` AS `szdcxlxm` -from (`t_base_teacher` as t1 inner join `t_base_teacher_org` as t2 on t1.person_id=t2.person_id and t2.b_use=1 and t2.is_main=1 join `t_base_organization` on (t2.`org_id` = `t_base_organization`.`org_id`)) +from (`t_base_teacher` as t1 inner join `t_base_teacher_org` as t2 on t1.person_id=t2.person_id and t1.b_use=1 and t2.b_use=1 and t2.is_main=1 join `t_base_organization` on (t2.`org_id` = `t_base_organization`.`org_id`)) where t1.identity_id in (1,2) ) as t1 \ No newline at end of file