Browse Source

fix 6028 请假统计列表筛选时间内数据和档案详情不一致

master
巴林闲侠 2 years ago
parent
commit
ffeedd63ae
  1. 4
      api/app/lib/utils/member.js

4
api/app/lib/utils/member.js

@ -90,10 +90,10 @@ module.exports = function (app, opts) {
let vacateCountStatisticWhere = []
if (vacateCountStatisticStartDate) {
vacateCountStatisticWhere.push(`vacate.start_time >= '${moment(vacateCountStatisticStartDate).format('YYYY-MM-DD')}'`)
vacateCountStatisticWhere.push(`vacate.start_time >= '${moment(vacateCountStatisticStartDate).startOf('day').format('YYYY-MM-DD HH:mm:ss')}'`)
}
if (vacateCountStatisticendDate) {
vacateCountStatisticWhere.push(`vacate.end_time <= '${moment(vacateCountStatisticendDate).format('YYYY-MM-DD')}'`)
vacateCountStatisticWhere.push(`vacate.end_time <= '${moment(vacateCountStatisticendDate).endOf('day').format('YYYY-MM-DD HH:mm:ss')}'`)
}
// CRAZY
const innerSelectQuery = `

Loading…
Cancel
Save