update param daftar tarif

This commit is contained in:
ridwan 2026-07-16 11:03:03 +07:00
parent a938fc1129
commit 5ab97287dc
3 changed files with 7 additions and 7 deletions

View File

@ -1706,7 +1706,7 @@ public class ReportingController {
@RequestMapping(value = {"/daftar-tarif-ruangan"}, method = {RequestMethod.GET})
public void handleLpTarif(
@RequestParam(value = "idInstalasi", required = false, defaultValue = "") Integer idInstalasi,
@RequestParam(value = "idUkp", required = false, defaultValue = "") Integer idUkp,
@RequestParam(value = "idUnit", required = false, defaultValue = "") Integer idUnit,
@RequestParam(value = "idRuangan", required = false, defaultValue = "") Integer idRuangan,
@RequestParam(value = "idProduk", required = false, defaultValue = "") Integer idProduk,
@RequestParam(value = "idTarif", required = false, defaultValue = "") Integer idTarif,
@ -1718,7 +1718,7 @@ public class ReportingController {
JasperPrint jasperPrint = null;
try {
// Generate report (common for both PDF/Excel)
jasperPrint = this.reportingService.exportLpTarif(idInstalasi, idUkp, idRuangan, idProduk, idTarif, printBy);
jasperPrint = this.reportingService.exportLpTarif(idInstalasi, idUnit, idRuangan, idProduk, idTarif, printBy);
if ("excel".equalsIgnoreCase(format)) {
// Handle Excel export

View File

@ -1398,13 +1398,13 @@ public class ReportingDao {
}
return null;
}
public JasperPrint exportLpTarif(Integer idInstalasi, Integer idUkp, Integer idRuangan, Integer idProduk, Integer idTarif, String printBy) {
public JasperPrint exportLpTarif(Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idProduk, Integer idTarif, String printBy) {
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
String path = jaspersim2DirPath + "tindakan_mba_ayu_putri.jrxml";
JasperReport jasperReport = JasperCompileManager.compileReport(path);
Map<String, Object> parameters = new HashMap<>();
parameters.put("idInstalasi", idInstalasi);
parameters.put("idUkp", idUkp);
parameters.put("idUnit", idUnit);
parameters.put("idRuangan", idRuangan);
parameters.put("idProduk", idProduk);
parameters.put("idTarif", idTarif);

View File

@ -455,9 +455,9 @@ public class ReportingService {
return this.reportingDao.exportLpSatuSehat(tglAwal, tglAkhir, idInstalasi, idUnit, idRuangan, idPegawai, printBy);
}
public JasperPrint exportLpTarif(Integer idInstalasi, Integer idUkp, Integer idRuangan, Integer idProduk, Integer idTarif, String printBy) {
log.info("Starting exportLpTarif with idInstalasi: {}, idProduk: {}, idTarif: {}, printBy: {}", idInstalasi, idUkp, idRuangan, idProduk, idTarif, printBy);
return this.reportingDao.exportLpTarif(idInstalasi, idUkp, idRuangan, idProduk, idTarif, printBy);
public JasperPrint exportLpTarif(Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idProduk, Integer idTarif, String printBy) {
log.info("Starting exportLpTarif with idInstalasi: {}, idProduk: {}, idTarif: {}, printBy: {}", idInstalasi, idUnit, idRuangan, idProduk, idTarif, printBy);
return this.reportingDao.exportLpTarif(idInstalasi, idUnit, idRuangan, idProduk, idTarif, printBy);
}
public JasperPrint exportLpRekapTidakan(String tglAwal, String tglAkhir, Integer idUnit, Integer idDokter, Integer idKp, Integer idProduk, String printBy) {