From 4d98602cf2c563bd0dbac369d8c3248f982f4d2a Mon Sep 17 00:00:00 2001 From: zhaobing Date: Mon, 8 Jan 2024 14:00:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=85=B3=E9=97=AD=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AB=8B=E5=8D=B3=E6=89=A7=E8=A1=8C+?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/schedule/work_notice.js | 2 +- .../4.3/schema/1.create_work_order_notice.sql | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 script/4.3/schema/1.create_work_order_notice.sql diff --git a/api/app/lib/schedule/work_notice.js b/api/app/lib/schedule/work_notice.js index 74b0999..d61c2c9 100644 --- a/api/app/lib/schedule/work_notice.js +++ b/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', } diff --git a/script/4.3/schema/1.create_work_order_notice.sql b/script/4.3/schema/1.create_work_order_notice.sql new file mode 100644 index 0000000..85eec84 --- /dev/null +++ b/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 '是否解决'; \ No newline at end of file