Bläddra i källkod

updated

tags/Baseline_30082024_BACKEND_UAT
Mac\David 1 år sedan
förälder
incheckning
8672904b4f
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. +3
    -3
      src/main/java/com/ffii/tsms/modules/data/service/DashboardService.kt

+ 3
- 3
src/main/java/com/ffii/tsms/modules/data/service/DashboardService.kt Visa fil

@@ -1669,7 +1669,7 @@ open class DashboardService(
+ " from staff s"
+ " left join staff_allocation sa on sa.staff_id = s.id"
+ " left join project p on sa.project_id = p.id"
+ " left join timesheet t on p.id = t.projectId"
+ " left join timesheet t on p.id = t.projectId and s.id = t.staffId "
+ " where s.id = :staffId"
+ " and t.recordDate = :startdate"
)
@@ -1696,7 +1696,7 @@ open class DashboardService(
+ " from staff s"
+ " left join staff_allocation sa on sa.staff_id = s.id"
+ " left join project p on sa.project_id = p.id"
+ " left join timesheet t on p.id = t.projectId"
+ " left join timesheet t on p.id = t.projectId and s.id = t.staffId"
+ " where s.id = :staffId"
+ " and t.recordDate >= :startdate"
+ " and t.recordDate <= :enddate"
@@ -1725,7 +1725,7 @@ open class DashboardService(
+ " from staff s"
+ " left join staff_allocation sa on sa.staff_id = s.id"
+ " left join project p on sa.project_id = p.id"
+ " left join timesheet t on p.id = t.projectId"
+ " left join timesheet t on p.id = t.projectId and s.id = t.staffId"
+ " where s.id = :staffId"
+ " and t.recordDate >= :startdate"
+ " and t.recordDate <= last_day(:startdate)"


Laddar…
Avbryt
Spara