Browse Source

feat:关闭定时任务立即执行+脚本

dev
zhaobing 1 year ago
parent
commit
4d98602cf2
  1. 2
      api/app/lib/schedule/work_notice.js
  2. 26
      script/4.3/schema/1.create_work_order_notice.sql

2
api/app/lib/schedule/work_notice.js

@ -12,7 +12,7 @@ const schedule = require('node-schedule')
const moment = require('moment')
const request = require('superagent')
let isDev = false
isDev = true
// isDev = true
const sendType = {
'mini': 'miniprogram_notice',
}

26
script/4.3/schema/1.create_work_order_notice.sql

@ -0,0 +1,26 @@
create table work_order_notice
(
id serial
constraint work_order_notice_pk
primary key,
plan_time timestamp,
processing_personnel_id integer,
processing_personnel_phone varchar(30),
is_send boolean not null,
procinst_id varchar(100),
have_done boolean
);
comment on table work_order_notice is '运维工单根据计划修复时间发送企业微信通知';
comment on column work_order_notice.plan_time is '计划修复时间';
comment on column work_order_notice.processing_personnel_id is '处理人的项企账号id';
comment on column work_order_notice.processing_personnel_phone is '处理人手机号码';
comment on column work_order_notice.is_send is '是否已发送';
comment on column work_order_notice.procinst_id is '表单实例id';
comment on column work_order_notice.have_done is '是否解决';
Loading…
Cancel
Save