|
|
@@ -254,7 +254,7 @@
|
|
|
|
|
|
<select id="test" resultType="double">
|
|
|
SELECT (SELECT SUM(IFNULL(offset_points,0)) FROM tz_order
|
|
|
- WHERE create_time>= '2025-11-01 00:00:00' and create_time<='2025-12-08 23:59:59' and is_payed=1 and user_id=#{userId}
|
|
|
+ WHERE is_payed=1 and user_id=#{userId}
|
|
|
) -
|
|
|
(
|
|
|
SELECT IFNULL(SUM(IFNULL(total_offset_points,0)),0) FROM (SELECT
|
|
|
@@ -265,9 +265,9 @@
|
|
|
FROM tz_order_refund a
|
|
|
LEFT JOIN (SELECT SUM(offset_points) total_offset_points ,order_number
|
|
|
FROM tz_order_refund
|
|
|
- WHERE apply_time>='2025-11-01 00:00:00' and apply_time<='2025-12-08 23:59:59' and return_money_sts=70 and user_id=#{userId}
|
|
|
+ WHERE return_money_sts=70 and user_id=#{userId}
|
|
|
GROUP BY order_number) b on a.order_number=b.order_number
|
|
|
- WHERE apply_time>='2025-11-01 00:00:00' and apply_time<='2025-12-08 23:59:59' and return_money_sts=70 and user_id=#{userId}
|
|
|
+ WHERE return_money_sts=70 and user_id=#{userId}
|
|
|
GROUP BY a.order_number) a
|
|
|
)
|
|
|
</select>
|