|
|
|
@ -151,7 +151,6 @@
|
|
|
|
|
</select>
|
|
|
|
|
<update id="postponeMerchantRateByClientId">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
|
|
|
|
INSERT sys_client_rates (manager_id, client_id, rate_name, rate_value, transaction_fee, active_time, expiry_time, create_time, update_time, manager_name, clean_days, remark,ext_rates,pay_type)
|
|
|
|
|
SELECT CONCAT('System-', CURRENT_DATE()),r.client_id,r.rate_name,r.rate_value,r.transaction_fee,DATE_ADD(r.expiry_time, INTERVAL 1 day),
|
|
|
|
|
IF(DATE_ADD( r.expiry_time, INTERVAL 1 YEAR )<=NOW(),DATE_ADD( r.expiry_time, INTERVAL 2 YEAR ),DATE_ADD( r.expiry_time, INTERVAL 1 YEAR )) expiry_time,NOW(), NOW(),
|
|
|
|
@ -161,7 +160,6 @@
|
|
|
|
|
and rr.rate_name = #{channel}
|
|
|
|
|
order by rr.expiry_time desc limit 1) r
|
|
|
|
|
where r.expiry_time<= current_date()
|
|
|
|
|
|
|
|
|
|
]]>
|
|
|
|
|
</update>
|
|
|
|
|
<select id="latestConfig" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|