巴林闲侠 2 years ago
parent
commit
eac32d1373
  1. 6
      api/app/lib/schedule/attendance.js
  2. 2
      api/app/lib/service/clickHouseClient.js

6
api/app/lib/schedule/attendance.js

@ -11,7 +11,7 @@ module.exports = function (app, opts) {
proRun: true,
},
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
try {
const startTime = moment()
@ -565,10 +565,10 @@ module.exports = function (app, opts) {
}
}
console.info(`
console.log(`
假勤数据更新 用时 ${moment().diff(startTime, 'seconds')} s
`)
console.info(`
console.log(`
${attendanceRes.length};
新增${insertCount};
更新数据${updateCount};

2
api/app/lib/service/clickHouseClient.js

@ -11,7 +11,7 @@ function factory (app, opts) {
app.fs.clickHouse[d.name] = new ClickHouse({
url: url,
port: port,
debug: true || opts.dev,
debug: opts.dev,
format: "json",
basicAuth: user && password ? {
username: user,

Loading…
Cancel
Save