xiaoyong931011
2023-08-17 4e286fb91d3bd9ee2a00e172d0b9bf59e6bc457e
src/main/resources/mapper/dapp/MallGoodsMapper.xml
@@ -4,8 +4,10 @@
    <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 != ''">
@@ -85,4 +87,9 @@
        select * from mall_goods a where a.category_id = #{categaryId}
    </select>
    <select id="getMallOrderInfoById" resultType="cc.mrbird.febs.dapp.vo.AdminMallOrderVo">
        select b.* from mall_address_info b
        where b.id = (select a.address_id from mall_order_info a where a.id = #{id})
    </select>
</mapper>