xiaoyong931011
2022-08-29 832c911439b27f96596aff9d0e67ddc1e0ce2cf3
src/main/resources/mapper/modules/MallRefundMapper.xml
@@ -5,7 +5,6 @@
    <select id="selectByItemIdAndOrderIdAndState" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
        select a.* from mall_refund a
            where item_id=#{itemId} and order_id=#{orderId} and state=#{state}
        <where>
            <if test="itemId != null and itemId != ''">
                and a.item_id = #{itemId}
@@ -20,5 +19,17 @@
    </select>
    <select id="getOrderRefundListInPage" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
        select a.* from mall_refund a
        <where>
            <if test="record != null" >
                <if test="record.state!=null and record.state!=''">
                    and a.state = #{record.state}
                </if>
            </if>
        </where>
        order by a.CREATED_TIME desc
    </select>
</mapper>