# yzj邀请昨日数据 SELECT s.id, s.create_at, ch.id, ch.code AS channel, c.id , c.code AS custom, so.id, so.code AS source FROM invite_ship s LEFT JOIN invite_channel ch ON ch.id = s.invite_channel_id LEFT JOIN invite_code_custom c ON c.id = s.code_custom_id