Przeglądaj źródła

Merge remote-tracking branch 'origin/dev' into dev

tags/24090101
WendyYang 2 miesięcy temu
rodzic
commit
a55e8d4e33
1 zmienionych plików z 4 dodań i 3 usunięć
  1. +4
    -3
      hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java

+ 4
- 3
hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java Wyświetl plik

@@ -812,9 +812,10 @@ public class WorkbenchManage {
queryWrapper.exists(unitStripSql);
}
if (req.getProjectYear() != null) {
LocalDate startDate = LocalDate.of(req.getProjectYear(), 1, 1);
LocalDate endDate = LocalDate.now().plusDays(1);
queryWrapper.between(ProjectEarlyWarning::getCreateOn, startDate, endDate);
String projectYearSql = String.format("select 1 from nd_project np where " +
"np.project_code = nd_project_early_warning.project_code " +
" and np.newest = 1 and np.project_year = %d", req.getProjectYear());
queryWrapper.exists(projectYearSql);
}

List<ProjectEarlyWarning> records = projectEarlyWarningService.list(queryWrapper);


Ładowanie…
Anuluj
Zapisz