update 未分账支付单分到默认账户

This commit is contained in:
2023-10-16 10:18:06 +08:00
parent 45da1f1ed1
commit c2af8aca41
16 changed files with 148 additions and 109 deletions

View File

@@ -1196,4 +1196,23 @@
</if>
</where>
</select>
<select id="queryOrderPayDetail" resultType="com.jsowell.pile.vo.web.OrderPayDetailVO">
select
t1.order_code as orderCode,
t1.create_time as createTime,
t1.settlement_time as settlementTime,
t1.`pay_amount` as payAmount,
t1.refund_amount as refundAmount,
t1.settle_amount as settleAmount,
t1.refund_amount as refundAmount,
t1.merchant_id as merchantId,
t2.payment_id as paymentId
from order_basic_info t1
join adapay_callback_record t2 on t1.order_code = t2.order_code
where t1.`del_flag` = '0'
and t1.settlement_time BETWEEN #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
and t1.settle_amount > 0.00
and t1.pay_mode = '4'
</select>
</mapper>