|
@@ -4007,7 +4007,7 @@ open class DashboardService( |
|
|
+ " where p.status = 'On-going' " |
|
|
+ " where p.status = 'On-going' " |
|
|
+ " and p.deleted = false " |
|
|
+ " and p.deleted = false " |
|
|
+ (if (args.containsKey("teamId")) "and s.teamId = :teamId" else "") |
|
|
+ (if (args.containsKey("teamId")) "and s.teamId = :teamId" else "") |
|
|
+ (if (args.containsKey("endDate")) " and coalesce(p.planStart, p.actualStart) <= :endDate" else "") |
|
|
|
|
|
|
|
|
+ (if (args.containsKey("endDate")) " and coalesce(p.actualStart, p.planStart) <= :endDate" else "") |
|
|
+ " order by p.code " |
|
|
+ " order by p.code " |
|
|
+ " ) result ") |
|
|
+ " ) result ") |
|
|
println(sql) |
|
|
println(sql) |
|
|