|
|
@ -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 = ` |
|
|
|