临时额度定时失效
This commit is contained in:
@@ -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 > 0
|
||||
and extra_expire_date is not null
|
||||
and extra_expire_date < CURDATE()
|
||||
</select>
|
||||
|
||||
<insert id="insertAccount" parameterType="com.ruoyi.customer.customermoney.domain.CustomerAccount"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
insert into customer_account
|
||||
|
||||
Reference in New Issue
Block a user