| | |
| | | select |
| | | t1.realname as realName, |
| | | t1.id, |
| | | t1.user_code as userCode, |
| | | t3.name as teamName, |
| | | t3.id as teamId |
| | | t1.username as userCode |
| | | -- t3.name as teamName, |
| | | -- t3.id as teamId |
| | | FROM sys_user t1 |
| | | LEFT JOIN mom_base_team_class t2 on t2.id =t1.team_class_id |
| | | LEFT JOIN mom_base_team t3 on t3.id =t2.team_id |
| | | -- LEFT JOIN mom_base_team_class t2 on t2.id =t1.team_class_id |
| | | -- LEFT JOIN mom_base_team t3 on t3.id =t2.team_id |
| | | where t1.realname IS NOT NULL |
| | | <if test="realname != null and realname != ''"> |
| | | and t1.realname like concat('%',#{realname},'%') |