临时额度定时失效

This commit is contained in:
luojiaquan
2026-09-17 14:12:05 +08:00
parent 51c8013cd9
commit eece680a07
7 changed files with 197 additions and 7 deletions
@@ -49,6 +49,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where customer_id = #{customerId} and del_flag = '0'
</select>
<!-- 扫描已到期临时额度的CNY账户(失效日当天仍有效,故严格小于今天) -->
<select id="selectExpiredTempCreditCustomerIds" resultType="java.lang.Long">
select customer_id
from customer_account
where del_flag = '0'
and currency = 'CNY'
and extra_credit &gt; 0
and extra_expire_date is not null
and extra_expire_date &lt; CURDATE()
</select>
<insert id="insertAccount" parameterType="com.ruoyi.customer.customermoney.domain.CustomerAccount"
useGeneratedKeys="true" keyProperty="id">
insert into customer_account