Browse Source

feat:fix bugs

dev
zhaobing 1 year ago
parent
commit
e28eebdd37
  1. 7
      api/app/lib/schedule/work_notice.js

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

@ -12,7 +12,7 @@ const schedule = require('node-schedule')
const moment = require('moment') const moment = require('moment')
const request = require('superagent') const request = require('superagent')
let isDev = false let isDev = false
// isDev = true isDev = true
const sendType = { const sendType = {
'mini': 'miniprogram_notice', 'mini': 'miniprogram_notice',
} }
@ -63,7 +63,8 @@ module.exports = function (app, opts) {
INNER JOIN ${camWorkflow}.act_hi_procinst AS procin INNER JOIN ${camWorkflow}.act_hi_procinst AS procin
ON procin.id_ = story.procinst_id ON procin.id_ = story.procinst_id
AND procin.state_ in ('COMPLETED','ACTIVE') AND procin.state_ in ('COMPLETED','ACTIVE')
WHERE story.apply_user in ('731')` WHERE story.apply_user in ('731')
`
).toPromise() ).toPromise()
console.log('查询结果',formRes) console.log('查询结果',formRes)
if (formRes && formRes.length > 0) { if (formRes && formRes.length > 0) {
@ -88,7 +89,7 @@ module.exports = function (app, opts) {
processingPersonnelId: parseData.processing_personnel.value, processingPersonnelId: parseData.processing_personnel.value,
processingPersonnelPhone: user && user.length && user[0].phone, processingPersonnelPhone: user && user.length && user[0].phone,
isSend: false, 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'), createTime: moment(f.createTime).format('YYYY-MM-DD'),
}) })
} }

Loading…
Cancel
Save