Update Controller

Clean code
This commit is contained in:
Salman Manoe 2024-12-24 09:59:04 +07:00
parent f2cbdb411a
commit a5edc64e0e
409 changed files with 3146 additions and 4594 deletions

View File

@ -293,6 +293,14 @@
<version>2.9.9</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${project.lombok.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>jasamedika-web</finalName>

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AdmisiRencanaPindahRuanganService;
import com.jasamedika.medifirst2000.vo.AdmisiRencanaPindahRuanganVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,11 +32,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/admisi-rencana-pasien")
public class AdmisiRencanaPindahRuanganController extends LocaleController<AdmisiRencanaPindahRuanganVO> {
private static final Logger LOGGER = getLogger(AdmisiRencanaPindahRuanganController.class);
@Autowired
private AdmisiRencanaPindahRuanganService service;
private static final Logger LOGGER = LoggerFactory.getLogger(AdmisiRencanaPindahRuanganController.class);
@RequestMapping(value = "/save-admisi-rencana", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveAdmisiRencana(@Valid @RequestBody AdmisiRencanaPindahRuanganVO vo,
HttpServletRequest request) {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AdvokasiHukumMedicolegalService;
import com.jasamedika.medifirst2000.vo.UsulanEvaluasiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/advokasi-hukum-medicolegal")
public class AdvokasiHukumMedicolegalController extends LocaleController<UsulanEvaluasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(AdvokasiHukumMedicolegalController.class);
private static final Logger LOGGER = getLogger(AdvokasiHukumMedicolegalController.class);
@Autowired
private AdvokasiHukumMedicolegalService advokasiHukumMedicolegalService;

View File

@ -9,7 +9,6 @@ import com.jasamedika.medifirst2000.util.rest.RestUtil;
import com.jasamedika.medifirst2000.vo.AgamaVO;
import com.jasamedika.medifirst2000.vo.PasienVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -27,6 +26,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -36,11 +36,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/agama")
public class AgamaController extends LocaleController<AgamaVO> {
private static final Logger LOGGER = getLogger(AgamaController.class);
@Autowired
private AgamaService<Agama> agamaService;
private static final Logger LOGGER = LoggerFactory.getLogger(AgamaController.class);
@RequestMapping(value = "/save-agama/", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<String> addVO(@Valid @RequestBody AgamaVO vo, HttpServletRequest request) {
try {

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AlatService;
import com.jasamedika.medifirst2000.vo.AlatVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,11 +34,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/alat")
public class AlatController extends LocaleController<AlatVO> {
private static final Logger LOGGER = getLogger(AlatController.class);
@Autowired
private AlatService<Alat> alatService;
private static final Logger LOGGER = LoggerFactory.getLogger(AlatController.class);
@RequestMapping(value = "/find-all-alat/", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> getAllVO(HttpServletRequest request) {
try {

View File

@ -7,12 +7,14 @@ import com.jasamedika.medifirst2000.service.AnamnesisService;
import com.jasamedika.medifirst2000.vo.AnamnesisVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
@ -23,6 +25,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -37,11 +40,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/anamnesis")
public class AnamnesisController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = getLogger(AnamnesisController.class);
@Autowired
private AnamnesisService service;
private static final Logger LOGGER = LoggerFactory.getLogger(AnamnesisController.class);
@RequestMapping(value = "/save-anamnesis", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveAnamnesis(@Valid @RequestBody AnamnesisVO vo,
HttpServletRequest request) {

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.service.DetailAnggaranService;
import com.jasamedika.medifirst2000.vo.HeadAnggaranVO;
import com.jasamedika.medifirst2000.vo.VerifikasiSpekAnggaranVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,14 +33,14 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/anggaran")
public class AnggaranController extends LocaleController<HeadAnggaranVO> {
private static final Logger LOGGER = getLogger(AnggaranController.class);
@Autowired
private AnggaranService service;
@Autowired
private DetailAnggaranService detailAnggaranService;
private static final Logger LOGGER = LoggerFactory.getLogger(AnggaranController.class);
@RequestMapping(value = "/grid-detail-anggaran")
@ResponseBody
public Map<String, Object> andCondition(

View File

@ -1,27 +1,24 @@
package com.jasamedika.medifirst2000.controller;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.http.HttpStatus;
import java.util.Collections;
import java.util.List;
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class ApiError {
private HttpStatus status;
private String message;
private List<String> errors;
public ApiError() {
super();
}
public ApiError(final HttpStatus status, final String message, final List<String> errors) {
super();
this.status = status;
this.message = message;
this.errors = errors;
}
public ApiError(final HttpStatus status, final String message, final String error) {
super();
this.status = status;
@ -29,31 +26,7 @@ public class ApiError {
errors = Collections.singletonList(error);
}
public HttpStatus getStatus() {
return status;
}
public void setStatus(final HttpStatus status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(final String message) {
this.message = message;
}
public List<String> getErrors() {
return errors;
}
public void setErrors(final List<String> errors) {
this.errors = errors;
}
public void setError(final String error) {
public void setError(final String error) {
errors = Collections.singletonList(error);
}

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.ApresiasiAtasLayananService;
import com.jasamedika.medifirst2000.vo.ApresiasiAtasLayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,11 +33,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/apresiasi-atas-layanan")
public class ApresiasiAtasLayananController extends LocaleController<ApresiasiAtasLayananVO> {
private static final Logger LOGGER = getLogger(ApresiasiAtasLayananController.class);
@Autowired
private ApresiasiAtasLayananService apresiasiAtasLayananService;
private static final Logger LOGGER = LoggerFactory.getLogger(ApresiasiAtasLayananController.class);
@RequestMapping(value = "/save-apresiasi-atas-layanan/", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> addVO(@Valid @RequestBody ApresiasiAtasLayananVO vo,
HttpServletRequest request) {

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.AsesmenGiziAwalService;
import com.jasamedika.medifirst2000.vo.AsesmenGiziAwalVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -36,11 +36,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/asesmen-gizi-awal")
public class AsesmenGiziAwalController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = getLogger(AsesmenGiziAwalController.class);
@Autowired
private AsesmenGiziAwalService asesmenGiziAwalService;
private static final Logger LOGGER = LoggerFactory.getLogger(AsesmenGiziAwalController.class);
@RequestMapping(value = "/save-asesmen-gizi-awal", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveAsesmenGiziAwal(@Valid @RequestBody AsesmenGiziAwalVO vo,
HttpServletRequest request) {

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.AsesmenGiziLanjutService;
import com.jasamedika.medifirst2000.vo.AsesmenGiziLanjutVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -31,11 +31,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/asesmen-gizi-lanjut")
public class AsesmenGiziLanjutController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = getLogger(AsesmenGiziLanjutController.class);
@Autowired
private AsesmenGiziLanjutService asesmenGiziLanjutService;
private static final Logger LOGGER = LoggerFactory.getLogger(AsesmenGiziLanjutController.class);
@RequestMapping(value = "/save-asesmen-gizi-lanjut", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveAsesmenGiziLanjut(@Valid @RequestBody AsesmenGiziLanjutVO vo,
HttpServletRequest request) {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AsuhanKeperawatanPeriOperatifService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperatifVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -20,6 +19,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -28,7 +28,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/asuhan-keperawatan-master")
public class AsuhanKeperawatanPeriOperasiController extends LocaleController<AsuhanKeperawatanPeriOperatifVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(AsuhanKeperawatanPeriOperasiController.class);
private static final Logger LOGGER = getLogger(AsuhanKeperawatanPeriOperasiController.class);
@Autowired
private AsuhanKeperawatanPeriOperatifService asuhanKeperawatanPeriOperatifService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AsuhanKeperawatanPeriOperasiHeaderService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
public class AsuhanKeperawatanPeriOperasiHeaderController
extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(AsuhanKeperawatanPeriOperasiHeaderController.class);
private static final Logger LOGGER = getLogger(AsuhanKeperawatanPeriOperasiHeaderController.class);
@Autowired
private AsuhanKeperawatanPeriOperasiHeaderService asuhanKeperawatanPeriOperasiHeaderService;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.service.BridgingBpjs;
import com.jasamedika.medifirst2000.service.PemakaianAsuransiService;
import com.jasamedika.medifirst2000.vo.PemakaianAsuransiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -31,6 +30,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -40,17 +40,14 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/asuransi")
public class AsuransiController extends LocaleController<PemakaianAsuransiVO> {
private static final Logger LOGGER = getLogger(AsuransiController.class);
@Autowired
private BridgingBpjs bridgingBpjs;
@Autowired
private PemakaianAsuransiService pemakaianAsuransiService;
public AsuransiController() {
}
private static final Logger LOGGER = LoggerFactory.getLogger(AsuransiController.class);
@RequestMapping(value = "/save-pemakaian-asuransi", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> savePemakaianAsuransi(@Valid @RequestBody PemakaianAsuransiVO vo,
HttpServletRequest request) throws ParseException {

View File

@ -16,7 +16,6 @@ import com.jasamedika.medifirst2000.util.rest.RestUtil;
import com.jasamedika.medifirst2000.vo.LoginUserVO;
import com.jasamedika.medifirst2000.vo.custom.AuthVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@ -32,6 +31,8 @@ import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import static org.slf4j.LoggerFactory.getLogger;
/**
* Controller class for Authenticate Business
*
@ -41,7 +42,7 @@ import java.util.Map;
@RequestMapping("/auth")
public class AuthenticateController {
private static final Logger LOGGER = LoggerFactory.getLogger(AuthenticateController.class);
private static final Logger LOGGER = getLogger(AuthenticateController.class);
protected Map<String, String> mapHeaderMessage = new HashMap<>();

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.B3RuanganInputDataService;
import com.jasamedika.medifirst2000.vo.B3RuanganInputDataVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,11 +32,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/b3-Ruangan-Input-Data")
public class B3RuanganInputDataController extends LocaleController<B3RuanganInputDataVO> {
private static final Logger LOGGER = getLogger(B3RuanganInputDataController.class);
@Autowired
private B3RuanganInputDataService service;
private static final Logger LOGGER = LoggerFactory.getLogger(B3RuanganInputDataController.class);
@RequestMapping(value = "/get-login-petugas", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> getLoginUser(HttpServletRequest request) {
try {

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.BakuMutuService;
import com.jasamedika.medifirst2000.vo.BakuMutuVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,11 +33,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/baku-mutu")
public class BakuMutuController extends LocaleController<BakuMutuVO> {
private static final Logger LOGGER = getLogger(BakuMutuController.class);
@Autowired
private BakuMutuService<BakuMutu> bakuMutuService;
private static final Logger LOGGER = LoggerFactory.getLogger(BakuMutuController.class);
@RequestMapping(value = "/save-baku-mutu/", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> addVO(@Valid @RequestBody BakuMutuVO vo, HttpServletRequest request) {
try {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.BatalRegistrasiService;
import com.jasamedika.medifirst2000.vo.BatalRegistrasiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@ -26,6 +25,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -35,11 +35,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/batalRegistrasi")
public class BatalRegistrasiController extends LocaleController<BatalRegistrasiVO> {
private static final Logger LOGGER = getLogger(BatalRegistrasiController.class);
@Autowired
private BatalRegistrasiService batalRegistrasiService;
private static final Logger LOGGER = LoggerFactory.getLogger(BatalRegistrasiController.class);
@RequestMapping(value = "/save-pembatalan-registrasi", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> savePembatalanRegistrasi(@Valid @RequestBody BatalRegistrasiVO vo,
HttpServletRequest request) {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.BentukProdukService;
import com.jasamedika.medifirst2000.vo.BentukProdukVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -31,11 +31,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping(value = "/bentuk-produk")
public class BentukProdukController extends LocaleController<BentukProdukVO> {
private static final Logger LOGGER = getLogger(BentukProdukController.class);
@Autowired
private BentukProdukService bentukProdukService;
private static final Logger LOGGER = LoggerFactory.getLogger(BentukProdukController.class);
@RequestMapping(value = "/save/", method = POST, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> save(@Valid @RequestBody BentukProdukVO vo, HttpServletRequest request) {
try {

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity;
@ -29,6 +28,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -38,11 +38,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/bobot-indikator")
public class BobotIndikatorController extends LocaleController<BobotIndikatorVO> {
private static final Logger LOGGER = getLogger(BobotIndikatorController.class);
@Autowired
private BobotIndikatorService bobotService;
private static final Logger LOGGER = LoggerFactory.getLogger(BobotIndikatorController.class);
@RequestMapping(value = "/find-all/", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Collection<PasienVO>> findAll(
@RequestParam(value = "page", required = false, defaultValue = "0") Integer page,

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.service.CekListGedungBangunanHeaderService;
import com.jasamedika.medifirst2000.service.CekListGedungBangunanService;
import com.jasamedika.medifirst2000.vo.CekListGedungBangunanHeaderVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@ -27,6 +26,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -36,7 +36,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ceklistgedungbangunan")
public class CekListGedungBangunanController extends LocaleController<BaseModelVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CekListGedungBangunanController.class);
private static final Logger LOGGER = getLogger(CekListGedungBangunanController.class);
@Autowired
private CekListGedungBangunanService cekListGedungBangunanService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CetakPengantarSuratService;
import com.jasamedika.medifirst2000.vo.CetakPengantarSuratVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/pengantar-surat")
public class CetakPengantarSuratController extends LocaleController<CetakPengantarSuratVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CetakPengantarSuratController.class);
private static final Logger LOGGER = getLogger(CetakPengantarSuratController.class);
@Autowired
private CetakPengantarSuratService pengantarSuratService;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CheckInService;
import com.jasamedika.medifirst2000.vo.CheckInVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -35,7 +35,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CheckInController extends LocaleController<CheckInVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CheckInController.class);
private static final Logger LOGGER = getLogger(CheckInController.class);
@Autowired
private CheckInService<CheckIn> checkInService;

View File

@ -9,7 +9,6 @@ import com.jasamedika.medifirst2000.vo.CssdBmhpHeaderVO;
import com.jasamedika.medifirst2000.vo.CssdBmhpVO;
import com.jasamedika.medifirst2000.vo.CssdProduksiBmhpHeaderVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-bmhp")
public class CssdBmhpController extends LocaleController<CssdBmhpVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdBmhpController.class);
private static final Logger LOGGER = getLogger(CssdBmhpController.class);
@Autowired
private CssdBmhpService cssdBmhpService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdDecontaminasiService;
import com.jasamedika.medifirst2000.vo.CssdDecontaminasiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-decontaminasi")
public class CssdDecontaminasiController extends LocaleController<CssdDecontaminasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdDecontaminasiController.class);
private static final Logger LOGGER = getLogger(CssdDecontaminasiController.class);
@Autowired
private CssdDecontaminasiService cssdDecontaminasiService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdDistribusiService;
import com.jasamedika.medifirst2000.vo.CssdDistribusiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -22,6 +24,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -31,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-distribusi")
public class CssdDistribusiController extends LocaleController<CssdDistribusiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdDistribusiController.class);
private static final Logger LOGGER = getLogger(CssdDistribusiController.class);
@Autowired
private CssdDistribusiService cssdDistribusiService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdMonitoringEoService;
import com.jasamedika.medifirst2000.vo.CssdMonitoringEoVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-monitoring-eo")
public class CssdMonitoringEoController extends LocaleController<CssdMonitoringEoVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdMonitoringEoController.class);
private static final Logger LOGGER = getLogger(CssdMonitoringEoController.class);
@Autowired
private CssdMonitoringEoService cssdMonitoringEoService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdMonitoringSteamService;
import com.jasamedika.medifirst2000.vo.CssdMonitoringSteamVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-monitoring-steam")
public class CssdMonitoringSteamController extends LocaleController<CssdMonitoringSteamVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdMonitoringSteamController.class);
private static final Logger LOGGER = getLogger(CssdMonitoringSteamController.class);
@Autowired
private CssdMonitoringSteamService cssdMonitoringSteamService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdPengemasanService;
import com.jasamedika.medifirst2000.vo.CssdPengemasanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-pengemasan")
public class CssdPengemasanController extends LocaleController<CssdPengemasanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdPengemasanController.class);
private static final Logger LOGGER = getLogger(CssdPengemasanController.class);
@Autowired
private CssdPengemasanService cssdPengemasanService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdPenyimpananService;
import com.jasamedika.medifirst2000.vo.CssdPenyimpananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-penyimpanan")
public class CssdPenyimpananController extends LocaleController<CssdPenyimpananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdPenyimpananController.class);
private static final Logger LOGGER = getLogger(CssdPenyimpananController.class);
@Autowired
private CssdPenyimpananService cssdPenyimpananService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.CssdReturService;
import com.jasamedika.medifirst2000.vo.ReturCssdVO;
import com.jasamedika.medifirst2000.vo.StrukPelayananDetailVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -21,6 +20,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/retur-cssd")
public class CssdReturController extends LocaleController<StrukPelayananDetailVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdReturController.class);
private static final Logger LOGGER = getLogger(CssdReturController.class);
@Autowired
private CssdReturService cssdReturService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdSterilService;
import com.jasamedika.medifirst2000.vo.CssdSterilVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-steril")
public class CssdSterilController extends LocaleController<CssdSterilVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdSterilController.class);
private static final Logger LOGGER = getLogger(CssdSterilController.class);
@Autowired
private CssdSterilService cssdSterilService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdSterilisasiService;
import com.jasamedika.medifirst2000.vo.CssdSterilisasiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-sterilisasi")
public class CssdSterilisasiController extends LocaleController<CssdSterilisasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdSterilisasiController.class);
private static final Logger LOGGER = getLogger(CssdSterilisasiController.class);
@Autowired
private CssdSterilisasiService cssdSterilisasiService;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.CssdUjiSwapService;
import com.jasamedika.medifirst2000.vo.CssdUjiSwapVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/cssd-uji-swap")
public class CssdUjiSwapController extends LocaleController<CssdUjiSwapVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdUjiSwapController.class);
private static final Logger LOGGER = getLogger(CssdUjiSwapController.class);
@Autowired
private CssdUjiSwapService cssdUjiSwapService;

View File

@ -1,13 +1,6 @@
package com.jasamedika.medifirst2000.controller;
import java.util.ArrayList;
import java.util.List;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import org.springframework.beans.TypeMismatchException;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
@ -26,145 +19,122 @@ import org.springframework.web.multipart.support.MissingServletRequestPartExcept
import org.springframework.web.servlet.NoHandlerFoundException;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.util.ArrayList;
import java.util.List;
import static org.springframework.http.HttpStatus.*;
@ControllerAdvice
@Order(2) // Kedua masuk
@Order(2)
public class CustomRestExceptionHandler extends ResponseEntityExceptionHandler {
@Override
protected ResponseEntity<Object> handleMethodArgumentNotValid(final MethodArgumentNotValidException ex,
final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
@Override
protected ResponseEntity<Object> handleMethodArgumentNotValid(final MethodArgumentNotValidException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final List<String> errors = new ArrayList<String>();
for (final FieldError error : ex.getBindingResult().getFieldErrors()) {
errors.add(error.getField() + ": " + error.getDefaultMessage());
}
for (final ObjectError error : ex.getBindingResult().getGlobalErrors()) {
errors.add(error.getObjectName() + ": " + error.getDefaultMessage());
}
// Alter Syamsu agar lebih jelas penyebab Value Object gagal diconvert dari Json Object
errors.add( ex.getMessage());
// Alter Syamsu agar lebih jelas penyebab Value Object gagal diconvert dari Json Object
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), errors);
return handleExceptionInternal(ex, apiError, headers, apiError.getStatus(), request);
}
final List<String> errors = new ArrayList<>();
for (final FieldError error : ex.getBindingResult().getFieldErrors())
errors.add(error.getField() + ": " + error.getDefaultMessage());
for (final ObjectError error : ex.getBindingResult().getGlobalErrors())
errors.add(error.getObjectName() + ": " + error.getDefaultMessage());
errors.add(ex.getMessage());
final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), errors);
return handleExceptionInternal(ex, apiError, headers, apiError.getStatus(), request);
}
@Override
protected ResponseEntity<Object> handleBindException(final BindException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final List<String> errors = new ArrayList<String>();
for (final FieldError error : ex.getBindingResult().getFieldErrors()) {
errors.add(error.getField() + ": " + error.getDefaultMessage());
}
for (final ObjectError error : ex.getBindingResult().getGlobalErrors()) {
errors.add(error.getObjectName() + ": " + error.getDefaultMessage());
}
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), errors);
return handleExceptionInternal(ex, apiError, headers, apiError.getStatus(), request);
}
@Override
protected ResponseEntity<Object> handleBindException(final BindException ex, final HttpHeaders headers,
final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
@Override
protected ResponseEntity<Object> handleTypeMismatch(final TypeMismatchException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final String error = ex.getValue() + " value for " + ex.getPropertyName() + " should be of type " + ex.getRequiredType()
// Alter Syamsu agar lebih jelas penyebab Value Object gagal diconvert dari Json Object
+ " " + ex.getMessage();
// Alter Syamsu agar lebih jelas penyebab Value Object gagal diconvert dari Json Object
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), error);
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
final List<String> errors = new ArrayList<>();
for (final FieldError error : ex.getBindingResult().getFieldErrors())
errors.add(error.getField() + ": " + error.getDefaultMessage());
for (final ObjectError error : ex.getBindingResult().getGlobalErrors())
errors.add(error.getObjectName() + ": " + error.getDefaultMessage());
final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), errors);
return handleExceptionInternal(ex, apiError, headers, apiError.getStatus(), request);
}
@Override
protected ResponseEntity<Object> handleMissingServletRequestPart(final MissingServletRequestPartException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final String error = ex.getRequestPartName() + " part is missing";
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), error);
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
@Override
protected ResponseEntity<Object> handleTypeMismatch(final TypeMismatchException ex, final HttpHeaders headers,
final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
@Override
protected ResponseEntity<Object> handleMissingServletRequestParameter(final MissingServletRequestParameterException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final String error = ex.getParameterName() + " parameter is missing";
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), error);
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
final String error = ex.getValue() + " value for " + ex.getPropertyName() + " should be of type "
+ ex.getRequiredType() + " " + ex.getMessage();
final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), error);
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
@Override
protected ResponseEntity<Object> handleMissingServletRequestPart(final MissingServletRequestPartException ex,
final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
@ExceptionHandler({ ConstraintViolationException.class })
public ResponseEntity<Object> handleConstraintViolation(final ConstraintViolationException ex, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final List<String> errors = new ArrayList<String>();
for (final ConstraintViolation<?> violation : ex.getConstraintViolations()) {
errors.add(violation.getRootBeanClass().getName() + " " + violation.getPropertyPath() + ": " + violation.getMessage());
}
final String error = ex.getRequestPartName() + " part is missing";
final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), error);
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), errors);
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
@Override
protected ResponseEntity<Object> handleMissingServletRequestParameter(
final MissingServletRequestParameterException ex, final HttpHeaders headers, final HttpStatus status,
final WebRequest request) {
logger.info(ex.getClass().getName());
// 404
final String error = ex.getParameterName() + " parameter is missing";
final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), error);
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
@Override
protected ResponseEntity<Object> handleNoHandlerFoundException(final NoHandlerFoundException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final String error = "No handler found for " + ex.getHttpMethod() + " " + ex.getRequestURL();
@ExceptionHandler({ ConstraintViolationException.class })
public ResponseEntity<Object> handleConstraintViolation(final ConstraintViolationException ex) {
logger.info(ex.getClass().getName());
final ApiError apiError = new ApiError(HttpStatus.NOT_FOUND, ex.getLocalizedMessage(), error);
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
final List<String> errors = new ArrayList<>();
for (final ConstraintViolation<?> violation : ex.getConstraintViolations())
errors.add(violation.getRootBeanClass().getName() + " " + violation.getPropertyPath() + ": "
+ violation.getMessage());
final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), errors);
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
// 405
@Override
protected ResponseEntity<Object> handleNoHandlerFoundException(final NoHandlerFoundException ex,
final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
@Override
protected ResponseEntity<Object> handleHttpRequestMethodNotSupported(final HttpRequestMethodNotSupportedException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final StringBuilder builder = new StringBuilder();
builder.append(ex.getMethod());
builder.append(" method is not supported for this request. Supported methods are ");
//ex.getSupportedHttpMethods().forEach(t -> builder.append(t + " "));
final String error = "No handler found for " + ex.getHttpMethod() + " " + ex.getRequestURL();
final ApiError apiError = new ApiError(NOT_FOUND, ex.getLocalizedMessage(), error);
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
final ApiError apiError = new ApiError(HttpStatus.METHOD_NOT_ALLOWED, ex.getLocalizedMessage(), builder.toString());
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
@Override
protected ResponseEntity<Object> handleHttpRequestMethodNotSupported(
final HttpRequestMethodNotSupportedException ex, final HttpHeaders headers, final HttpStatus status,
final WebRequest request) {
logger.info(ex.getClass().getName());
// 415
String builder = ex.getMethod() + " method is not supported for this request. Supported methods are ";
final ApiError apiError = new ApiError(METHOD_NOT_ALLOWED, ex.getLocalizedMessage(), builder);
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
@Override
protected ResponseEntity<Object> handleHttpMediaTypeNotSupported(final HttpMediaTypeNotSupportedException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
//
final StringBuilder builder = new StringBuilder();
builder.append(ex.getContentType());
builder.append(" media type is not supported. Supported media types are ");
//ex.getSupportedMediaTypes().forEach(t -> builder.append(t + " "));
@Override
protected ResponseEntity<Object> handleHttpMediaTypeNotSupported(final HttpMediaTypeNotSupportedException ex,
final HttpHeaders headers, final HttpStatus status, final WebRequest request) {
logger.info(ex.getClass().getName());
final ApiError apiError = new ApiError(HttpStatus.UNSUPPORTED_MEDIA_TYPE, ex.getLocalizedMessage(), builder.substring(0, builder.length() - 2));
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
final StringBuilder builder = new StringBuilder();
builder.append(ex.getContentType());
builder.append(" media type is not supported. Supported media types are ");
final ApiError apiError = new ApiError(UNSUPPORTED_MEDIA_TYPE, ex.getLocalizedMessage(),
builder.substring(0, builder.length() - 2));
return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
}
/*
@ExceptionHandler({ Exception.class })
public ResponseEntity<Object> handleAll(final Exception ex, final WebRequest request) {
final StringBuilder builder = new StringBuilder();
builder.append(ex.toString());
//
final ApiError apiError = new ApiError(HttpStatus.INTERNAL_SERVER_ERROR, ex.getLocalizedMessage(), builder.toString());
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus());
}
*/
}

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.UnitCostService;
import com.jasamedika.medifirst2000.vo.UnitCostVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -21,6 +20,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -28,7 +28,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/unit-cost")
public class DaftarKegiatanController extends LocaleController<UnitCostVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarKegiatanController.class);
private static final Logger LOGGER = getLogger(DaftarKegiatanController.class);
@Autowired
private UnitCostService<UnitCostVO> unitCostService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarKendaraanDinasService;
import com.jasamedika.medifirst2000.vo.OrderKendaraanDinasVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/daftar-kendaraan-dinas")
public class DaftarKendaraanDinasController extends LocaleController<OrderKendaraanDinasVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarKendaraanDinasController.class);
private static final Logger LOGGER = getLogger(DaftarKendaraanDinasController.class);
@Autowired
private DaftarKendaraanDinasService daftarKendaraanDinasService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarOrderAmbulanceService;
import com.jasamedika.medifirst2000.vo.OrderPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/daftar-order-ambulance")
public class DaftarOrderAmbulanceController extends LocaleController<OrderPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarOrderAmbulanceController.class);
private static final Logger LOGGER = getLogger(DaftarOrderAmbulanceController.class);
@Autowired
private DaftarOrderAmbulanceService daftarOrderAmbulanceService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarOrderPemakaianRuangRapatService;
import com.jasamedika.medifirst2000.vo.OrderPemakaianRuangRapatVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/daftar-order-pemakaian-ruang-rapat")
public class DaftarOrderPemakaianRuangRapatController extends LocaleController<OrderPemakaianRuangRapatVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarOrderPemakaianRuangRapatController.class);
private static final Logger LOGGER = getLogger(DaftarOrderPemakaianRuangRapatController.class);
@Autowired
private DaftarOrderPemakaianRuangRapatService daftarOrderPemakaianRuangRapatService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarPemakaianRumahDukaService;
import com.jasamedika.medifirst2000.vo.PemakaianRumahDukaVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/daftar-pemakaian-rumah-duka")
public class DaftarPemakaianRumahDukaController extends LocaleController<PemakaianRumahDukaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPemakaianRumahDukaController.class);
private static final Logger LOGGER = getLogger(DaftarPemakaianRumahDukaController.class);
@Autowired
private DaftarPemakaianRumahDukaService daftarPemakaianRumahDukaService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarPemulasaraanJenazahService;
import com.jasamedika.medifirst2000.vo.OrderPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/daftar-pemulasaraan-jenazah")
public class DaftarPemulasaraanJenazahController extends LocaleController<OrderPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPemulasaraanJenazahController.class);
private static final Logger LOGGER = getLogger(DaftarPemulasaraanJenazahController.class);
@Autowired
private DaftarPemulasaraanJenazahService daftarPemulasaraanJenazahService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.DaftarPenerimaanService;
import com.jasamedika.medifirst2000.vo.MappingKirimDokumenPasienVO;
import com.jasamedika.medifirst2000.vo.StrukBuktiPenerimaanCaraBayarVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/daftar-penerimaan")
public class DaftarPenerimaanController extends LocaleController<StrukBuktiPenerimaanCaraBayarVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPenerimaanController.class);
private static final Logger LOGGER = getLogger(DaftarPenerimaanController.class);
@Autowired
private DaftarPenerimaanService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarPesanAmbulanceService;
import com.jasamedika.medifirst2000.vo.OrderAmbulanceVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -31,7 +31,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/daftar-pesan-ambulance")
public class DaftarPesanAmbulanceController extends LocaleController<OrderAmbulanceVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPesanAmbulanceController.class);
private static final Logger LOGGER = getLogger(DaftarPesanAmbulanceController.class);
@Autowired
private DaftarPesanAmbulanceService daftarPesanAmbulanceService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarSewaAsramaService;
import com.jasamedika.medifirst2000.vo.SewaAsramaVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/daftar-sewa-asrama")
public class DaftarSewaAsramaController extends LocaleController<SewaAsramaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarSewaAsramaController.class);
private static final Logger LOGGER = getLogger(DaftarSewaAsramaController.class);
@Autowired
private DaftarSewaAsramaService daftarSewaAsramaService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DaftarSewaLahanService;
import com.jasamedika.medifirst2000.vo.SewaLahanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/daftar-sewa-lahan")
public class DaftarSewaLahanController extends LocaleController<SewaLahanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarSewaLahanController.class);
private static final Logger LOGGER = getLogger(DaftarSewaLahanController.class);
@Autowired
private DaftarSewaLahanService daftarSewaLahanService;

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity;
@ -29,6 +28,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -38,7 +38,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/dampak-resiko")
public class DampakResikoController extends LocaleController<DampakResikoVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DampakResikoController.class);
private static final Logger LOGGER = getLogger(DampakResikoController.class);
@Autowired
private DampakResikoService dampakResikoService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DataPerusahaanYangBekerjaSamaService;
import com.jasamedika.medifirst2000.vo.DataPerusahaanYangBekerjaSamaVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/data-perusahaan-yang-bekerjasama")
public class DataPerusahaanYangBekerjaSamaController extends LocaleController<DataPerusahaanYangBekerjaSamaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DataPerusahaanYangBekerjaSamaController.class);
private static final Logger LOGGER = getLogger(DataPerusahaanYangBekerjaSamaController.class);
@Autowired
private DataPerusahaanYangBekerjaSamaService dataPerusahaanYangBekerjaSamaService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DataPesertaPerusahanYangBekerjaSamaService;
import com.jasamedika.medifirst2000.vo.DataPesertaPerusahanYangBekerjaSamaVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
public class DataPesertaPerusahanYangBekerjaSamaController
extends LocaleController<DataPesertaPerusahanYangBekerjaSamaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DataPesertaPerusahanYangBekerjaSamaController.class);
private static final Logger LOGGER = getLogger(DataPesertaPerusahanYangBekerjaSamaController.class);
@Autowired
private DataPesertaPerusahanYangBekerjaSamaService service;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.DepartemenService;
import com.jasamedika.medifirst2000.vo.DepartemenVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/departemen")
public class DepartemenController extends LocaleController<DepartemenVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DepartemenController.class);
private static final Logger LOGGER = getLogger(DepartemenController.class);
@Autowired
private DepartemenService<Departemen> departemenService;

View File

@ -7,11 +7,13 @@ import com.jasamedika.medifirst2000.service.DetailRupService;
import com.jasamedika.medifirst2000.vo.DetailRupCustomVO;
import com.jasamedika.medifirst2000.vo.HeadAnggaranVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/detail-rup")
public class DetailRupController extends LocaleController<HeadAnggaranVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DetailRupController.class);
private static final Logger LOGGER = getLogger(DetailRupController.class);
@Autowired
private DetailRupService service;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.service.DiagnosaKeperawatanTransaksiService;
import com.jasamedika.medifirst2000.vo.DiagnosaKeperawatanTransaksiVO;
import com.jasamedika.medifirst2000.vo.DiagnosaKeperawatanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -31,7 +31,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/diagnosa-keperawatan")
public class DiagnosaKeperawatanTransaksiController extends LocaleController<DiagnosaKeperawatanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DiagnosaKeperawatanTransaksiController.class);
private static final Logger LOGGER = getLogger(DiagnosaKeperawatanTransaksiController.class);
@Autowired
private DiagnosaKeperawatanTransaksiService service;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.DiagnosaPasienService;
import com.jasamedika.medifirst2000.vo.DiagnosaPasienVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -39,7 +39,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/diagnosa-pasien")
public class DiagnosaPasienController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DiagnosaPasienController.class);
private static final Logger LOGGER = getLogger(DiagnosaPasienController.class);
@Autowired
private DiagnosaPasienService diagnosaPasienService;

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.service.DiagnosaTindakanPasienService;
import com.jasamedika.medifirst2000.vo.DiagnosaTindakanPasienVO;
import com.jasamedika.medifirst2000.vo.PegawaiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -32,6 +31,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.security.service.TokenAuthenticationService.tokenHandler;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -46,7 +46,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/diagnosa-tindakan-pasien")
public class DiagnosaTindakanPasienController extends LocaleController<DiagnosaTindakanPasienVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DiagnosaTindakanPasienController.class);
private static final Logger LOGGER = getLogger(DiagnosaTindakanPasienController.class);
@Autowired
private LoginUserDao loginUserDao;

View File

@ -9,7 +9,6 @@ import com.jasamedika.medifirst2000.vo.DistribusiAsetVO;
import com.jasamedika.medifirst2000.vo.KonfirmasiAsetVO;
import com.jasamedika.medifirst2000.vo.PenerimaanBarangVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -28,6 +27,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static java.net.URLDecoder.decode;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -37,7 +37,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/distribusi-aset")
public class DistribusiAsetController extends LocaleController<PenerimaanBarangVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DistribusiAsetController.class);
private static final Logger LOGGER = getLogger(DistribusiAsetController.class);
@Autowired
private DistribusiAsetService distribusiAsetService;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.vo.DokumenInternalVO;
import com.jasamedika.medifirst2000.vo.PasienVO;
import com.jasamedika.medifirst2000.vo.SuratMasukInternalVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/dokumen-internal")
public class DokumenInternalController extends LocaleController<SuratMasukInternalVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DokumenInternalController.class);
private static final Logger LOGGER = getLogger(DokumenInternalController.class);
@Autowired
private DokumenInternalService dokumenInternalService;

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.DateBetween;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity;
@ -27,6 +26,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -36,7 +36,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/draft-surat")
public class DraftSuratController extends LocaleController<DraftSuratVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DraftSuratController.class);
private static final Logger LOGGER = getLogger(DraftSuratController.class);
@Autowired
private DraftSuratService draftSuratService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.EdukasiService;
import com.jasamedika.medifirst2000.vo.EdukasiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/edukasi")
public class EdukasiController extends LocaleController<EdukasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(EdukasiController.class);
private static final Logger LOGGER = getLogger(EdukasiController.class);
@Autowired
private EdukasiService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.EkstensionNoTeleponService;
import com.jasamedika.medifirst2000.vo.EkstensionNoTeleponVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ekstension-no-telepon")
public class EkstensionNoTeleponController extends LocaleController<EkstensionNoTeleponVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(EkstensionNoTeleponController.class);
private static final Logger LOGGER = getLogger(EkstensionNoTeleponController.class);
@Autowired
private EkstensionNoTeleponService ekstensionNoTeleponService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.EvaluasiRekananService;
import com.jasamedika.medifirst2000.vo.UsulanEvaluasiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -38,7 +38,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/evaluasi-rekanan")
public class EvaluasiRekananController extends LocaleController<UsulanEvaluasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(EvaluasiRekananController.class);
private static final Logger LOGGER = getLogger(EvaluasiRekananController.class);
@Autowired
private EvaluasiRekananService evaluasiRekananService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.FasilitasMService;
import com.jasamedika.medifirst2000.vo.FasilitasMVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/fasilitas")
public class FasilitasMController extends LocaleController<FasilitasMVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(FasilitasMController.class);
private static final Logger LOGGER = getLogger(FasilitasMController.class);
@Autowired
private FasilitasMService fasilitasMService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.dao.custom.PelayananPasienDaoCustom;
import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.vo.PelayananPasienVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,13 +21,14 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS_OK;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
@RestController
@RequestMapping("/fee-for-service")
public class FeeForServiceController extends LocaleController<PelayananPasienVO> {
private static final Logger LOG = LoggerFactory.getLogger(FeeForServiceController.class);
private static final Logger LOG = getLogger(FeeForServiceController.class);
@Autowired
private PelayananPasienDaoCustom pelayananPasienDao;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.FisisPemeriksaanDokterService;
import com.jasamedika.medifirst2000.vo.FisisPemeriksaanDokterVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -39,7 +39,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@JsonIgnoreProperties(ignoreUnknown = true)
public class FisisPemeriksaanDokterController extends LocaleController<FisisPemeriksaanDokterVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(FisisPemeriksaanDokterController.class);
private static final Logger LOGGER = getLogger(FisisPemeriksaanDokterController.class);
@Autowired
private FisisPemeriksaanDokterService<FisisPemeriksaanDokter> fisisPemeriksaanDokterService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.GajiPegawaiService;
import com.jasamedika.medifirst2000.vo.PegawaiHistoriRekapGajiVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -21,6 +20,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/gaji-pegawai")
public class GajiPegawaiController extends LocaleController<PegawaiHistoriRekapGajiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(GajiPegawaiController.class);
private static final Logger LOGGER = getLogger(GajiPegawaiController.class);
@Autowired
private GajiPegawaiService service;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.GawatDaruratService;
import com.jasamedika.medifirst2000.vo.GawatDaruratVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/gawat-darurat")
public class GawatDaruratController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(GawatDaruratController.class);
private static final Logger LOGGER = getLogger(GawatDaruratController.class);
@Autowired
private GawatDaruratService gawatDaruratService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.security.model.AppPermission;
import com.jasamedika.medifirst2000.service.GeneratedMasterService;
import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.security.model.AppPermission.*;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/generated_master")
public class GeneratedMasterController extends LocaleController<IpsrsPemeliharaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(GeneratedMasterController.class);
private static final Logger LOGGER = getLogger(GeneratedMasterController.class);
@Autowired
private GeneratedMasterService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.HVAService;
import com.jasamedika.medifirst2000.vo.HVAVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/hva")
public class HVAController extends LocaleController<HVAVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(HVAController.class);
private static final Logger LOGGER = getLogger(HVAController.class);
@Autowired
private HVAService hvaService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.HasilPemeriksaanSwaPantauLimbahCairService;
import com.jasamedika.medifirst2000.vo.HasilPemeriksaanSwaPantauLimbahCairVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
public class HasilPemeriksaanSwaPantauLimbahCairController
extends LocaleController<HasilPemeriksaanSwaPantauLimbahCairVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(HasilPemeriksaanSwaPantauLimbahCairController.class);
private static final Logger LOGGER = getLogger(HasilPemeriksaanSwaPantauLimbahCairController.class);
@Autowired
private HasilPemeriksaanSwaPantauLimbahCairService<HasilPemeriksaanSwaPantauLimbahCair> hasilPemeriksaanSwaPantauLimbahCairService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.HistoriPelayananCsService;
import com.jasamedika.medifirst2000.vo.HistoriPelayananCsVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -20,6 +19,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -29,7 +29,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/historiPelayananCs")
public class HistoriPelayananCsController extends LocaleController<HistoriPelayananCsVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(HistoriPelayananCsController.class);
private static final Logger LOGGER = getLogger(HistoriPelayananCsController.class);
@Autowired
private HistoriPelayananCsService historiPelayananCsService;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.vo.IkiDanRemunerasiVO;
import com.jasamedika.medifirst2000.vo.SettingPirSdmVO;
import com.jasamedika.medifirst2000.vo.StrukHistoriVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/iki-remunerasi")
public class IkiDanRemunerasiController extends LocaleController<IkiDanRemunerasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IkiDanRemunerasiController.class);
private static final Logger LOGGER = getLogger(IkiDanRemunerasiController.class);
@Autowired
private IkiDanRemunerasiService service;

View File

@ -1,14 +1,15 @@
package com.jasamedika.medifirst2000.controller;
import java.util.Collection;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import com.jasamedika.medifirst2000.constants.MessageResource;
import com.jasamedika.medifirst2000.controller.base.LocaleController;
import com.jasamedika.medifirst2000.entities.IndikatorRensar;
import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IndikatorRensarService;
import com.jasamedika.medifirst2000.vo.IndikatorRensarVO;
import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications;
@ -19,20 +20,16 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.jasamedika.medifirst2000.constants.MessageResource;
import com.jasamedika.medifirst2000.controller.base.LocaleController;
import com.jasamedika.medifirst2000.entities.IndikatorRensar;
import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IndikatorRensarService;
import com.jasamedika.medifirst2000.vo.IndikatorRensarVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.Collection;
import java.util.Map;
import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR_MESSAGE;
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -42,11 +39,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/indikator-rensar")
public class IndikatorRensarController extends LocaleController<IndikatorRensarVO> {
private static final Logger LOGGER = getLogger(IndikatorRensarController.class);
@Autowired
private IndikatorRensarService indikatorRensarService;
private static final Logger LOGGER = LoggerFactory.getLogger(IndikatorRensarController.class);
@RequestMapping(value = "/find-all/", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Collection<PasienVO>> findAll(
@RequestParam(value = "page", required = false, defaultValue = "0") Integer page,

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.InstruksiService;
import com.jasamedika.medifirst2000.vo.InstruksiCustomVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,11 +33,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/instruksi")
public class InstruksiController extends LocaleController<InstruksiCustomVO> {
private static final Logger LOGGER = getLogger(InstruksiController.class);
@Autowired
private InstruksiService service;
private static final Logger LOGGER = LoggerFactory.getLogger(InstruksiController.class);
@RequestMapping(value = "/save-instruksi", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveInstruksi(@Valid @RequestBody InstruksiCustomVO vo,
HttpServletRequest request) {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IntraOperasiAnestesiService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/intra-operasi-anestesi")
public class IntraOperasiAnestesiController extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IntraOperasiAnestesiController.class);
private static final Logger LOGGER = getLogger(IntraOperasiAnestesiController.class);
@Autowired
private IntraOperasiAnestesiService intraOperasiAnestesiService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IntraOperasiPerawatBedahService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/intra-operasi-perawat-bedah")
public class IntraOperasiPerawatBedahController extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IntraOperasiPerawatBedahController.class);
private static final Logger LOGGER = getLogger(IntraOperasiPerawatBedahController.class);
@Autowired
private IntraOperasiPerawatBedahService intraOperasiPerawatBedahService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IpsrsDataAlatService;
import com.jasamedika.medifirst2000.vo.RegistrasiAsetVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -21,6 +20,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -29,7 +29,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/ipsrs-data-alat")
public class IpsrsDataAlatController extends LocaleController<RegistrasiAsetVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsDataAlatController.class);
private static final Logger LOGGER = getLogger(IpsrsDataAlatController.class);
@Autowired
private IpsrsDataAlatService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IpsrsMaintenanceService;
import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -20,6 +19,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -28,7 +28,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping("/ipsrs-maintenance")
public class IpsrsMaintenanceController extends LocaleController<IpsrsPemeliharaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsMaintenanceController.class);
private static final Logger LOGGER = getLogger(IpsrsMaintenanceController.class);
@Autowired
private IpsrsMaintenanceService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IpsrsPemakaianMesinService;
import com.jasamedika.medifirst2000.vo.IpsrsPemakaianMesinVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ipsrs-pemakaian-mesin")
public class IpsrsPemakaianMesinController extends LocaleController<IpsrsPemakaianMesinVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPemakaianMesinController.class);
private static final Logger LOGGER = getLogger(IpsrsPemakaianMesinController.class);
@Autowired
private IpsrsPemakaianMesinService service;

View File

@ -6,12 +6,14 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IpsrsPemakaianRuanganService;
import com.jasamedika.medifirst2000.vo.IpsrsPemakaianRuanganVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
@ -21,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -30,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ipsrs-pemakaian-ruangan")
public class IpsrsPemakaianRuanganController extends LocaleController<IpsrsPemakaianRuanganVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPemakaianRuanganController.class);
private static final Logger LOGGER = getLogger(IpsrsPemakaianRuanganController.class);
@Autowired
private IpsrsPemakaianRuanganService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IpsrsPeminjamanAlatService;
import com.jasamedika.medifirst2000.vo.IpsrsPeminjamanAlatVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ipsrs-peminjaman-alat")
public class IpsrsPeminjamanAlatController extends LocaleController<IpsrsPeminjamanAlatVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPeminjamanAlatController.class);
private static final Logger LOGGER = getLogger(IpsrsPeminjamanAlatController.class);
@Autowired
private IpsrsPeminjamanAlatService service;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.IpsrsPerbaikanService;
import com.jasamedika.medifirst2000.vo.IpsrsPelaksanaanPerbaikanVO;
import com.jasamedika.medifirst2000.vo.IpsrsPerbaikanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ipsrs-perbaikan")
public class IpsrsPerbaikanController extends LocaleController<IpsrsPerbaikanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPerbaikanController.class);
private static final Logger LOGGER = getLogger(IpsrsPerbaikanController.class);
@Autowired
private IpsrsPerbaikanService service;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.IpsrsPreventiveMaintenanceService;
import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO;
import com.jasamedika.medifirst2000.vo.IpsrsPreventiveMaintenanceVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ipsrs-preventive-maintenance")
public class IpsrsPreventiveMaintenanceController extends LocaleController<IpsrsPemeliharaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPreventiveMaintenanceController.class);
private static final Logger LOGGER = getLogger(IpsrsPreventiveMaintenanceController.class);
@Autowired
private IpsrsPreventiveMaintenanceService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IpsrsTagihanBusinessCenterService;
import com.jasamedika.medifirst2000.vo.IpsrsTagihanBusinessCenterVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ipsrs-tagihan-business-center")
public class IpsrsTagihanBusinessCenterController extends LocaleController<IpsrsTagihanBusinessCenterVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsTagihanBusinessCenterController.class);
private static final Logger LOGGER = getLogger(IpsrsTagihanBusinessCenterController.class);
@Autowired
private IpsrsTagihanBusinessCenterService service;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.service.ItPerbaikanService;
import com.jasamedika.medifirst2000.vo.ItPelaksanaanPerbaikanVO;
import com.jasamedika.medifirst2000.vo.ItPerbaikanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/it-perbaikan")
public class ItPerbaikanController extends LocaleController<ItPerbaikanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(ItPerbaikanController.class);
private static final Logger LOGGER = getLogger(ItPerbaikanController.class);
@Autowired
private ItPerbaikanService service;

View File

@ -6,11 +6,13 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JabatanService;
import com.jasamedika.medifirst2000.vo.JabatanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
@ -20,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -29,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jabatan")
public class JabatanController extends LocaleController<JabatanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JabatanController.class);
private static final Logger LOGGER = getLogger(JabatanController.class);
@Autowired
private JabatanService jabatanService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JadwalDokterService;
import com.jasamedika.medifirst2000.vo.JadwalDokter_VO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.util.DateUtil.toDate;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jadwalDokter")
public class JadwalDokterController extends LocaleController<JadwalDokter_VO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JadwalDokterController.class);
private static final Logger LOGGER = getLogger(JadwalDokterController.class);
@Autowired
private JadwalDokterService jadwalDokterService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JadwalDpjpRawatInapService;
import com.jasamedika.medifirst2000.vo.JadwalDpjpRawatInapVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -21,6 +20,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -29,7 +29,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jadwal-dpjp")
public class JadwalDpjpRawatInapController extends LocaleController<JadwalDpjpRawatInapVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JadwalDpjpRawatInapController.class);
private static final Logger LOGGER = getLogger(JadwalDpjpRawatInapController.class);
@Autowired
private JadwalDpjpRawatInapService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JadwalRencanaPemeriksaanService;
import com.jasamedika.medifirst2000.vo.JadwalRencanaPemeriksaanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jadwal-rencana-pemeriksaan")
public class JadwalRencanaPemeriksaanController extends LocaleController<JadwalRencanaPemeriksaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JadwalRencanaPemeriksaanController.class);
private static final Logger LOGGER = getLogger(JadwalRencanaPemeriksaanController.class);
@Autowired
private JadwalRencanaPemeriksaanService rencanaPemeriksaanService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JenisBahanService;
import com.jasamedika.medifirst2000.vo.JenisBahanVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -31,7 +31,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jenis-bahan/")
public class JenisBahanController extends LocaleController<JenisBahanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisBahanController.class);
private static final Logger LOGGER = getLogger(JenisBahanController.class);
@Autowired
private JenisBahanService jenisBahanService;

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity;
@ -29,6 +28,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -38,7 +38,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping(value = "/jenis-diet")
public class JenisDietController extends LocaleController<JenisDietVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisDietController.class);
private static final Logger LOGGER = getLogger(JenisDietController.class);
@Autowired
private JenisDietService jenisDietService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JenisLimbahB3MasukService;
import com.jasamedika.medifirst2000.vo.JenisLimbahB3MasukVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -24,6 +23,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jenis-limbah-b3-masuk")
public class JenisLimbahB3MasukController extends LocaleController<JenisLimbahB3MasukVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisLimbahB3MasukController.class);
private static final Logger LOGGER = getLogger(JenisLimbahB3MasukController.class);
@Autowired
private JenisLimbahB3MasukService<JenisLimbahB3Masuk> jenisLimbahB3MasukService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JenisLinenService;
import com.jasamedika.medifirst2000.vo.JenisLinenVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jenis-linen")
public class JenisLinenController extends LocaleController<JenisLinenVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisLinenController.class);
private static final Logger LOGGER = getLogger(JenisLinenController.class);
@Autowired
private JenisLinenService jenisLinenService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.JenisResponService;
import com.jasamedika.medifirst2000.vo.JenisResponVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -22,6 +21,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jenisRespon")
public class JenisResponController extends LocaleController<JenisResponVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisResponController.class);
private static final Logger LOGGER = getLogger(JenisResponController.class);
@Autowired
private JenisResponService service;

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity;
@ -29,6 +28,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -38,7 +38,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping(value = "/jenis-waktu")
public class JenisWaktuController extends LocaleController<JenisWaktuVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisWaktuController.class);
private static final Logger LOGGER = getLogger(JenisWaktuController.class);
@Autowired
private JenisWaktuService jenisWaktuService;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.K3CheckListFacillitySefetyService;
import com.jasamedika.medifirst2000.vo.K3CheckListFacillitySefetyVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -23,6 +22,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/k3-checklist-facillity-sefety")
public class K3CheckListFacillitySefetyController extends LocaleController<K3CheckListFacillitySefetyVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(K3CheckListFacillitySefetyController.class);
private static final Logger LOGGER = getLogger(K3CheckListFacillitySefetyController.class);
@Autowired
private K3CheckListFacillitySefetyService service;

