顾绍勇 il y a 5 ans
Parent
révision
d716b9ef0f
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4
    1
      src/main/resources/mapper/TaRaiseRecordMapper.xml

+ 4
- 1
src/main/resources/mapper/TaRaiseRecordMapper.xml Voir le fichier

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