Clean code
This commit is contained in:
parent
f1499360da
commit
7e555d0b7d
@ -5,7 +5,6 @@ import com.jasamedika.medifirst2000.converter.BaseConverterImpl;
|
|||||||
import com.jasamedika.medifirst2000.dao.*;
|
import com.jasamedika.medifirst2000.dao.*;
|
||||||
import com.jasamedika.medifirst2000.dto.TagihanPendaftaranDto;
|
import com.jasamedika.medifirst2000.dto.TagihanPendaftaranDto;
|
||||||
import com.jasamedika.medifirst2000.entities.*;
|
import com.jasamedika.medifirst2000.entities.*;
|
||||||
import com.jasamedika.medifirst2000.exception.ServiceVOException;
|
|
||||||
import com.jasamedika.medifirst2000.service.PelayananPasienService;
|
import com.jasamedika.medifirst2000.service.PelayananPasienService;
|
||||||
import com.jasamedika.medifirst2000.util.CommonUtil;
|
import com.jasamedika.medifirst2000.util.CommonUtil;
|
||||||
import com.jasamedika.medifirst2000.util.DateUtil;
|
import com.jasamedika.medifirst2000.util.DateUtil;
|
||||||
@ -1349,7 +1348,6 @@ public class PelayananPasienServiceImpl extends BaseVoServiceImpl implements Pel
|
|||||||
List<Integer> listIdKelompokPasien = new ArrayList<>();
|
List<Integer> listIdKelompokPasien = new ArrayList<>();
|
||||||
List<String> listTanggal = new ArrayList<>();
|
List<String> listTanggal = new ArrayList<>();
|
||||||
Map<String, Object> remunFfs = this.splitRemunFfs(idPegawai, bulan);
|
Map<String, Object> remunFfs = this.splitRemunFfs(idPegawai, bulan);
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
List<Map<String, Object>> listData = (List<Map<String, Object>>) remunFfs.get("remun");
|
List<Map<String, Object>> listData = (List<Map<String, Object>>) remunFfs.get("remun");
|
||||||
Double target = Double.parseDouble(remunFfs.get("targetRemun").toString());
|
Double target = Double.parseDouble(remunFfs.get("targetRemun").toString());
|
||||||
String targetFormatted = remunFfs.get("targetRemunFormatted").toString();
|
String targetFormatted = remunFfs.get("targetRemunFormatted").toString();
|
||||||
@ -1622,7 +1620,6 @@ public class PelayananPasienServiceImpl extends BaseVoServiceImpl implements Pel
|
|||||||
List<String> listTanggal = new ArrayList<>();
|
List<String> listTanggal = new ArrayList<>();
|
||||||
List<String> listJenisRuangan = new ArrayList<>();
|
List<String> listJenisRuangan = new ArrayList<>();
|
||||||
Map<String, Object> remunFfs = this.splitRemunFfs(idPegawai, bulan);
|
Map<String, Object> remunFfs = this.splitRemunFfs(idPegawai, bulan);
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
List<Map<String, Object>> listData = (List<Map<String, Object>>) remunFfs.get("ffs");
|
List<Map<String, Object>> listData = (List<Map<String, Object>>) remunFfs.get("ffs");
|
||||||
/*
|
/*
|
||||||
* Mendapatkan persentase jasa
|
* Mendapatkan persentase jasa
|
||||||
|
|||||||
@ -227,7 +227,7 @@ public class PelayananController extends LocaleController<PelayananPasienVO> {
|
|||||||
return RestUtil.getJsonResponse(dtoList, HttpStatus.OK, mapHeaderMessage);
|
return RestUtil.getJsonResponse(dtoList, HttpStatus.OK, mapHeaderMessage);
|
||||||
} catch (ServiceVOException e) {
|
} catch (ServiceVOException e) {
|
||||||
LOGGER.error("Got exception {} when simpan diskon tagihan {}", e.getMessage(), null);
|
LOGGER.error("Got exception {} when simpan diskon tagihan {}", e.getMessage(), null);
|
||||||
Map<String, String> error = new HashMap<String, String>();
|
Map<String, String> error = new HashMap<>();
|
||||||
error.put("bad-request", e.getMessage());
|
error.put("bad-request", e.getMessage());
|
||||||
return RestUtil.getJsonResponse(null, HttpStatus.BAD_REQUEST, error);
|
return RestUtil.getJsonResponse(null, HttpStatus.BAD_REQUEST, error);
|
||||||
} catch (JpaSystemException jse) {
|
} catch (JpaSystemException jse) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user