MSI\derek 10 месяцев назад
Родитель
Сommit
ef42241da8
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      src/main/java/com/ffii/tsms/modules/data/service/DashboardService.kt

+ 2
- 2
src/main/java/com/ffii/tsms/modules/data/service/DashboardService.kt Просмотреть файл

@@ -3476,8 +3476,8 @@ open class DashboardService(
+ " left join project p on p.code = i.projectCode "
+ " left join staff s on s.id = p.teamlead "
+ " where i.deleted = false "
+ (if (args.containsKey("startDate") && args.containsKey("endDate")) " and i.receiptDate between :startDate AND :endDate "
else if (args.containsKey("endDate")) " and i.receiptDate <= :endDate "
+ (if (args.containsKey("startDate") && args.containsKey("endDate")) " and i.invoiceDate between :startDate AND :endDate "
else if (args.containsKey("endDate")) " and i.invoiceDate <= :endDate "
else "")
+ " group by p.id "
+ " ) "


Загрузка…
Отмена
Сохранить