| | |
| | | <select id="listPage" resultType="com.ruoyi.basic.vo.CustomerVo"> |
| | | select |
| | | c.*, |
| | | u.user_name usage_user_name, |
| | | ifnull(u.nick_name, u.user_name) usage_user_name, |
| | | ( |
| | | select group_concat(u2.user_name separator ', ') |
| | | select group_concat(ifnull(u2.nick_name, u2.user_name) separator ', ') |
| | | from customer_user cu |
| | | left join sys_user u2 on cu.user_id = u2.user_id |
| | | where cu.customer_id = c.id |
| | |
| | | <select id="list" resultType="com.ruoyi.basic.vo.CustomerVo"> |
| | | select |
| | | c.*, |
| | | u.user_name usage_user_name, |
| | | ifnull(u.nick_name, u.user_name) usage_user_name, |
| | | ( |
| | | select group_concat(u2.user_name separator ', ') |
| | | select group_concat(ifnull(u2.nick_name, u2.user_name) separator ', ') |
| | | from customer_user cu |
| | | left join sys_user u2 on cu.user_id = u2.user_id |
| | | where cu.customer_id = c.id |