| | |
| | | <select id="selectById" resultMap="ShoppingGoodsMap"> |
| | | select |
| | | *, |
| | | (select TYPE_NAME from sys_goods_type b where b.id=goods_sort_id) goodsSortName, |
| | | -- (select TYPE_NAME from sys_goods_type b where b.id=a.goods_sort_id) goodsSortName, |
| | | (select NAME from shopping_goods_category t where |
| | | t.id=cate_id) |
| | | cate_name |
| | |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="selectByNameAndDesc" resultMap="ShoppingGoodsSimpleMap"> |
| | | select * from shopping_goods |
| | | where name=#{name} and wei_description=#{description} |
| | | </select> |
| | | </mapper> |