wangrong
2026-09-24 98ce961272c596468a4cb4b2498a3c70048e4aed
src/modules/report/controller/admin/dailysite.ts
@@ -25,7 +25,11 @@
        ],
    where: async (ctx) => {
      const { startTime, endTime } = ctx.request.body;
      const conditions: any[][] = [];
      if (startTime && endTime) {
        conditions.push(['a.date BETWEEN :startTime AND :endTime', { startTime, endTime }]);
      }
      conditions.push(...(await WithDeptFilterWhere(ctx, { alias: 'a', field: 'departmentId' })));
      return conditions;
    }