From 64d8befc8776e4f756f39e7cce1c24f1b809ab6e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 30 Aug 2022 15:05:59 +0800 Subject: [PATCH] 20220822 --- src/main/resources/mapper/modules/MallRefundMapper.xml | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MallRefundMapper.xml b/src/main/resources/mapper/modules/MallRefundMapper.xml index fe05001..2de0197 100644 --- a/src/main/resources/mapper/modules/MallRefundMapper.xml +++ b/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> \ No newline at end of file -- Gitblit v1.9.1