|
|
|
@ -139,7 +139,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
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),DATE_ADD(r.expiry_time, INTERVAL 1 year),NOW(), NOW(),
|
|
|
|
|
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(),
|
|
|
|
|
CONCAT('System-', CURRENT_DATE()),r.clean_days,'费率自动延期一年'
|
|
|
|
|
FROM (select rr.* from sys_client_rates rr
|
|
|
|
|
WHERE rr.client_id = #{clientId}
|
|
|
|
|