巴林闲侠 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, 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};

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

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

Loading…
Cancel
Save