View File

@ -9,7 +9,6 @@ import com.jasamedika.medifirst2000.vo.LkkIdentifikasiKejadianVO;
import com.jasamedika.medifirst2000.vo.LkkIdentifikasiKorbanVO;
import com.jasamedika.medifirst2000.vo.LkkSaksiKejadianVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -26,6 +25,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -35,7 +35,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/k3-laporan-kecelakaan-kerja")
public class K3LaporanKecelakaanKerjaController extends LocaleController<K3LaporanKecelakaanKerjaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(K3LaporanKecelakaanKerjaController.class);
private static final Logger LOGGER = getLogger(K3LaporanKecelakaanKerjaController.class);
@Autowired
private K3LaporanKecelakaanKerjaService service;

View File

@ -14,7 +14,6 @@ import net.kaczmarzyk.spring.data.jpa.domain.DateBetween;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications;
@ -35,6 +34,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -43,7 +43,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/kajian-evaluasi")
public class KajianEvaluasiController extends LocaleController<KajianEvaluasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KajianEvaluasiController.class);
private static final Logger LOGGER = getLogger(KajianEvaluasiController.class);
@Autowired
private KajianEvaluasiService evaluasiService;

View File

@ -10,7 +10,6 @@ import com.jasamedika.medifirst2000.vo.PasienVO;
import net.kaczmarzyk.spring.data.jpa.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications;
@ -30,6 +29,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -39,7 +39,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/kamus-indikator")
public class KamusIndikatorController extends LocaleController<KamusIndikatorVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KamusIndikatorController.class);
private static final Logger LOGGER = getLogger(KamusIndikatorController.class);
@Autowired
private KamusIndikatorService kamusIndikatorService;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.service.DetailAnggaranService;
import com.jasamedika.medifirst2000.service.KartuPengendaliService;
import com.jasamedika.medifirst2000.vo.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -29,6 +28,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -38,7 +38,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/kartu-pengendali")
public class KartuPengendaliController extends LocaleController<KartuPengendaliVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KartuPengendaliController.class);
private static final Logger LOGGER = getLogger(KartuPengendaliController.class);
@Autowired
private KartuPengendaliService service;

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.KategoryProdukService;
import com.jasamedika.medifirst2000.vo.KategoryProdukVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -20,6 +19,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -28,7 +28,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RequestMapping(value = "/kategory-produk")
public class KategoryProdukController extends LocaleController<KategoryProdukVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KategoryProdukController.class);
private static final Logger LOGGER = getLogger(KategoryProdukController.class);
@Autowired
private KategoryProdukService kategoryProdukService;

View File

@ -8,7 +8,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.KebutuhanDasarService;
import com.jasamedika.medifirst2000.vo.KebutuhanDasarVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
@ -26,6 +25,7 @@ import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -41,7 +41,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@JsonIgnoreProperties(ignoreUnknown = true)
public class KebutuhanDasarController extends LocaleController<KebutuhanDasarVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KebutuhanDasarController.class);
private static final Logger LOGGER = getLogger(KebutuhanDasarController.class);
@Autowired
private KebutuhanDasarService<KebutuhanDasar> kebutuhanDasarService;

View File

@ -7,7 +7,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.KelasService;
import com.jasamedika.medifirst2000.vo.KelasVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.http.ResponseEntity;
@ -25,6 +24,7 @@ import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR
import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/kelas")
public class KelasController extends LocaleController<KelasVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KelasController.class);
private static final Logger LOGGER = getLogger(KelasController.class);
@Autowired
private KelasService<Kelas> kelasService;

Some files were not shown because too many files have changed in this diff Show More