MSI\derek преди 10 месеца
родител
ревизия
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 "
+ " ) "


Зареждане…
Отказ
Запис