소스 검색

minor dashboard api update

tags/Baseline_30082024_BACKEND_UAT
MSI\User 1 년 전
부모
커밋
29034c218a
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 파일 보기

@@ -1986,8 +1986,8 @@ open class DashboardService(
+ " coalesce (expenditure.expenditure,0) as expenditure,"
+ " ((p.expectedTotalFee - ifnull(p.subContractFee, 0)) * 0.8) - coalesce (expenditure.expenditure,0) as remainingBudget,"
+ " case"
+ " when p.expectedTotalFee - expenditure.expenditure >= 0 then 'Within Budget'"
+ " when p.expectedTotalFee - expenditure.expenditure < 0 then 'Overconsumption'"
+ " when p.expectedTotalFee - coalesce (expenditure.expenditure,0) >= 0 then 'Within Budget'"
+ " when p.expectedTotalFee - coalesce (expenditure.expenditure,0) < 0 then 'Overconsumption'"
+ " end as status,"
+ " p.totalManhour as plannedResources,"
+ " sum(ifnull(t.normalConsumed, 0) + ifnull(t.otConsumed, 0)) as resourcesSpent,"


불러오는 중...
취소
저장