From e28eebdd37fa149c0ca8fa4bb52140f2d6291624 Mon Sep 17 00:00:00 2001 From: zhaobing Date: Wed, 10 Jan 2024 16:54:02 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/schedule/work_notice.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/app/lib/schedule/work_notice.js b/api/app/lib/schedule/work_notice.js index 8e87dfd..5fe1918 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', } @@ -63,7 +63,8 @@ module.exports = function (app, opts) { INNER JOIN ${camWorkflow}.act_hi_procinst AS procin ON procin.id_ = story.procinst_id AND procin.state_ in ('COMPLETED','ACTIVE') - WHERE story.apply_user in ('731')` + WHERE story.apply_user in ('731') + ` ).toPromise() console.log('查询结果',formRes) if (formRes && formRes.length > 0) { @@ -88,7 +89,7 @@ module.exports = function (app, opts) { processingPersonnelId: parseData.processing_personnel.value, processingPersonnelPhone: user && user.length && user[0].phone, isSend: false, - haveDone: parseData.solution_status.value && parseData.solution_status.value === '否' ? false : true || false, + haveDone: parseData.solution_status.value?(parseData.solution_status.value === '否' ? false : true) : false, createTime: moment(f.createTime).format('YYYY-MM-DD'), }) }