src/modules/report/controller/admin/dailydepartment.ts
@@ -14,7 +14,11 @@ keyWordLikeFields: ['a.departmentName'], fieldEq: ['a.date', 'a.departmentId'], 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; }