WMS/sql/20260717_add_other_out_job.sql

17 lines
672 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ERP事项一:领料出库失败自动补传Job
-- 执行范围:仅 default(线边库)执行。
-- 默认暂停;真实ERP联调通过后再启用。
-- 脚本可重复执行。
INSERT INTO `SysJob`
(`JobName`, `JobGroup`, `MethodName`, `MethodParams`, `CronExpression`,
`LastFireTime`, `NextFireTime`, `MisfirePolicy`, `Status`, `Remark`,
`CreateTime`, `CreateBy`, `UpdateTime`, `UpdateBy`)
SELECT
'AddOtherOutJob', 'AddOtherOutJob', NULL, NULL, '0 */1 * * * ?',
NULL, NULL, NULL, 0, 'ERP领料出库失败自动补传',
NOW(), 'system', NULL, NULL
WHERE NOT EXISTS (
SELECT 1 FROM `SysJob` WHERE `JobName` = 'AddOtherOutJob'
);