| | |
| | | <id property="id" column="c_id" /> |
| | | <result property="name" column="c_name" /> |
| | | <result property="icon" column="c_icon" /> |
| | | |
| | | <collection property="details" ofType="cc.mrbird.febs.vip.entity.MallVipBenefitsDetails"> |
| | | <id property="id" column="d_id" /> |
| | | </collection> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | |
| | | ,benefits.id c_id |
| | | ,benefits.name c_name |
| | | ,benefits.icon c_icon |
| | | ,details.id d_id |
| | | from mall_vip_config config |
| | | inner join mall_vip_config_benefits configBenefits on config.id=configBenefits.config_id |
| | | inner join mall_vip_benefits benefits on configBenefits.benefits_id=benefits.id |
| | | left join mall_vip_benefits_details details on benefits.id = details.benefits_id |
| | | order by level |
| | | </select> |
| | | |