| | |
| | | |
| | | <select id="selectMallGoodsInPage" resultType="cc.mrbird.febs.dapp.entity.MallGoods"> |
| | | select |
| | | a.* |
| | | a.*, |
| | | b.name categoryName |
| | | from mall_goods a |
| | | left join mall_goods_category b on a.category_id = b.id |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.goodsName != null and record.goodsName != ''"> |
| | |
| | | order by a.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectMallGoodsByCategaryId" resultType="cc.mrbird.febs.dapp.entity.MallGoods"> |
| | | select * from mall_goods a where a.category_id = #{categaryId} |
| | | </select> |
| | | |
| | | </mapper> |