update 新增重新分账接口

This commit is contained in:
Lemon
2025-10-10 11:54:35 +08:00
parent f5a58a70ea
commit 28a712637f
8 changed files with 123 additions and 0 deletions

View File

@@ -3396,4 +3396,20 @@
and t1.create_time <![CDATA[ <= ]]> #{endTime,jdbcType=VARCHAR}
order by t1.create_time DESC
</select>
<select id="getSplitOrders" resultType="com.jsowell.pile.domain.OrderSplitRecord">
SELECT
t1.`order_code` as orderCode,
t1.`settle_amount` as settleAmount,
t2.payment_id as paymentId
FROM
`order_basic_info` t1
LEFT JOIN `adapay_callback_record` t2 ON `t1`.`order_code` = t2.`order_code`
WHERE
t1.`del_flag` = '0'
AND t1.`merchant_id` = #{dto.merchantId,jdbcType=VARCHAR}
AND t1.`settlement_time` BETWEEN #{dto.startTime,jdbcType=VARCHAR}
AND #{dto.endTime,jdbcType=VARCHAR}
AND t1.`settle_amount` > 0;
</select>
</mapper>