From 6b4497248f614629c954040dfb9cba0bbe52ca00 Mon Sep 17 00:00:00 2001 From: ridwan Date: Wed, 1 Oct 2025 14:58:48 +0700 Subject: [PATCH] update priode --- src/main/java/com/reporting/dao/ReportingDao.java | 2 +- src/main/java/com/reporting/service/ReportingService.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/reporting/dao/ReportingDao.java b/src/main/java/com/reporting/dao/ReportingDao.java index 2487e01..abc8f14 100644 --- a/src/main/java/com/reporting/dao/ReportingDao.java +++ b/src/main/java/com/reporting/dao/ReportingDao.java @@ -1223,7 +1223,7 @@ public class ReportingDao { return null; } - public JasperPrint exportLpSatuSehat(Date tglAwal, Date tglAkhir, Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idPegawai, String printBy) { + public JasperPrint exportLpSatuSehat(String tglAwal, String tglAkhir, Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idPegawai, String printBy) { try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) { String path = jaspersim2DirPath + "laporan_satusehat.jrxml"; JasperReport jasperReport = JasperCompileManager.compileReport(path); diff --git a/src/main/java/com/reporting/service/ReportingService.java b/src/main/java/com/reporting/service/ReportingService.java index 5b86141..eacbcbf 100644 --- a/src/main/java/com/reporting/service/ReportingService.java +++ b/src/main/java/com/reporting/service/ReportingService.java @@ -402,7 +402,7 @@ public class ReportingService { } } - public JasperPrint exportLpSatuSehat(String tglAwal, String tglAkhir, Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idPegawai, String printBy) { + /*public JasperPrint exportLpSatuSehat(String tglAwal, String tglAkhir, Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idPegawai, String printBy) { try { SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); Date parse = formatter.parse(tglAwal); @@ -413,6 +413,10 @@ public class ReportingService { return null; } + }*/ + + public JasperPrint exportLpSatuSehat(String tglAwal, String tglAkhir, Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idPegawai, String printBy) { + return this.reportingDao.exportLpSatuSehat(tglAwal, tglAkhir, idInstalasi, idUnit, idRuangan, idPegawai, printBy); } public JasperPrint exportLpTarif(Integer idInstalasi, Integer idProduk, Integer idTarif, String printBy) {