From f3e78c7059c7885375a707a4100810e8b296b4c4 Mon Sep 17 00:00:00 2001 From: lijianlin Date: Thu, 9 Apr 2026 10:34:36 +0800 Subject: [PATCH] =?UTF-8?q?04-09=20=E8=B5=84=E9=87=91=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=EF=BC=8C=E7=8A=B6=E6=80=81=E7=AD=9B=E9=80=89=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/cashMapper/CashRefundMapper.xml | 48 +++++++++++++++++----- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/src/main/resources/cashMapper/CashRefundMapper.xml b/src/main/resources/cashMapper/CashRefundMapper.xml index 68f5f6c..54b0293 100644 --- a/src/main/resources/cashMapper/CashRefundMapper.xml +++ b/src/main/resources/cashMapper/CashRefundMapper.xml @@ -513,12 +513,22 @@ #{statuses} - - AND ( - - (crc.received_market = #{item.areaId,jdbcType=INTEGER} AND crc.pay_type = #{item.payType,jdbcType=VARCHAR}) + + + + + + - ) + + AND ( + + + (crc.received_market = #{item.areaId,jdbcType=INTEGER} AND crc.pay_type = #{item.payType,jdbcType=VARCHAR}) + + + ) + UNION ALL @@ -554,7 +564,7 @@ FROM cash_record_refund crr INNER JOIN cash_record_collection crc ON crr.related_id = crc.id left join recharge_activity ra on ra.id = crc.activity - WHERE crc.status =6 and crr.status =41 + WHERE crr.status =41 and crc.jwcode = #{jwcode} @@ -564,6 +574,12 @@ #{markets} + + and crc.status IN + + #{statuses} + + AND crc.performance_market IN @@ -582,12 +598,22 @@ AND crc.order_code like CONCAT('%', #{orderCode}, '%') - - AND ( - - (crc.received_market = #{item.areaId,jdbcType=INTEGER} AND crc.pay_type = #{item.payType,jdbcType=VARCHAR}) + + + + + + - ) + + AND ( + + + (crc.received_market = #{item.areaId,jdbcType=INTEGER} AND crc.pay_type = #{item.payType,jdbcType=VARCHAR}) + + + ) + ) AS combined_result ORDER BY