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> <version>2.9.9</version>
</dependency> </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> </dependencies>
<build> <build>
<finalName>jasamedika-web</finalName> <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.service.AdmisiRencanaPindahRuanganService;
import com.jasamedika.medifirst2000.vo.AdmisiRencanaPindahRuanganVO; import com.jasamedika.medifirst2000.vo.AdmisiRencanaPindahRuanganVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/admisi-rencana-pasien")
public class AdmisiRencanaPindahRuanganController extends LocaleController<AdmisiRencanaPindahRuanganVO> { public class AdmisiRencanaPindahRuanganController extends LocaleController<AdmisiRencanaPindahRuanganVO> {
private static final Logger LOGGER = getLogger(AdmisiRencanaPindahRuanganController.class);
@Autowired @Autowired
private AdmisiRencanaPindahRuanganService service; 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) @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, public ResponseEntity<Map<String, Object>> saveAdmisiRencana(@Valid @RequestBody AdmisiRencanaPindahRuanganVO vo,
HttpServletRequest request) { HttpServletRequest request) {

View File

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

View File

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

View File

@ -7,12 +7,14 @@ import com.jasamedika.medifirst2000.service.AnamnesisService;
import com.jasamedika.medifirst2000.vo.AnamnesisVO; import com.jasamedika.medifirst2000.vo.AnamnesisVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO; import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.servlet.http.HttpServletRequest;
import javax.validation.Valid; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -37,11 +40,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/anamnesis") @RequestMapping("/anamnesis")
public class AnamnesisController extends LocaleController<RegistrasiPelayananVO> { public class AnamnesisController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = getLogger(AnamnesisController.class);
@Autowired @Autowired
private AnamnesisService service; 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) @RequestMapping(value = "/save-anamnesis", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveAnamnesis(@Valid @RequestBody AnamnesisVO vo, public ResponseEntity<Map<String, Object>> saveAnamnesis(@Valid @RequestBody AnamnesisVO vo,
HttpServletRequest request) { 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.HeadAnggaranVO;
import com.jasamedika.medifirst2000.vo.VerifikasiSpekAnggaranVO; import com.jasamedika.medifirst2000.vo.VerifikasiSpekAnggaranVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,14 +33,14 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/anggaran") @RequestMapping("/anggaran")
public class AnggaranController extends LocaleController<HeadAnggaranVO> { public class AnggaranController extends LocaleController<HeadAnggaranVO> {
private static final Logger LOGGER = getLogger(AnggaranController.class);
@Autowired @Autowired
private AnggaranService service; private AnggaranService service;
@Autowired @Autowired
private DetailAnggaranService detailAnggaranService; private DetailAnggaranService detailAnggaranService;
private static final Logger LOGGER = LoggerFactory.getLogger(AnggaranController.class);
@RequestMapping(value = "/grid-detail-anggaran") @RequestMapping(value = "/grid-detail-anggaran")
@ResponseBody @ResponseBody
public Map<String, Object> andCondition( public Map<String, Object> andCondition(

View File

@ -1,27 +1,24 @@
package com.jasamedika.medifirst2000.controller; package com.jasamedika.medifirst2000.controller;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class ApiError { public class ApiError {
private HttpStatus status; private HttpStatus status;
private String message; private String message;
private List<String> errors; 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) { public ApiError(final HttpStatus status, final String message, final String error) {
super(); super();
this.status = status; this.status = status;
@ -29,31 +26,7 @@ public class ApiError {
errors = Collections.singletonList(error); errors = Collections.singletonList(error);
} }
public HttpStatus getStatus() { public void setError(final String error) {
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) {
errors = Collections.singletonList(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.service.ApresiasiAtasLayananService;
import com.jasamedika.medifirst2000.vo.ApresiasiAtasLayananVO; import com.jasamedika.medifirst2000.vo.ApresiasiAtasLayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/apresiasi-atas-layanan")
public class ApresiasiAtasLayananController extends LocaleController<ApresiasiAtasLayananVO> { public class ApresiasiAtasLayananController extends LocaleController<ApresiasiAtasLayananVO> {
private static final Logger LOGGER = getLogger(ApresiasiAtasLayananController.class);
@Autowired @Autowired
private ApresiasiAtasLayananService apresiasiAtasLayananService; 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) @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, public ResponseEntity<Map<String, Object>> addVO(@Valid @RequestBody ApresiasiAtasLayananVO vo,
HttpServletRequest request) { 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.AsesmenGiziAwalVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO; import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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") @RequestMapping("/asesmen-gizi-awal")
public class AsesmenGiziAwalController extends LocaleController<RegistrasiPelayananVO> { public class AsesmenGiziAwalController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = getLogger(AsesmenGiziAwalController.class);
@Autowired @Autowired
private AsesmenGiziAwalService asesmenGiziAwalService; 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) @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, public ResponseEntity<Map<String, Object>> saveAsesmenGiziAwal(@Valid @RequestBody AsesmenGiziAwalVO vo,
HttpServletRequest request) { 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.AsesmenGiziLanjutVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO; import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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") @RequestMapping("/asesmen-gizi-lanjut")
public class AsesmenGiziLanjutController extends LocaleController<RegistrasiPelayananVO> { public class AsesmenGiziLanjutController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = getLogger(AsesmenGiziLanjutController.class);
@Autowired @Autowired
private AsesmenGiziLanjutService asesmenGiziLanjutService; 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) @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, public ResponseEntity<Map<String, Object>> saveAsesmenGiziLanjut(@Valid @RequestBody AsesmenGiziLanjutVO vo,
HttpServletRequest request) { HttpServletRequest request) {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AsuhanKeperawatanPeriOperatifService; import com.jasamedika.medifirst2000.service.AsuhanKeperawatanPeriOperatifService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperatifVO; import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperatifVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/asuhan-keperawatan-master")
public class AsuhanKeperawatanPeriOperasiController extends LocaleController<AsuhanKeperawatanPeriOperatifVO> { public class AsuhanKeperawatanPeriOperasiController extends LocaleController<AsuhanKeperawatanPeriOperatifVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(AsuhanKeperawatanPeriOperasiController.class); private static final Logger LOGGER = getLogger(AsuhanKeperawatanPeriOperasiController.class);
@Autowired @Autowired
private AsuhanKeperawatanPeriOperatifService asuhanKeperawatanPeriOperatifService; 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.service.AsuhanKeperawatanPeriOperasiHeaderService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO; import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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 public class AsuhanKeperawatanPeriOperasiHeaderController
extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> { extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(AsuhanKeperawatanPeriOperasiHeaderController.class); private static final Logger LOGGER = getLogger(AsuhanKeperawatanPeriOperasiHeaderController.class);
@Autowired @Autowired
private AsuhanKeperawatanPeriOperasiHeaderService asuhanKeperawatanPeriOperasiHeaderService; 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.service.PemakaianAsuransiService;
import com.jasamedika.medifirst2000.vo.PemakaianAsuransiVO; import com.jasamedika.medifirst2000.vo.PemakaianAsuransiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -40,17 +40,14 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/asuransi") @RequestMapping("/asuransi")
public class AsuransiController extends LocaleController<PemakaianAsuransiVO> { public class AsuransiController extends LocaleController<PemakaianAsuransiVO> {
private static final Logger LOGGER = getLogger(AsuransiController.class);
@Autowired @Autowired
private BridgingBpjs bridgingBpjs; private BridgingBpjs bridgingBpjs;
@Autowired @Autowired
private PemakaianAsuransiService pemakaianAsuransiService; 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) @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, public ResponseEntity<Map<String, Object>> savePemakaianAsuransi(@Valid @RequestBody PemakaianAsuransiVO vo,
HttpServletRequest request) throws ParseException { 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.LoginUserVO;
import com.jasamedika.medifirst2000.vo.custom.AuthVO; import com.jasamedika.medifirst2000.vo.custom.AuthVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
@ -32,6 +31,8 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import static org.slf4j.LoggerFactory.getLogger;
/** /**
* Controller class for Authenticate Business * Controller class for Authenticate Business
* *
@ -41,7 +42,7 @@ import java.util.Map;
@RequestMapping("/auth") @RequestMapping("/auth")
public class AuthenticateController { 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<>(); 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.service.B3RuanganInputDataService;
import com.jasamedika.medifirst2000.vo.B3RuanganInputDataVO; import com.jasamedika.medifirst2000.vo.B3RuanganInputDataVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/b3-Ruangan-Input-Data")
public class B3RuanganInputDataController extends LocaleController<B3RuanganInputDataVO> { public class B3RuanganInputDataController extends LocaleController<B3RuanganInputDataVO> {
private static final Logger LOGGER = getLogger(B3RuanganInputDataController.class);
@Autowired @Autowired
private B3RuanganInputDataService service; private B3RuanganInputDataService service;
private static final Logger LOGGER = LoggerFactory.getLogger(B3RuanganInputDataController.class);
@RequestMapping(value = "/get-login-petugas", method = GET, produces = APPLICATION_JSON_VALUE) @RequestMapping(value = "/get-login-petugas", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> getLoginUser(HttpServletRequest request) { public ResponseEntity<Map<String, Object>> getLoginUser(HttpServletRequest request) {
try { try {

View File

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

View File

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

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.BentukProdukService; import com.jasamedika.medifirst2000.service.BentukProdukService;
import com.jasamedika.medifirst2000.vo.BentukProdukVO; import com.jasamedika.medifirst2000.vo.BentukProdukVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping(value = "/bentuk-produk")
public class BentukProdukController extends LocaleController<BentukProdukVO> { public class BentukProdukController extends LocaleController<BentukProdukVO> {
private static final Logger LOGGER = getLogger(BentukProdukController.class);
@Autowired @Autowired
private BentukProdukService bentukProdukService; private BentukProdukService bentukProdukService;
private static final Logger LOGGER = LoggerFactory.getLogger(BentukProdukController.class);
@RequestMapping(value = "/save/", method = POST, produces = APPLICATION_JSON_VALUE) @RequestMapping(value = "/save/", method = POST, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> save(@Valid @RequestBody BentukProdukVO vo, HttpServletRequest request) { public ResponseEntity<Map<String, Object>> save(@Valid @RequestBody BentukProdukVO vo, HttpServletRequest request) {
try { 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.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/bobot-indikator")
public class BobotIndikatorController extends LocaleController<BobotIndikatorVO> { public class BobotIndikatorController extends LocaleController<BobotIndikatorVO> {
private static final Logger LOGGER = getLogger(BobotIndikatorController.class);
@Autowired @Autowired
private BobotIndikatorService bobotService; private BobotIndikatorService bobotService;
private static final Logger LOGGER = LoggerFactory.getLogger(BobotIndikatorController.class);
@RequestMapping(value = "/find-all/", method = GET, produces = APPLICATION_JSON_VALUE) @RequestMapping(value = "/find-all/", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Collection<PasienVO>> findAll( public ResponseEntity<Collection<PasienVO>> findAll(
@RequestParam(value = "page", required = false, defaultValue = "0") Integer page, @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.service.CekListGedungBangunanService;
import com.jasamedika.medifirst2000.vo.CekListGedungBangunanHeaderVO; import com.jasamedika.medifirst2000.vo.CekListGedungBangunanHeaderVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -36,7 +36,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/ceklistgedungbangunan") @RequestMapping("/ceklistgedungbangunan")
public class CekListGedungBangunanController extends LocaleController<BaseModelVO> { public class CekListGedungBangunanController extends LocaleController<BaseModelVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CekListGedungBangunanController.class); private static final Logger LOGGER = getLogger(CekListGedungBangunanController.class);
@Autowired @Autowired
private CekListGedungBangunanService cekListGedungBangunanService; 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.service.CetakPengantarSuratService;
import com.jasamedika.medifirst2000.vo.CetakPengantarSuratVO; import com.jasamedika.medifirst2000.vo.CetakPengantarSuratVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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") @RequestMapping("/pengantar-surat")
public class CetakPengantarSuratController extends LocaleController<CetakPengantarSuratVO> { public class CetakPengantarSuratController extends LocaleController<CetakPengantarSuratVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CetakPengantarSuratController.class); private static final Logger LOGGER = getLogger(CetakPengantarSuratController.class);
@Autowired @Autowired
private CetakPengantarSuratService pengantarSuratService; 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.service.CheckInService;
import com.jasamedika.medifirst2000.vo.CheckInVO; import com.jasamedika.medifirst2000.vo.CheckInVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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) @JsonIgnoreProperties(ignoreUnknown = true)
public class CheckInController extends LocaleController<CheckInVO> { public class CheckInController extends LocaleController<CheckInVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CheckInController.class); private static final Logger LOGGER = getLogger(CheckInController.class);
@Autowired @Autowired
private CheckInService<CheckIn> checkInService; 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.CssdBmhpVO;
import com.jasamedika.medifirst2000.vo.CssdProduksiBmhpHeaderVO; import com.jasamedika.medifirst2000.vo.CssdProduksiBmhpHeaderVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-bmhp")
public class CssdBmhpController extends LocaleController<CssdBmhpVO> { public class CssdBmhpController extends LocaleController<CssdBmhpVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdBmhpController.class); private static final Logger LOGGER = getLogger(CssdBmhpController.class);
@Autowired @Autowired
private CssdBmhpService cssdBmhpService; 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.service.CssdDecontaminasiService;
import com.jasamedika.medifirst2000.vo.CssdDecontaminasiVO; import com.jasamedika.medifirst2000.vo.CssdDecontaminasiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-decontaminasi")
public class CssdDecontaminasiController extends LocaleController<CssdDecontaminasiVO> { public class CssdDecontaminasiController extends LocaleController<CssdDecontaminasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdDecontaminasiController.class); private static final Logger LOGGER = getLogger(CssdDecontaminasiController.class);
@Autowired @Autowired
private CssdDecontaminasiService cssdDecontaminasiService; 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.service.CssdDistribusiService;
import com.jasamedika.medifirst2000.vo.CssdDistribusiVO; import com.jasamedika.medifirst2000.vo.CssdDistribusiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-distribusi")
public class CssdDistribusiController extends LocaleController<CssdDistribusiVO> { public class CssdDistribusiController extends LocaleController<CssdDistribusiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdDistribusiController.class); private static final Logger LOGGER = getLogger(CssdDistribusiController.class);
@Autowired @Autowired
private CssdDistribusiService cssdDistribusiService; 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.service.CssdMonitoringEoService;
import com.jasamedika.medifirst2000.vo.CssdMonitoringEoVO; import com.jasamedika.medifirst2000.vo.CssdMonitoringEoVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-monitoring-eo")
public class CssdMonitoringEoController extends LocaleController<CssdMonitoringEoVO> { public class CssdMonitoringEoController extends LocaleController<CssdMonitoringEoVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdMonitoringEoController.class); private static final Logger LOGGER = getLogger(CssdMonitoringEoController.class);
@Autowired @Autowired
private CssdMonitoringEoService cssdMonitoringEoService; 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.service.CssdMonitoringSteamService;
import com.jasamedika.medifirst2000.vo.CssdMonitoringSteamVO; import com.jasamedika.medifirst2000.vo.CssdMonitoringSteamVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-monitoring-steam")
public class CssdMonitoringSteamController extends LocaleController<CssdMonitoringSteamVO> { public class CssdMonitoringSteamController extends LocaleController<CssdMonitoringSteamVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdMonitoringSteamController.class); private static final Logger LOGGER = getLogger(CssdMonitoringSteamController.class);
@Autowired @Autowired
private CssdMonitoringSteamService cssdMonitoringSteamService; 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.service.CssdPengemasanService;
import com.jasamedika.medifirst2000.vo.CssdPengemasanVO; import com.jasamedika.medifirst2000.vo.CssdPengemasanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-pengemasan")
public class CssdPengemasanController extends LocaleController<CssdPengemasanVO> { public class CssdPengemasanController extends LocaleController<CssdPengemasanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdPengemasanController.class); private static final Logger LOGGER = getLogger(CssdPengemasanController.class);
@Autowired @Autowired
private CssdPengemasanService cssdPengemasanService; 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.service.CssdPenyimpananService;
import com.jasamedika.medifirst2000.vo.CssdPenyimpananVO; import com.jasamedika.medifirst2000.vo.CssdPenyimpananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-penyimpanan")
public class CssdPenyimpananController extends LocaleController<CssdPenyimpananVO> { public class CssdPenyimpananController extends LocaleController<CssdPenyimpananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdPenyimpananController.class); private static final Logger LOGGER = getLogger(CssdPenyimpananController.class);
@Autowired @Autowired
private CssdPenyimpananService cssdPenyimpananService; 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.ReturCssdVO;
import com.jasamedika.medifirst2000.vo.StrukPelayananDetailVO; import com.jasamedika.medifirst2000.vo.StrukPelayananDetailVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/retur-cssd")
public class CssdReturController extends LocaleController<StrukPelayananDetailVO> { public class CssdReturController extends LocaleController<StrukPelayananDetailVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdReturController.class); private static final Logger LOGGER = getLogger(CssdReturController.class);
@Autowired @Autowired
private CssdReturService cssdReturService; 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.service.CssdSterilService;
import com.jasamedika.medifirst2000.vo.CssdSterilVO; import com.jasamedika.medifirst2000.vo.CssdSterilVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-steril")
public class CssdSterilController extends LocaleController<CssdSterilVO> { public class CssdSterilController extends LocaleController<CssdSterilVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdSterilController.class); private static final Logger LOGGER = getLogger(CssdSterilController.class);
@Autowired @Autowired
private CssdSterilService cssdSterilService; 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.service.CssdSterilisasiService;
import com.jasamedika.medifirst2000.vo.CssdSterilisasiVO; import com.jasamedika.medifirst2000.vo.CssdSterilisasiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-sterilisasi")
public class CssdSterilisasiController extends LocaleController<CssdSterilisasiVO> { public class CssdSterilisasiController extends LocaleController<CssdSterilisasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdSterilisasiController.class); private static final Logger LOGGER = getLogger(CssdSterilisasiController.class);
@Autowired @Autowired
private CssdSterilisasiService cssdSterilisasiService; 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.service.CssdUjiSwapService;
import com.jasamedika.medifirst2000.vo.CssdUjiSwapVO; import com.jasamedika.medifirst2000.vo.CssdUjiSwapVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/cssd-uji-swap")
public class CssdUjiSwapController extends LocaleController<CssdUjiSwapVO> { public class CssdUjiSwapController extends LocaleController<CssdUjiSwapVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(CssdUjiSwapController.class); private static final Logger LOGGER = getLogger(CssdUjiSwapController.class);
@Autowired @Autowired
private CssdUjiSwapService cssdUjiSwapService; private CssdUjiSwapService cssdUjiSwapService;

View File

@ -1,13 +1,6 @@
package com.jasamedika.medifirst2000.controller; 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.beans.TypeMismatchException;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus; 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.NoHandlerFoundException;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler; 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 @ControllerAdvice
@Order(2) // Kedua masuk @Order(2)
public class CustomRestExceptionHandler extends ResponseEntityExceptionHandler { 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 final List<String> errors = new ArrayList<>();
protected ResponseEntity<Object> handleMethodArgumentNotValid(final MethodArgumentNotValidException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { for (final FieldError error : ex.getBindingResult().getFieldErrors())
logger.info(ex.getClass().getName()); errors.add(error.getField() + ": " + error.getDefaultMessage());
// for (final ObjectError error : ex.getBindingResult().getGlobalErrors())
final List<String> errors = new ArrayList<String>(); errors.add(error.getObjectName() + ": " + error.getDefaultMessage());
for (final FieldError error : ex.getBindingResult().getFieldErrors()) { errors.add(ex.getMessage());
errors.add(error.getField() + ": " + error.getDefaultMessage()); final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), errors);
} return handleExceptionInternal(ex, apiError, headers, apiError.getStatus(), request);
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);
}
@Override @Override
protected ResponseEntity<Object> handleBindException(final BindException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { protected ResponseEntity<Object> handleBindException(final BindException ex, final HttpHeaders headers,
logger.info(ex.getClass().getName()); 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 final List<String> errors = new ArrayList<>();
protected ResponseEntity<Object> handleTypeMismatch(final TypeMismatchException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { for (final FieldError error : ex.getBindingResult().getFieldErrors())
logger.info(ex.getClass().getName()); errors.add(error.getField() + ": " + error.getDefaultMessage());
// for (final ObjectError error : ex.getBindingResult().getGlobalErrors())
final String error = ex.getValue() + " value for " + ex.getPropertyName() + " should be of type " + ex.getRequiredType() errors.add(error.getObjectName() + ": " + error.getDefaultMessage());
// Alter Syamsu agar lebih jelas penyebab Value Object gagal diconvert dari Json Object final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), errors);
+ " " + ex.getMessage(); return handleExceptionInternal(ex, apiError, headers, apiError.getStatus(), request);
// 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());
}
@Override @Override
protected ResponseEntity<Object> handleMissingServletRequestPart(final MissingServletRequestPartException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { protected ResponseEntity<Object> handleTypeMismatch(final TypeMismatchException ex, final HttpHeaders headers,
logger.info(ex.getClass().getName()); 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 final String error = ex.getValue() + " value for " + ex.getPropertyName() + " should be of type "
protected ResponseEntity<Object> handleMissingServletRequestParameter(final MissingServletRequestParameterException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { + ex.getRequiredType() + " " + ex.getMessage();
logger.info(ex.getClass().getName()); final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), error);
// return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
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());
}
@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 }) final String error = ex.getRequestPartName() + " part is missing";
public ResponseEntity<Object> handleConstraintViolation(final ConstraintViolationException ex, final WebRequest request) { final ApiError apiError = new ApiError(BAD_REQUEST, ex.getLocalizedMessage(), error);
logger.info(ex.getClass().getName()); return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
// }
final List<String> errors = new ArrayList<String>();
for (final ConstraintViolation<?> violation : ex.getConstraintViolations()) {
errors.add(violation.getRootBeanClass().getName() + " " + violation.getPropertyPath() + ": " + violation.getMessage());
}
final ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), errors); @Override
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus()); 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 @ExceptionHandler({ ConstraintViolationException.class })
protected ResponseEntity<Object> handleNoHandlerFoundException(final NoHandlerFoundException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { public ResponseEntity<Object> handleConstraintViolation(final ConstraintViolationException ex) {
logger.info(ex.getClass().getName()); logger.info(ex.getClass().getName());
//
final String error = "No handler found for " + ex.getHttpMethod() + " " + ex.getRequestURL();
final ApiError apiError = new ApiError(HttpStatus.NOT_FOUND, ex.getLocalizedMessage(), error); final List<String> errors = new ArrayList<>();
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus()); 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 final String error = "No handler found for " + ex.getHttpMethod() + " " + ex.getRequestURL();
protected ResponseEntity<Object> handleHttpRequestMethodNotSupported(final HttpRequestMethodNotSupportedException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { final ApiError apiError = new ApiError(NOT_FOUND, ex.getLocalizedMessage(), error);
logger.info(ex.getClass().getName()); return new ResponseEntity<>(apiError, new HttpHeaders(), apiError.getStatus());
// }
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 ApiError apiError = new ApiError(HttpStatus.METHOD_NOT_ALLOWED, ex.getLocalizedMessage(), builder.toString()); @Override
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus()); 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 @Override
protected ResponseEntity<Object> handleHttpMediaTypeNotSupported(final HttpMediaTypeNotSupportedException ex, final HttpHeaders headers, final HttpStatus status, final WebRequest request) { protected ResponseEntity<Object> handleHttpMediaTypeNotSupported(final HttpMediaTypeNotSupportedException ex,
logger.info(ex.getClass().getName()); 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 + " "));
final ApiError apiError = new ApiError(HttpStatus.UNSUPPORTED_MEDIA_TYPE, ex.getLocalizedMessage(), builder.substring(0, builder.length() - 2)); final StringBuilder builder = new StringBuilder();
return new ResponseEntity<Object>(apiError, new HttpHeaders(), apiError.getStatus()); 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.service.UnitCostService;
import com.jasamedika.medifirst2000.vo.UnitCostVO; import com.jasamedika.medifirst2000.vo.UnitCostVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/unit-cost")
public class DaftarKegiatanController extends LocaleController<UnitCostVO> { public class DaftarKegiatanController extends LocaleController<UnitCostVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarKegiatanController.class); private static final Logger LOGGER = getLogger(DaftarKegiatanController.class);
@Autowired @Autowired
private UnitCostService<UnitCostVO> unitCostService; 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.service.DaftarKendaraanDinasService;
import com.jasamedika.medifirst2000.vo.OrderKendaraanDinasVO; import com.jasamedika.medifirst2000.vo.OrderKendaraanDinasVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-kendaraan-dinas")
public class DaftarKendaraanDinasController extends LocaleController<OrderKendaraanDinasVO> { public class DaftarKendaraanDinasController extends LocaleController<OrderKendaraanDinasVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarKendaraanDinasController.class); private static final Logger LOGGER = getLogger(DaftarKendaraanDinasController.class);
@Autowired @Autowired
private DaftarKendaraanDinasService daftarKendaraanDinasService; 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.service.DaftarOrderAmbulanceService;
import com.jasamedika.medifirst2000.vo.OrderPelayananVO; import com.jasamedika.medifirst2000.vo.OrderPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-order-ambulance")
public class DaftarOrderAmbulanceController extends LocaleController<OrderPelayananVO> { public class DaftarOrderAmbulanceController extends LocaleController<OrderPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarOrderAmbulanceController.class); private static final Logger LOGGER = getLogger(DaftarOrderAmbulanceController.class);
@Autowired @Autowired
private DaftarOrderAmbulanceService daftarOrderAmbulanceService; 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.service.DaftarOrderPemakaianRuangRapatService;
import com.jasamedika.medifirst2000.vo.OrderPemakaianRuangRapatVO; import com.jasamedika.medifirst2000.vo.OrderPemakaianRuangRapatVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-order-pemakaian-ruang-rapat")
public class DaftarOrderPemakaianRuangRapatController extends LocaleController<OrderPemakaianRuangRapatVO> { public class DaftarOrderPemakaianRuangRapatController extends LocaleController<OrderPemakaianRuangRapatVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarOrderPemakaianRuangRapatController.class); private static final Logger LOGGER = getLogger(DaftarOrderPemakaianRuangRapatController.class);
@Autowired @Autowired
private DaftarOrderPemakaianRuangRapatService daftarOrderPemakaianRuangRapatService; 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.service.DaftarPemakaianRumahDukaService;
import com.jasamedika.medifirst2000.vo.PemakaianRumahDukaVO; import com.jasamedika.medifirst2000.vo.PemakaianRumahDukaVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-pemakaian-rumah-duka")
public class DaftarPemakaianRumahDukaController extends LocaleController<PemakaianRumahDukaVO> { public class DaftarPemakaianRumahDukaController extends LocaleController<PemakaianRumahDukaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPemakaianRumahDukaController.class); private static final Logger LOGGER = getLogger(DaftarPemakaianRumahDukaController.class);
@Autowired @Autowired
private DaftarPemakaianRumahDukaService daftarPemakaianRumahDukaService; 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.service.DaftarPemulasaraanJenazahService;
import com.jasamedika.medifirst2000.vo.OrderPelayananVO; import com.jasamedika.medifirst2000.vo.OrderPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-pemulasaraan-jenazah")
public class DaftarPemulasaraanJenazahController extends LocaleController<OrderPelayananVO> { public class DaftarPemulasaraanJenazahController extends LocaleController<OrderPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPemulasaraanJenazahController.class); private static final Logger LOGGER = getLogger(DaftarPemulasaraanJenazahController.class);
@Autowired @Autowired
private DaftarPemulasaraanJenazahService daftarPemulasaraanJenazahService; 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.MappingKirimDokumenPasienVO;
import com.jasamedika.medifirst2000.vo.StrukBuktiPenerimaanCaraBayarVO; import com.jasamedika.medifirst2000.vo.StrukBuktiPenerimaanCaraBayarVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-penerimaan")
public class DaftarPenerimaanController extends LocaleController<StrukBuktiPenerimaanCaraBayarVO> { public class DaftarPenerimaanController extends LocaleController<StrukBuktiPenerimaanCaraBayarVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPenerimaanController.class); private static final Logger LOGGER = getLogger(DaftarPenerimaanController.class);
@Autowired @Autowired
private DaftarPenerimaanService service; 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.service.DaftarPesanAmbulanceService;
import com.jasamedika.medifirst2000.vo.OrderAmbulanceVO; import com.jasamedika.medifirst2000.vo.OrderAmbulanceVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-pesan-ambulance")
public class DaftarPesanAmbulanceController extends LocaleController<OrderAmbulanceVO> { public class DaftarPesanAmbulanceController extends LocaleController<OrderAmbulanceVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarPesanAmbulanceController.class); private static final Logger LOGGER = getLogger(DaftarPesanAmbulanceController.class);
@Autowired @Autowired
private DaftarPesanAmbulanceService daftarPesanAmbulanceService; 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.service.DaftarSewaAsramaService;
import com.jasamedika.medifirst2000.vo.SewaAsramaVO; import com.jasamedika.medifirst2000.vo.SewaAsramaVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-sewa-asrama")
public class DaftarSewaAsramaController extends LocaleController<SewaAsramaVO> { public class DaftarSewaAsramaController extends LocaleController<SewaAsramaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarSewaAsramaController.class); private static final Logger LOGGER = getLogger(DaftarSewaAsramaController.class);
@Autowired @Autowired
private DaftarSewaAsramaService daftarSewaAsramaService; 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.service.DaftarSewaLahanService;
import com.jasamedika.medifirst2000.vo.SewaLahanVO; import com.jasamedika.medifirst2000.vo.SewaLahanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/daftar-sewa-lahan")
public class DaftarSewaLahanController extends LocaleController<SewaLahanVO> { public class DaftarSewaLahanController extends LocaleController<SewaLahanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DaftarSewaLahanController.class); private static final Logger LOGGER = getLogger(DaftarSewaLahanController.class);
@Autowired @Autowired
private DaftarSewaLahanService daftarSewaLahanService; 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.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/dampak-resiko")
public class DampakResikoController extends LocaleController<DampakResikoVO> { public class DampakResikoController extends LocaleController<DampakResikoVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DampakResikoController.class); private static final Logger LOGGER = getLogger(DampakResikoController.class);
@Autowired @Autowired
private DampakResikoService dampakResikoService; 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.service.DataPerusahaanYangBekerjaSamaService;
import com.jasamedika.medifirst2000.vo.DataPerusahaanYangBekerjaSamaVO; import com.jasamedika.medifirst2000.vo.DataPerusahaanYangBekerjaSamaVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/data-perusahaan-yang-bekerjasama")
public class DataPerusahaanYangBekerjaSamaController extends LocaleController<DataPerusahaanYangBekerjaSamaVO> { public class DataPerusahaanYangBekerjaSamaController extends LocaleController<DataPerusahaanYangBekerjaSamaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DataPerusahaanYangBekerjaSamaController.class); private static final Logger LOGGER = getLogger(DataPerusahaanYangBekerjaSamaController.class);
@Autowired @Autowired
private DataPerusahaanYangBekerjaSamaService dataPerusahaanYangBekerjaSamaService; 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.service.DataPesertaPerusahanYangBekerjaSamaService;
import com.jasamedika.medifirst2000.vo.DataPesertaPerusahanYangBekerjaSamaVO; import com.jasamedika.medifirst2000.vo.DataPesertaPerusahanYangBekerjaSamaVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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 public class DataPesertaPerusahanYangBekerjaSamaController
extends LocaleController<DataPesertaPerusahanYangBekerjaSamaVO> { extends LocaleController<DataPesertaPerusahanYangBekerjaSamaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DataPesertaPerusahanYangBekerjaSamaController.class); private static final Logger LOGGER = getLogger(DataPesertaPerusahanYangBekerjaSamaController.class);
@Autowired @Autowired
private DataPesertaPerusahanYangBekerjaSamaService service; 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.service.DepartemenService;
import com.jasamedika.medifirst2000.vo.DepartemenVO; import com.jasamedika.medifirst2000.vo.DepartemenVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/departemen") @RequestMapping("/departemen")
public class DepartemenController extends LocaleController<DepartemenVO> { public class DepartemenController extends LocaleController<DepartemenVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DepartemenController.class); private static final Logger LOGGER = getLogger(DepartemenController.class);
@Autowired @Autowired
private DepartemenService<Departemen> departemenService; 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.DetailRupCustomVO;
import com.jasamedika.medifirst2000.vo.HeadAnggaranVO; import com.jasamedika.medifirst2000.vo.HeadAnggaranVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.validation.Valid; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/detail-rup")
public class DetailRupController extends LocaleController<HeadAnggaranVO> { public class DetailRupController extends LocaleController<HeadAnggaranVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DetailRupController.class); private static final Logger LOGGER = getLogger(DetailRupController.class);
@Autowired @Autowired
private DetailRupService service; 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.DiagnosaKeperawatanTransaksiVO;
import com.jasamedika.medifirst2000.vo.DiagnosaKeperawatanVO; import com.jasamedika.medifirst2000.vo.DiagnosaKeperawatanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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") @RequestMapping("/diagnosa-keperawatan")
public class DiagnosaKeperawatanTransaksiController extends LocaleController<DiagnosaKeperawatanVO> { public class DiagnosaKeperawatanTransaksiController extends LocaleController<DiagnosaKeperawatanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DiagnosaKeperawatanTransaksiController.class); private static final Logger LOGGER = getLogger(DiagnosaKeperawatanTransaksiController.class);
@Autowired @Autowired
private DiagnosaKeperawatanTransaksiService service; 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.DiagnosaPasienVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO; import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/diagnosa-pasien")
public class DiagnosaPasienController extends LocaleController<RegistrasiPelayananVO> { public class DiagnosaPasienController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DiagnosaPasienController.class); private static final Logger LOGGER = getLogger(DiagnosaPasienController.class);
@Autowired @Autowired
private DiagnosaPasienService diagnosaPasienService; 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.DiagnosaTindakanPasienVO;
import com.jasamedika.medifirst2000.vo.PegawaiVO; import com.jasamedika.medifirst2000.vo.PegawaiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.security.service.TokenAuthenticationService.tokenHandler;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/diagnosa-tindakan-pasien")
public class DiagnosaTindakanPasienController extends LocaleController<DiagnosaTindakanPasienVO> { public class DiagnosaTindakanPasienController extends LocaleController<DiagnosaTindakanPasienVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DiagnosaTindakanPasienController.class); private static final Logger LOGGER = getLogger(DiagnosaTindakanPasienController.class);
@Autowired @Autowired
private LoginUserDao loginUserDao; 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.KonfirmasiAsetVO;
import com.jasamedika.medifirst2000.vo.PenerimaanBarangVO; import com.jasamedika.medifirst2000.vo.PenerimaanBarangVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
import static java.net.URLDecoder.decode; import static java.net.URLDecoder.decode;
import static org.slf4j.LoggerFactory.getLogger;
import static org.springframework.http.HttpStatus.*; import static org.springframework.http.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/distribusi-aset")
public class DistribusiAsetController extends LocaleController<PenerimaanBarangVO> { public class DistribusiAsetController extends LocaleController<PenerimaanBarangVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DistribusiAsetController.class); private static final Logger LOGGER = getLogger(DistribusiAsetController.class);
@Autowired @Autowired
private DistribusiAsetService distribusiAsetService; 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.PasienVO;
import com.jasamedika.medifirst2000.vo.SuratMasukInternalVO; import com.jasamedika.medifirst2000.vo.SuratMasukInternalVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/dokumen-internal")
public class DokumenInternalController extends LocaleController<SuratMasukInternalVO> { public class DokumenInternalController extends LocaleController<SuratMasukInternalVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DokumenInternalController.class); private static final Logger LOGGER = getLogger(DokumenInternalController.class);
@Autowired @Autowired
private DokumenInternalService dokumenInternalService; 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.domain.DateBetween;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/draft-surat")
public class DraftSuratController extends LocaleController<DraftSuratVO> { public class DraftSuratController extends LocaleController<DraftSuratVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(DraftSuratController.class); private static final Logger LOGGER = getLogger(DraftSuratController.class);
@Autowired @Autowired
private DraftSuratService draftSuratService; 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.service.EdukasiService;
import com.jasamedika.medifirst2000.vo.EdukasiVO; import com.jasamedika.medifirst2000.vo.EdukasiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,7 +33,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/edukasi") @RequestMapping("/edukasi")
public class EdukasiController extends LocaleController<EdukasiVO> { public class EdukasiController extends LocaleController<EdukasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(EdukasiController.class); private static final Logger LOGGER = getLogger(EdukasiController.class);
@Autowired @Autowired
private EdukasiService service; 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.service.EkstensionNoTeleponService;
import com.jasamedika.medifirst2000.vo.EkstensionNoTeleponVO; import com.jasamedika.medifirst2000.vo.EkstensionNoTeleponVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ekstension-no-telepon")
public class EkstensionNoTeleponController extends LocaleController<EkstensionNoTeleponVO> { public class EkstensionNoTeleponController extends LocaleController<EkstensionNoTeleponVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(EkstensionNoTeleponController.class); private static final Logger LOGGER = getLogger(EkstensionNoTeleponController.class);
@Autowired @Autowired
private EkstensionNoTeleponService ekstensionNoTeleponService; 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.service.EvaluasiRekananService;
import com.jasamedika.medifirst2000.vo.UsulanEvaluasiVO; import com.jasamedika.medifirst2000.vo.UsulanEvaluasiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/evaluasi-rekanan")
public class EvaluasiRekananController extends LocaleController<UsulanEvaluasiVO> { public class EvaluasiRekananController extends LocaleController<UsulanEvaluasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(EvaluasiRekananController.class); private static final Logger LOGGER = getLogger(EvaluasiRekananController.class);
@Autowired @Autowired
private EvaluasiRekananService evaluasiRekananService; 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.service.FasilitasMService;
import com.jasamedika.medifirst2000.vo.FasilitasMVO; import com.jasamedika.medifirst2000.vo.FasilitasMVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/fasilitas") @RequestMapping("/fasilitas")
public class FasilitasMController extends LocaleController<FasilitasMVO> { public class FasilitasMController extends LocaleController<FasilitasMVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(FasilitasMController.class); private static final Logger LOGGER = getLogger(FasilitasMController.class);
@Autowired @Autowired
private FasilitasMService fasilitasMService; 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.exception.ServiceVOException;
import com.jasamedika.medifirst2000.vo.PelayananPasienVO; import com.jasamedika.medifirst2000.vo.PelayananPasienVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS_OK;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
@RestController @RestController
@RequestMapping("/fee-for-service") @RequestMapping("/fee-for-service")
public class FeeForServiceController extends LocaleController<PelayananPasienVO> { public class FeeForServiceController extends LocaleController<PelayananPasienVO> {
private static final Logger LOG = LoggerFactory.getLogger(FeeForServiceController.class); private static final Logger LOG = getLogger(FeeForServiceController.class);
@Autowired @Autowired
private PelayananPasienDaoCustom pelayananPasienDao; 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.service.FisisPemeriksaanDokterService;
import com.jasamedika.medifirst2000.vo.FisisPemeriksaanDokterVO; import com.jasamedika.medifirst2000.vo.FisisPemeriksaanDokterVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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) @JsonIgnoreProperties(ignoreUnknown = true)
public class FisisPemeriksaanDokterController extends LocaleController<FisisPemeriksaanDokterVO> { public class FisisPemeriksaanDokterController extends LocaleController<FisisPemeriksaanDokterVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(FisisPemeriksaanDokterController.class); private static final Logger LOGGER = getLogger(FisisPemeriksaanDokterController.class);
@Autowired @Autowired
private FisisPemeriksaanDokterService<FisisPemeriksaanDokter> fisisPemeriksaanDokterService; 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.service.GajiPegawaiService;
import com.jasamedika.medifirst2000.vo.PegawaiHistoriRekapGajiVO; import com.jasamedika.medifirst2000.vo.PegawaiHistoriRekapGajiVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/gaji-pegawai")
public class GajiPegawaiController extends LocaleController<PegawaiHistoriRekapGajiVO> { public class GajiPegawaiController extends LocaleController<PegawaiHistoriRekapGajiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(GajiPegawaiController.class); private static final Logger LOGGER = getLogger(GajiPegawaiController.class);
@Autowired @Autowired
private GajiPegawaiService service; 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.GawatDaruratVO;
import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO; import com.jasamedika.medifirst2000.vo.RegistrasiPelayananVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/gawat-darurat")
public class GawatDaruratController extends LocaleController<RegistrasiPelayananVO> { public class GawatDaruratController extends LocaleController<RegistrasiPelayananVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(GawatDaruratController.class); private static final Logger LOGGER = getLogger(GawatDaruratController.class);
@Autowired @Autowired
private GawatDaruratService gawatDaruratService; 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.service.GeneratedMasterService;
import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO; import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.security.model.AppPermission.*;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/generated_master")
public class GeneratedMasterController extends LocaleController<IpsrsPemeliharaanVO> { public class GeneratedMasterController extends LocaleController<IpsrsPemeliharaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(GeneratedMasterController.class); private static final Logger LOGGER = getLogger(GeneratedMasterController.class);
@Autowired @Autowired
private GeneratedMasterService service; 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.service.HVAService;
import com.jasamedika.medifirst2000.vo.HVAVO; import com.jasamedika.medifirst2000.vo.HVAVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/hva") @RequestMapping("/hva")
public class HVAController extends LocaleController<HVAVO> { public class HVAController extends LocaleController<HVAVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(HVAController.class); private static final Logger LOGGER = getLogger(HVAController.class);
@Autowired @Autowired
private HVAService hvaService; 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.service.HasilPemeriksaanSwaPantauLimbahCairService;
import com.jasamedika.medifirst2000.vo.HasilPemeriksaanSwaPantauLimbahCairVO; import com.jasamedika.medifirst2000.vo.HasilPemeriksaanSwaPantauLimbahCairVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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 public class HasilPemeriksaanSwaPantauLimbahCairController
extends LocaleController<HasilPemeriksaanSwaPantauLimbahCairVO> { extends LocaleController<HasilPemeriksaanSwaPantauLimbahCairVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(HasilPemeriksaanSwaPantauLimbahCairController.class); private static final Logger LOGGER = getLogger(HasilPemeriksaanSwaPantauLimbahCairController.class);
@Autowired @Autowired
private HasilPemeriksaanSwaPantauLimbahCairService<HasilPemeriksaanSwaPantauLimbahCair> hasilPemeriksaanSwaPantauLimbahCairService; 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.service.HistoriPelayananCsService;
import com.jasamedika.medifirst2000.vo.HistoriPelayananCsVO; import com.jasamedika.medifirst2000.vo.HistoriPelayananCsVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -29,7 +29,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/historiPelayananCs") @RequestMapping("/historiPelayananCs")
public class HistoriPelayananCsController extends LocaleController<HistoriPelayananCsVO> { public class HistoriPelayananCsController extends LocaleController<HistoriPelayananCsVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(HistoriPelayananCsController.class); private static final Logger LOGGER = getLogger(HistoriPelayananCsController.class);
@Autowired @Autowired
private HistoriPelayananCsService historiPelayananCsService; 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.SettingPirSdmVO;
import com.jasamedika.medifirst2000.vo.StrukHistoriVO; import com.jasamedika.medifirst2000.vo.StrukHistoriVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/iki-remunerasi")
public class IkiDanRemunerasiController extends LocaleController<IkiDanRemunerasiVO> { public class IkiDanRemunerasiController extends LocaleController<IkiDanRemunerasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IkiDanRemunerasiController.class); private static final Logger LOGGER = getLogger(IkiDanRemunerasiController.class);
@Autowired @Autowired
private IkiDanRemunerasiService service; private IkiDanRemunerasiService service;

View File

@ -1,14 +1,15 @@
package com.jasamedika.medifirst2000.controller; package com.jasamedika.medifirst2000.controller;
import java.util.Collection; import com.jasamedika.medifirst2000.constants.MessageResource;
import java.util.Map; import com.jasamedika.medifirst2000.controller.base.LocaleController;
import com.jasamedika.medifirst2000.entities.IndikatorRensar;
import javax.servlet.http.HttpServletRequest; import com.jasamedika.medifirst2000.exception.ServiceVOException;
import javax.validation.Valid; import com.jasamedika.medifirst2000.service.IndikatorRensarService;
import com.jasamedika.medifirst2000.vo.IndikatorRensarVO;
import com.jasamedika.medifirst2000.vo.PasienVO; 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.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications; 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.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.jasamedika.medifirst2000.constants.MessageResource; import javax.servlet.http.HttpServletRequest;
import com.jasamedika.medifirst2000.controller.base.LocaleController; import javax.validation.Valid;
import com.jasamedika.medifirst2000.entities.IndikatorRensar; import java.util.Collection;
import com.jasamedika.medifirst2000.exception.ServiceVOException; import java.util.Map;
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 static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR_MESSAGE; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/indikator-rensar")
public class IndikatorRensarController extends LocaleController<IndikatorRensarVO> { public class IndikatorRensarController extends LocaleController<IndikatorRensarVO> {
private static final Logger LOGGER = getLogger(IndikatorRensarController.class);
@Autowired @Autowired
private IndikatorRensarService indikatorRensarService; private IndikatorRensarService indikatorRensarService;
private static final Logger LOGGER = LoggerFactory.getLogger(IndikatorRensarController.class);
@RequestMapping(value = "/find-all/", method = GET, produces = APPLICATION_JSON_VALUE) @RequestMapping(value = "/find-all/", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity<Collection<PasienVO>> findAll( public ResponseEntity<Collection<PasienVO>> findAll(
@RequestParam(value = "page", required = false, defaultValue = "0") Integer page, @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.service.InstruksiService;
import com.jasamedika.medifirst2000.vo.InstruksiCustomVO; import com.jasamedika.medifirst2000.vo.InstruksiCustomVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -33,11 +33,11 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/instruksi") @RequestMapping("/instruksi")
public class InstruksiController extends LocaleController<InstruksiCustomVO> { public class InstruksiController extends LocaleController<InstruksiCustomVO> {
private static final Logger LOGGER = getLogger(InstruksiController.class);
@Autowired @Autowired
private InstruksiService service; 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) @RequestMapping(value = "/save-instruksi", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity<Map<String, Object>> saveInstruksi(@Valid @RequestBody InstruksiCustomVO vo, public ResponseEntity<Map<String, Object>> saveInstruksi(@Valid @RequestBody InstruksiCustomVO vo,
HttpServletRequest request) { HttpServletRequest request) {

View File

@ -6,7 +6,6 @@ import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.IntraOperasiAnestesiService; import com.jasamedika.medifirst2000.service.IntraOperasiAnestesiService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO; import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/intra-operasi-anestesi")
public class IntraOperasiAnestesiController extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> { public class IntraOperasiAnestesiController extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IntraOperasiAnestesiController.class); private static final Logger LOGGER = getLogger(IntraOperasiAnestesiController.class);
@Autowired @Autowired
private IntraOperasiAnestesiService intraOperasiAnestesiService; 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.service.IntraOperasiPerawatBedahService;
import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO; import com.jasamedika.medifirst2000.vo.AsuhanKeperawatanPeriOperasiHeaderVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/intra-operasi-perawat-bedah")
public class IntraOperasiPerawatBedahController extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> { public class IntraOperasiPerawatBedahController extends LocaleController<AsuhanKeperawatanPeriOperasiHeaderVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IntraOperasiPerawatBedahController.class); private static final Logger LOGGER = getLogger(IntraOperasiPerawatBedahController.class);
@Autowired @Autowired
private IntraOperasiPerawatBedahService intraOperasiPerawatBedahService; 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.service.IpsrsDataAlatService;
import com.jasamedika.medifirst2000.vo.RegistrasiAsetVO; import com.jasamedika.medifirst2000.vo.RegistrasiAsetVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-data-alat")
public class IpsrsDataAlatController extends LocaleController<RegistrasiAsetVO> { public class IpsrsDataAlatController extends LocaleController<RegistrasiAsetVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsDataAlatController.class); private static final Logger LOGGER = getLogger(IpsrsDataAlatController.class);
@Autowired @Autowired
private IpsrsDataAlatService service; 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.service.IpsrsMaintenanceService;
import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO; import com.jasamedika.medifirst2000.vo.IpsrsPemeliharaanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-maintenance")
public class IpsrsMaintenanceController extends LocaleController<IpsrsPemeliharaanVO> { public class IpsrsMaintenanceController extends LocaleController<IpsrsPemeliharaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsMaintenanceController.class); private static final Logger LOGGER = getLogger(IpsrsMaintenanceController.class);
@Autowired @Autowired
private IpsrsMaintenanceService service; 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.service.IpsrsPemakaianMesinService;
import com.jasamedika.medifirst2000.vo.IpsrsPemakaianMesinVO; import com.jasamedika.medifirst2000.vo.IpsrsPemakaianMesinVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-pemakaian-mesin")
public class IpsrsPemakaianMesinController extends LocaleController<IpsrsPemakaianMesinVO> { public class IpsrsPemakaianMesinController extends LocaleController<IpsrsPemakaianMesinVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPemakaianMesinController.class); private static final Logger LOGGER = getLogger(IpsrsPemakaianMesinController.class);
@Autowired @Autowired
private IpsrsPemakaianMesinService service; 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.service.IpsrsPemakaianRuanganService;
import com.jasamedika.medifirst2000.vo.IpsrsPemakaianRuanganVO; import com.jasamedika.medifirst2000.vo.IpsrsPemakaianRuanganVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.validation.Valid; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-pemakaian-ruangan")
public class IpsrsPemakaianRuanganController extends LocaleController<IpsrsPemakaianRuanganVO> { public class IpsrsPemakaianRuanganController extends LocaleController<IpsrsPemakaianRuanganVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPemakaianRuanganController.class); private static final Logger LOGGER = getLogger(IpsrsPemakaianRuanganController.class);
@Autowired @Autowired
private IpsrsPemakaianRuanganService service; 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.service.IpsrsPeminjamanAlatService;
import com.jasamedika.medifirst2000.vo.IpsrsPeminjamanAlatVO; import com.jasamedika.medifirst2000.vo.IpsrsPeminjamanAlatVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-peminjaman-alat")
public class IpsrsPeminjamanAlatController extends LocaleController<IpsrsPeminjamanAlatVO> { public class IpsrsPeminjamanAlatController extends LocaleController<IpsrsPeminjamanAlatVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPeminjamanAlatController.class); private static final Logger LOGGER = getLogger(IpsrsPeminjamanAlatController.class);
@Autowired @Autowired
private IpsrsPeminjamanAlatService service; 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.IpsrsPelaksanaanPerbaikanVO;
import com.jasamedika.medifirst2000.vo.IpsrsPerbaikanVO; import com.jasamedika.medifirst2000.vo.IpsrsPerbaikanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-perbaikan")
public class IpsrsPerbaikanController extends LocaleController<IpsrsPerbaikanVO> { public class IpsrsPerbaikanController extends LocaleController<IpsrsPerbaikanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPerbaikanController.class); private static final Logger LOGGER = getLogger(IpsrsPerbaikanController.class);
@Autowired @Autowired
private IpsrsPerbaikanService service; 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.IpsrsPemeliharaanVO;
import com.jasamedika.medifirst2000.vo.IpsrsPreventiveMaintenanceVO; import com.jasamedika.medifirst2000.vo.IpsrsPreventiveMaintenanceVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-preventive-maintenance")
public class IpsrsPreventiveMaintenanceController extends LocaleController<IpsrsPemeliharaanVO> { public class IpsrsPreventiveMaintenanceController extends LocaleController<IpsrsPemeliharaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsPreventiveMaintenanceController.class); private static final Logger LOGGER = getLogger(IpsrsPreventiveMaintenanceController.class);
@Autowired @Autowired
private IpsrsPreventiveMaintenanceService service; 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.service.IpsrsTagihanBusinessCenterService;
import com.jasamedika.medifirst2000.vo.IpsrsTagihanBusinessCenterVO; import com.jasamedika.medifirst2000.vo.IpsrsTagihanBusinessCenterVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/ipsrs-tagihan-business-center")
public class IpsrsTagihanBusinessCenterController extends LocaleController<IpsrsTagihanBusinessCenterVO> { public class IpsrsTagihanBusinessCenterController extends LocaleController<IpsrsTagihanBusinessCenterVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(IpsrsTagihanBusinessCenterController.class); private static final Logger LOGGER = getLogger(IpsrsTagihanBusinessCenterController.class);
@Autowired @Autowired
private IpsrsTagihanBusinessCenterService service; 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.ItPelaksanaanPerbaikanVO;
import com.jasamedika.medifirst2000.vo.ItPerbaikanVO; import com.jasamedika.medifirst2000.vo.ItPerbaikanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/it-perbaikan")
public class ItPerbaikanController extends LocaleController<ItPerbaikanVO> { public class ItPerbaikanController extends LocaleController<ItPerbaikanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(ItPerbaikanController.class); private static final Logger LOGGER = getLogger(ItPerbaikanController.class);
@Autowired @Autowired
private ItPerbaikanService service; 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.service.JabatanService;
import com.jasamedika.medifirst2000.vo.JabatanVO; import com.jasamedika.medifirst2000.vo.JabatanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.HttpServletRequest;
import javax.validation.Valid; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -29,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jabatan") @RequestMapping("/jabatan")
public class JabatanController extends LocaleController<JabatanVO> { public class JabatanController extends LocaleController<JabatanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JabatanController.class); private static final Logger LOGGER = getLogger(JabatanController.class);
@Autowired @Autowired
private JabatanService jabatanService; 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.service.JadwalDokterService;
import com.jasamedika.medifirst2000.vo.JadwalDokter_VO; import com.jasamedika.medifirst2000.vo.JadwalDokter_VO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.DateUtil.toDate;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -32,7 +32,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jadwalDokter") @RequestMapping("/jadwalDokter")
public class JadwalDokterController extends LocaleController<JadwalDokter_VO> { 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 @Autowired
private JadwalDokterService jadwalDokterService; 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.service.JadwalDpjpRawatInapService;
import com.jasamedika.medifirst2000.vo.JadwalDpjpRawatInapVO; import com.jasamedika.medifirst2000.vo.JadwalDpjpRawatInapVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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") @RequestMapping("/jadwal-dpjp")
public class JadwalDpjpRawatInapController extends LocaleController<JadwalDpjpRawatInapVO> { public class JadwalDpjpRawatInapController extends LocaleController<JadwalDpjpRawatInapVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JadwalDpjpRawatInapController.class); private static final Logger LOGGER = getLogger(JadwalDpjpRawatInapController.class);
@Autowired @Autowired
private JadwalDpjpRawatInapService service; 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.service.JadwalRencanaPemeriksaanService;
import com.jasamedika.medifirst2000.vo.JadwalRencanaPemeriksaanVO; import com.jasamedika.medifirst2000.vo.JadwalRencanaPemeriksaanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/jadwal-rencana-pemeriksaan")
public class JadwalRencanaPemeriksaanController extends LocaleController<JadwalRencanaPemeriksaanVO> { public class JadwalRencanaPemeriksaanController extends LocaleController<JadwalRencanaPemeriksaanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JadwalRencanaPemeriksaanController.class); private static final Logger LOGGER = getLogger(JadwalRencanaPemeriksaanController.class);
@Autowired @Autowired
private JadwalRencanaPemeriksaanService rencanaPemeriksaanService; 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.service.JenisBahanService;
import com.jasamedika.medifirst2000.vo.JenisBahanVO; import com.jasamedika.medifirst2000.vo.JenisBahanVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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/") @RequestMapping("/jenis-bahan/")
public class JenisBahanController extends LocaleController<JenisBahanVO> { public class JenisBahanController extends LocaleController<JenisBahanVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisBahanController.class); private static final Logger LOGGER = getLogger(JenisBahanController.class);
@Autowired @Autowired
private JenisBahanService jenisBahanService; 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.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping(value = "/jenis-diet")
public class JenisDietController extends LocaleController<JenisDietVO> { public class JenisDietController extends LocaleController<JenisDietVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisDietController.class); private static final Logger LOGGER = getLogger(JenisDietController.class);
@Autowired @Autowired
private JenisDietService jenisDietService; 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.service.JenisLimbahB3MasukService;
import com.jasamedika.medifirst2000.vo.JenisLimbahB3MasukVO; import com.jasamedika.medifirst2000.vo.JenisLimbahB3MasukVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/jenis-limbah-b3-masuk")
public class JenisLimbahB3MasukController extends LocaleController<JenisLimbahB3MasukVO> { public class JenisLimbahB3MasukController extends LocaleController<JenisLimbahB3MasukVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisLimbahB3MasukController.class); private static final Logger LOGGER = getLogger(JenisLimbahB3MasukController.class);
@Autowired @Autowired
private JenisLimbahB3MasukService<JenisLimbahB3Masuk> jenisLimbahB3MasukService; 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.service.JenisLinenService;
import com.jasamedika.medifirst2000.vo.JenisLinenVO; import com.jasamedika.medifirst2000.vo.JenisLinenVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/jenis-linen")
public class JenisLinenController extends LocaleController<JenisLinenVO> { public class JenisLinenController extends LocaleController<JenisLinenVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisLinenController.class); private static final Logger LOGGER = getLogger(JenisLinenController.class);
@Autowired @Autowired
private JenisLinenService jenisLinenService; 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.service.JenisResponService;
import com.jasamedika.medifirst2000.vo.JenisResponVO; import com.jasamedika.medifirst2000.vo.JenisResponVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST; import static org.springframework.web.bind.annotation.RequestMethod.POST;
@ -30,7 +30,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/jenisRespon") @RequestMapping("/jenisRespon")
public class JenisResponController extends LocaleController<JenisResponVO> { public class JenisResponController extends LocaleController<JenisResponVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisResponController.class); private static final Logger LOGGER = getLogger(JenisResponController.class);
@Autowired @Autowired
private JenisResponService service; 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.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping(value = "/jenis-waktu")
public class JenisWaktuController extends LocaleController<JenisWaktuVO> { public class JenisWaktuController extends LocaleController<JenisWaktuVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(JenisWaktuController.class); private static final Logger LOGGER = getLogger(JenisWaktuController.class);
@Autowired @Autowired
private JenisWaktuService jenisWaktuService; 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.service.K3CheckListFacillitySefetyService;
import com.jasamedika.medifirst2000.vo.K3CheckListFacillitySefetyVO; import com.jasamedika.medifirst2000.vo.K3CheckListFacillitySefetyVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/k3-checklist-facillity-sefety")
public class K3CheckListFacillitySefetyController extends LocaleController<K3CheckListFacillitySefetyVO> { public class K3CheckListFacillitySefetyController extends LocaleController<K3CheckListFacillitySefetyVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(K3CheckListFacillitySefetyController.class); private static final Logger LOGGER = getLogger(K3CheckListFacillitySefetyController.class);
@Autowired @Autowired
private K3CheckListFacillitySefetyService service; 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.LkkIdentifikasiKorbanVO;
import com.jasamedika.medifirst2000.vo.LkkSaksiKejadianVO; import com.jasamedika.medifirst2000.vo.LkkSaksiKejadianVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/k3-laporan-kecelakaan-kerja")
public class K3LaporanKecelakaanKerjaController extends LocaleController<K3LaporanKecelakaanKerjaVO> { public class K3LaporanKecelakaanKerjaController extends LocaleController<K3LaporanKecelakaanKerjaVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(K3LaporanKecelakaanKerjaController.class); private static final Logger LOGGER = getLogger(K3LaporanKecelakaanKerjaController.class);
@Autowired @Autowired
private K3LaporanKecelakaanKerjaService service; 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.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
import static org.springframework.web.bind.annotation.RequestMethod.POST; 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") @RequestMapping("/kajian-evaluasi")
public class KajianEvaluasiController extends LocaleController<KajianEvaluasiVO> { public class KajianEvaluasiController extends LocaleController<KajianEvaluasiVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KajianEvaluasiController.class); private static final Logger LOGGER = getLogger(KajianEvaluasiController.class);
@Autowired @Autowired
private KajianEvaluasiService evaluasiService; 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.domain.Equal;
import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec; import net.kaczmarzyk.spring.data.jpa.web.annotation.Spec;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.domain.Specifications; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/kamus-indikator")
public class KamusIndikatorController extends LocaleController<KamusIndikatorVO> { public class KamusIndikatorController extends LocaleController<KamusIndikatorVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KamusIndikatorController.class); private static final Logger LOGGER = getLogger(KamusIndikatorController.class);
@Autowired @Autowired
private KamusIndikatorService kamusIndikatorService; 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.service.KartuPengendaliService;
import com.jasamedika.medifirst2000.vo.*; import com.jasamedika.medifirst2000.vo.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping("/kartu-pengendali")
public class KartuPengendaliController extends LocaleController<KartuPengendaliVO> { public class KartuPengendaliController extends LocaleController<KartuPengendaliVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KartuPengendaliController.class); private static final Logger LOGGER = getLogger(KartuPengendaliController.class);
@Autowired @Autowired
private KartuPengendaliService service; 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.service.KategoryProdukService;
import com.jasamedika.medifirst2000.vo.KategoryProdukVO; import com.jasamedika.medifirst2000.vo.KategoryProdukVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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") @RequestMapping(value = "/kategory-produk")
public class KategoryProdukController extends LocaleController<KategoryProdukVO> { public class KategoryProdukController extends LocaleController<KategoryProdukVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KategoryProdukController.class); private static final Logger LOGGER = getLogger(KategoryProdukController.class);
@Autowired @Autowired
private KategoryProdukService kategoryProdukService; 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.service.KebutuhanDasarService;
import com.jasamedika.medifirst2000.vo.KebutuhanDasarVO; import com.jasamedika.medifirst2000.vo.KebutuhanDasarVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; 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) @JsonIgnoreProperties(ignoreUnknown = true)
public class KebutuhanDasarController extends LocaleController<KebutuhanDasarVO> { public class KebutuhanDasarController extends LocaleController<KebutuhanDasarVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KebutuhanDasarController.class); private static final Logger LOGGER = getLogger(KebutuhanDasarController.class);
@Autowired @Autowired
private KebutuhanDasarService<KebutuhanDasar> kebutuhanDasarService; 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.service.KelasService;
import com.jasamedika.medifirst2000.vo.KelasVO; import com.jasamedika.medifirst2000.vo.KelasVO;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataIntegrityViolationException; import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.http.ResponseEntity; 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.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus; import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse; 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.HttpStatus.*;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET; import static org.springframework.web.bind.annotation.RequestMethod.GET;
@ -34,7 +34,7 @@ import static org.springframework.web.bind.annotation.RequestMethod.POST;
@RequestMapping("/kelas") @RequestMapping("/kelas")
public class KelasController extends LocaleController<KelasVO> { public class KelasController extends LocaleController<KelasVO> {
private static final Logger LOGGER = LoggerFactory.getLogger(KelasController.class); private static final Logger LOGGER = getLogger(KelasController.class);
@Autowired @Autowired
private KelasService<Kelas> kelasService; private KelasService<Kelas> kelasService;

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