| | |
| | | <result property="originalPrice" column="original_price" /> |
| | | <result property="presentPrice" column="present_price" /> |
| | | <result property="categoryId" column="category_id" /> |
| | | <result property="volume" column="volume" /> |
| | | <result property="stock" column="stock" /> |
| | | <collection property="styles" ofType="cc.mrbird.febs.mall.entity.MallGoodsStyle"> |
| | | <id property="id" column="style_id" /> |
| | | <result property="name" column="style_name" /> |
| | |
| | | c.style_id sku_style_id, |
| | | c.goods_id sku_goods_id |
| | | from mall_goods a |
| | | inner join mall_goods_style b on a.id = b.goods_id |
| | | inner join mall_goods_sku c on b.id=c.style_id |
| | | left join mall_goods_style b on a.id = b.goods_id |
| | | left join mall_goods_sku c on b.id=c.style_id |
| | | where a.id=#{id} |
| | | </select> |
| | | |