xiaoyong931011
2023-08-16 cacf9bc8c94295ec3296a8cb49bda2b95087afb7
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>