定时同步客户数据
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- ----------------------------
|
||||
-- 定时任务:老系统 Oracle TAB_CUSTOMER -> ctr_customer 客户资料每日同步
|
||||
-- 调用目标对应 Bean:com.ruoyi.customer.customerinfo.task.CustomerSyncTask#syncFromOracle
|
||||
-- cron 0 0 0 * * ? = 每天 00:00:00;concurrent=1 禁止并发;misfire=3 放弃错过的执行
|
||||
-- 幂等:按 customer_code 新增/更新,可重复执行
|
||||
-- ----------------------------
|
||||
INSERT INTO sys_job (job_name, job_group, invoke_target, cron_expression,
|
||||
misfire_policy, concurrent, status, create_by, create_time, remark)
|
||||
SELECT '老系统客户资料每日同步', 'DEFAULT', 'customerSyncTask.syncFromOracle()', '0 0 0 * * ?',
|
||||
'3', '1', '0', 'admin', NOW(),
|
||||
'每天00:00从Oracle(WSDB.TAB_CUSTOMER,只读账号)全量同步客户主数据到ctr_customer;写库标记 create_by/update_by=oracle-sync'
|
||||
FROM DUAL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM sys_job WHERE invoke_target = 'customerSyncTask.syncFromOracle()');
|
||||
Reference in New Issue
Block a user