|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+-- =============================================================================
|
|
|
2
|
+-- 定时任务:已发货超时自动确认收货
|
|
|
3
|
+-- 调用:orderAutoConfirmReceiveJob.autoConfirmReceive
|
|
|
4
|
+-- 天数:每次执行读取 biz_mall_config.auto_confirm_days(默认 7 自然日)
|
|
|
5
|
+-- 前置:已执行 sql/biz_mall_config.sql;应用已部署 OrderAutoConfirmReceiveJob
|
|
|
6
|
+-- 说明:幂等插入;status=0 启用;部署后重启应用或于「定时任务」点执行一次生效
|
|
|
7
|
+-- =============================================================================
|
|
|
8
|
+
|
|
|
9
|
+INSERT INTO sys_job (
|
|
|
10
|
+ job_name,
|
|
|
11
|
+ job_group,
|
|
|
12
|
+ invoke_target,
|
|
|
13
|
+ cron_expression,
|
|
|
14
|
+ misfire_policy,
|
|
|
15
|
+ concurrent,
|
|
|
16
|
+ status,
|
|
|
17
|
+ create_by,
|
|
|
18
|
+ create_time,
|
|
|
19
|
+ remark
|
|
|
20
|
+)
|
|
|
21
|
+SELECT
|
|
|
22
|
+ '订单自动确认收货',
|
|
|
23
|
+ 'DEFAULT',
|
|
|
24
|
+ 'orderAutoConfirmReceiveJob.autoConfirmReceive',
|
|
|
25
|
+ '0 0 1 * * ?',
|
|
|
26
|
+ '3',
|
|
|
27
|
+ '1',
|
|
|
28
|
+ '0',
|
|
|
29
|
+ 'admin',
|
|
|
30
|
+ sysdate(),
|
|
|
31
|
+ '已发货订单按商城设置 auto_confirm_days 自然日自动确认收货;与买家手动确认等价'
|
|
|
32
|
+WHERE NOT EXISTS (
|
|
|
33
|
+ SELECT 1 FROM sys_job WHERE invoke_target = 'orderAutoConfirmReceiveJob.autoConfirmReceive'
|
|
|
34
|
+);
|