|
|
@@ -2038,7 +2038,7 @@ open class ReportService( |
|
|
|
val sql = StringBuilder( |
|
|
|
"SELECT" |
|
|
|
+ " CAST(DATE_FORMAT(t.recordDate, '%d') AS SIGNED) AS recordDate, " |
|
|
|
+ " sum(t.normalConsumed) + sum(t.otConsumed) as totalConsumed " |
|
|
|
+ " coalesce(sum(t.normalConsumed), 0) + coalesce(sum(t.otConsumed), 0) " |
|
|
|
+ " from timesheet t " |
|
|
|
+ " left join project p on p.id = t.projectId " |
|
|
|
+ " where t.staffId = :staffId " |
|
|
|