xiaoyong931011
2022-09-01 fddf121cd7b9b488d7fd529bd3e64461d65b9f20
src/main/resources/mapper/modules/MallRefundMapper.xml
@@ -4,7 +4,11 @@
    <select id="selectByItemIdAndOrderIdAndState" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
        select a.* from mall_refund a
        select a.*,
        c.cnt
        from mall_refund a
        inner join mall_order_info b on a.order_id = b.id
        inner join mall_order_item c on a.item_id = c.id
        <where>
            <if test="itemId != null and itemId != ''">
                and a.item_id = #{itemId}
@@ -24,7 +28,7 @@
               b.order_no orderNo,
               b.status,
               c.goods_name goodsName,
               c.cnt,
               c.cnt
        from mall_refund a
        inner join mall_order_info b on a.order_id = b.id
        inner join mall_order_item c on a.item_id = c.id