| | |
| | | </resultMap> |
| | | <select id="listPage" resultType="com.ruoyi.basic.vo.CustomerVo"> |
| | | select |
| | | c.*, |
| | | c.id, |
| | | c.customer_name, |
| | | c.customer_type, |
| | | c.taxpayer_identification_number, |
| | | c.company_address, |
| | | c.company_phone, |
| | | ( |
| | | select group_concat(cc.contact_person separator ',') |
| | | from customer_contact cc |
| | | where find_in_set(c.id, cc.customer_id) |
| | | ) as contact_person, |
| | | ( |
| | | select group_concat(cc.contact_phone separator ',') |
| | | from customer_contact cc |
| | | where find_in_set(c.id, cc.customer_id) |
| | | ) as contact_phone, |
| | | c.maintainer, |
| | | c.maintenance_time, |
| | | c.tenant_id, |
| | | c.type, |
| | | c.is_assigned, |
| | | c.usage_user, |
| | | c.basic_bank_account, |
| | | c.bank_account, |
| | | u.user_name usage_user_name, |
| | | ( |
| | | select group_concat(u2.user_name separator ', ') |
| | |
| | | <select id="list" resultType="com.ruoyi.basic.vo.CustomerVo"> |
| | | select |
| | | c.*, |
| | | ( |
| | | select group_concat(cc.contact_person separator ',') |
| | | from customer_contact cc |
| | | where find_in_set(c.id, cc.customer_id) |
| | | ) as contact_person, |
| | | ( |
| | | select group_concat(cc.contact_phone separator ',') |
| | | from customer_contact cc |
| | | where find_in_set(c.id, cc.customer_id) |
| | | ) as contact_phone, |
| | | u.user_name usage_user_name, |
| | | ( |
| | | select group_concat(u2.user_name separator ', ') |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |
| | | </mapper> |