瀏覽代碼

update consumption report

tags/Baseline_30082024_BACKEND_UAT
MSI\derek 1 年之前
父節點
當前提交
1a24673c0f
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt
  2. 二進制
      src/main/resources/templates/report/AR03_Resource Overconsumption.xlsx

+ 2
- 0
src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt 查看文件

@@ -1806,6 +1806,7 @@ open class ReportService(
+ " p.name, "
+ " t.code as team, "
+ " c.code as client, "
+ " COALESCE(ss.name, 'N/A') as subsidiary, "
+ " p.expectedTotalFee * 0.8 as plannedBudget, "
+ " COALESCE(tns.totalBudget, 0) as actualConsumedBudget, "
+ " COALESCE(p.totalManhour, 0) as plannedManhour, "
@@ -1826,6 +1827,7 @@ open class ReportService(
+ " LEFT JOIN staff s ON p.teamLead = s.id "
+ " LEFT JOIN salary sa ON s.salaryId = sa.salaryPoint "
+ " LEFT JOIN customer c ON p.customerId = c.id "
+ " LEFT JOIN subsidiary ss on p.customerSubsidiaryId = ss.id "
+ " left join teamNormalConsumed tns on tns.project_id = p.id "
+ " WHERE p.deleted = false "
+ " and p.status = 'On-going' "


二進制
src/main/resources/templates/report/AR03_Resource Overconsumption.xlsx 查看文件


Loading…
取消
儲存