余额支付订单 进行分账处理

This commit is contained in:
2023-08-10 17:03:20 +08:00
parent df776b0466
commit 275962f201
8 changed files with 184 additions and 29 deletions

View File

@@ -450,4 +450,24 @@
</if>
</trim>
</insert>
<select id="selectAdapayRecordList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from member_adapay_record
where del_flag = '0'
and member_id = #{memberId,jdbcType=VARCHAR}
<if test="scenarioType != null and scenarioType != ''">
and scenario_type = #{scenarioType,jdbcType=VARCHAR}
</if>
order by create_time
</select>
<select id="selectByPaymentId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from member_adapay_record
where del_flag = '0'
and payment_id = #{paymentId,jdbcType=VARCHAR}
</select>
</mapper>