顾绍勇 5 vuotta sitten
vanhempi
commit
d716b9ef0f
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4
    1
      src/main/resources/mapper/TaRaiseRecordMapper.xml

+ 4
- 1
src/main/resources/mapper/TaRaiseRecordMapper.xml Näytä tiedosto

168
             <if test = "bo.refundNo != null and bo.refundNo != ''">
168
             <if test = "bo.refundNo != null and bo.refundNo != ''">
169
                 AND t2.refund_no = #{bo.refundNo}
169
                 AND t2.refund_no = #{bo.refundNo}
170
             </if>
170
             </if>
171
-            <if test = "bo.payStatus != null and bo.payStatus != ''">
171
+            <if test = "bo.payStatus == 'paid'">
172
                 AND t.pay_status = #{bo.payStatus}
172
                 AND t.pay_status = #{bo.payStatus}
173
             </if>
173
             </if>
174
+            <if test = "bo.payStatus == 'refunded'">
175
+                AND t.pay_status IN ('refunded','change')
176
+            </if>
174
             <if test = "bo.payStartTime != null and bo.payStartTime != ''">
177
             <if test = "bo.payStartTime != null and bo.payStartTime != ''">
175
                 AND t2.pay_time &gt;= STR_TO_DATE(#{bo.payStartTime}, '%Y-%m-%d %H:%i:%s')
178
                 AND t2.pay_time &gt;= STR_TO_DATE(#{bo.payStartTime}, '%Y-%m-%d %H:%i:%s')
176
             </if>
179
             </if>