|
@ -11,7 +11,7 @@ module.exports = function (app, opts) { |
|
|
proRun: true, |
|
|
proRun: true, |
|
|
}, |
|
|
}, |
|
|
async () => { |
|
|
async () => { |
|
|
console.info('假勤数据更新 ', moment().format('YYYY-MM-DD HH:mm:ss')); |
|
|
console.log('假勤数据更新 ', moment().format('YYYY-MM-DD HH:mm:ss')); |
|
|
const { workFlow: { processState } } = opts |
|
|
const { workFlow: { processState } } = opts |
|
|
try { |
|
|
try { |
|
|
const startTime = moment() |
|
|
const startTime = moment() |
|
@ -565,10 +565,10 @@ module.exports = function (app, opts) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.info(` |
|
|
console.log(` |
|
|
假勤数据更新 用时 ${moment().diff(startTime, 'seconds')} s |
|
|
假勤数据更新 用时 ${moment().diff(startTime, 'seconds')} s |
|
|
`)
|
|
|
`)
|
|
|
console.info(` |
|
|
console.log(` |
|
|
共:${attendanceRes.length}; |
|
|
共:${attendanceRes.length}; |
|
|
新增:${insertCount}; |
|
|
新增:${insertCount}; |
|
|
更新数据:${updateCount}; |
|
|
更新数据:${updateCount}; |
|
|