Browse Source

unsubmit api

tags/Baseline_30082024_BACKEND_UAT
Mac\David 1 year ago
parent
commit
d36ab710dd
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      src/main/java/com/ffii/tsms/modules/data/service/DashboardService.kt

+ 9
- 2
src/main/java/com/ffii/tsms/modules/data/service/DashboardService.kt View File

@@ -1717,7 +1717,11 @@ open class DashboardService(
+ " SELECT 5 as num"
+ " ) numbers"
+ " WHERE"
+ " DATE(:startdate + INTERVAL numbers.num DAY) BETWEEN :startdate AND DATE_ADD(:startdate, INTERVAL 6 DAY)"
+ " DATE(:startdate + INTERVAL numbers.num DAY) BETWEEN :startdate AND"
+ " case"
+ " when curdate() < DATE_ADD(:startdate, INTERVAL 6 DAY) then curdate()"
+ " else DATE_ADD(:startdate, INTERVAL 6 DAY)"
+ " end"
+ " AND DAYOFWEEK(DATE(:startdate + INTERVAL numbers.num DAY)) BETWEEN 2 AND 6"
+ " AND DATE(:startdate + INTERVAL numbers.num DAY) not in (select ch.date from company_holiday ch where ch.deleted = 0)"
+ " AND DATE(:startdate + INTERVAL numbers.num DAY) not in (:publicHolidayList)"
@@ -1796,7 +1800,10 @@ open class DashboardService(
+ " WHERE"
+ " DATE(:startdate + INTERVAL numbers.num DAY) BETWEEN"
+ " :startdate AND"
+ " CURDATE()"
+ " case"
+ " when month(:startdate) >= month(curdate()) then curdate()"
+ " else LAST_DAY(:startdate)"
+ " end"
+ " AND DAYOFWEEK(DATE(:startdate + INTERVAL numbers.num DAY)) BETWEEN 2 AND 6"
+ " AND DATE(:startdate + INTERVAL numbers.num DAY) not in (select ch.date from company_holiday ch where ch.deleted = 0)"
+ " AND DATE(:startdate + INTERVAL numbers.num DAY) not in (:publicHolidayList)"


Loading…
Cancel
Save