diff --git a/jasamedika-bridging/pom.xml b/jasamedika-bridging/pom.xml
index b79077c1..11a63901 100644
--- a/jasamedika-bridging/pom.xml
+++ b/jasamedika-bridging/pom.xml
@@ -13,21 +13,21 @@
../Medifirst2000/pom.xml
-
- io.socket
- socket.io-client
- 0.7.0
-
-
- org.apache.httpcomponents
- httpclient
- 4.5.2
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
+
+ io.socket
+ socket.io-client
+ 0.7.0
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.2
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
${project.groupId}
jasamedika-config
@@ -58,7 +58,7 @@
4.12
test
-
+
org.springframework
spring-test
@@ -79,8 +79,8 @@
${org.springframework.version}
-
-
+
+
@@ -185,29 +185,29 @@
swagger-springmvc
0.6.5
-
-
+
+
- com.google.zxing
- core
- 2.2
+ com.google.zxing
+ core
+ 2.2
-
+
- com.google.zxing
- javase
- 2.2
+ com.google.zxing
+ javase
+ 2.2
-
+
- com.google.zxing
- zxing-parent
- 3.2.0
- pom
+ com.google.zxing
+ zxing-parent
+ 3.2.0
+ pom
@@ -232,39 +232,44 @@
jar
compile
-
+
org.springframework
spring-context-support
${org.springframework.version}
-
+
- net.sourceforge.barbecue
- barbecue
- 1.5-beta1
+ net.sourceforge.barbecue
+ barbecue
+ 1.5-beta1
-
+
- net.sf.barcode4j
- barcode4j
- 2.1
+ net.sf.barcode4j
+ barcode4j
+ 2.1
-
+
- org.apache.xmlgraphics
- batik-bridge
- 1.7
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
+
+
+
+
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
-
-
diff --git a/jasamedika-cssd/pom.xml b/jasamedika-cssd/pom.xml
index a85e5239..026be8e9 100644
--- a/jasamedika-cssd/pom.xml
+++ b/jasamedika-cssd/pom.xml
@@ -1,27 +1,27 @@
- 4.0.0
- jasamedika-cssd
- war
- jasamedika-cssd
-
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ jasamedika-cssd
+ war
+ jasamedika-cssd
+
com.jasamedika
Medifirst2000
1.0.0
../Medifirst2000/pom.xml
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- io.socket
- socket.io-client
- 0.7.0
-
-
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ io.socket
+ socket.io-client
+ 0.7.0
+
+
${project.groupId}
jasamedika-config
@@ -45,14 +45,14 @@
jasamedika-business
${project.version}
-
+
junit
junit
4.12
test
-
+
org.springframework
spring-test
@@ -72,7 +72,7 @@
spring-webmvc
${org.springframework.version}
-
+
org.springframework
@@ -176,29 +176,29 @@
swagger-springmvc
0.6.5
-
-
+
+
- com.google.zxing
- core
- 2.2
+ com.google.zxing
+ core
+ 2.2
-
+
- com.google.zxing
- javase
- 2.2
+ com.google.zxing
+ javase
+ 2.2
-
+
- com.google.zxing
- zxing-parent
- 3.2.0
- pom
+ com.google.zxing
+ zxing-parent
+ 3.2.0
+ pom
@@ -223,40 +223,37 @@
jar
compile
-
+
org.springframework
spring-context-support
${org.springframework.version}
-
+
- net.sourceforge.barbecue
- barbecue
- 1.5-beta1
+ net.sourceforge.barbecue
+ barbecue
+ 1.5-beta1
-
+
- net.sf.barcode4j
- barcode4j
- 2.1
+ net.sf.barcode4j
+ barcode4j
+ 2.1
-
+
- org.apache.xmlgraphics
- batik-bridge
- 1.7
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
-
-
-
+
+
+
commons-codec
commons-codec
@@ -268,9 +265,17 @@
${commons-collections.version}
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
+
+
-
+
jasamedika-cssd
@@ -290,7 +295,7 @@
/
-
+
Module Medifirst2000 untuk Web / Controller. Tempat API diexpose oleh REST Client.
diff --git a/jasamedika-ipsrs/pom.xml b/jasamedika-ipsrs/pom.xml
index cf3fd134..1f2a64c2 100644
--- a/jasamedika-ipsrs/pom.xml
+++ b/jasamedika-ipsrs/pom.xml
@@ -1,27 +1,27 @@
- 4.0.0
- jasamedika-ipsrs
- war
- jasamedika-ipsrs
-
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ jasamedika-ipsrs
+ war
+ jasamedika-ipsrs
+
com.jasamedika
Medifirst2000
1.0.0
../Medifirst2000/pom.xml
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- io.socket
- socket.io-client
- 0.7.0
-
-
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ io.socket
+ socket.io-client
+ 0.7.0
+
+
${project.groupId}
jasamedika-config
@@ -45,14 +45,14 @@
jasamedika-business
${project.version}
-
+
junit
junit
4.12
test
-
+
org.springframework
spring-test
@@ -72,7 +72,7 @@
spring-webmvc
${org.springframework.version}
-
+
org.springframework
@@ -176,29 +176,29 @@
swagger-springmvc
0.6.5
-
-
+
+
- com.google.zxing
- core
- 2.2
+ com.google.zxing
+ core
+ 2.2
-
+
- com.google.zxing
- javase
- 2.2
+ com.google.zxing
+ javase
+ 2.2
-
+
- com.google.zxing
- zxing-parent
- 3.2.0
- pom
+ com.google.zxing
+ zxing-parent
+ 3.2.0
+ pom
@@ -223,40 +223,37 @@
jar
compile
-
+
org.springframework
spring-context-support
${org.springframework.version}
-
+
- net.sourceforge.barbecue
- barbecue
- 1.5-beta1
+ net.sourceforge.barbecue
+ barbecue
+ 1.5-beta1
-
+
- net.sf.barcode4j
- barcode4j
- 2.1
+ net.sf.barcode4j
+ barcode4j
+ 2.1
-
+
- org.apache.xmlgraphics
- batik-bridge
- 1.7
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
-
-
-
+
+
+
commons-codec
commons-codec
@@ -268,9 +265,17 @@
${commons-collections.version}
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
+
+
-
+
jasamedika-ipsrs
@@ -290,7 +295,7 @@
/
-
+
Module Medifirst2000 untuk Web / Controller. Tempat API diexpose oleh REST Client.
diff --git a/jasamedika-it/pom.xml b/jasamedika-it/pom.xml
index 151085d9..dd9d1382 100644
--- a/jasamedika-it/pom.xml
+++ b/jasamedika-it/pom.xml
@@ -1,27 +1,27 @@
- 4.0.0
- jasamedika-it
- war
- jasamedika-it
-
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ jasamedika-it
+ war
+ jasamedika-it
+
com.jasamedika
Medifirst2000
1.0.0
../Medifirst2000/pom.xml
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- io.socket
- socket.io-client
- 0.7.0
-
-
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ io.socket
+ socket.io-client
+ 0.7.0
+
+
${project.groupId}
jasamedika-config
@@ -45,14 +45,14 @@
jasamedika-business
${project.version}
-
+
junit
junit
4.12
test
-
+
org.springframework
spring-test
@@ -72,7 +72,7 @@
spring-webmvc
${org.springframework.version}
-
+
org.springframework
@@ -176,29 +176,29 @@
swagger-springmvc
0.6.5
-
-
+
+
- com.google.zxing
- core
- 2.2
+ com.google.zxing
+ core
+ 2.2
-
+
- com.google.zxing
- javase
- 2.2
+ com.google.zxing
+ javase
+ 2.2
-
+
- com.google.zxing
- zxing-parent
- 3.2.0
- pom
+ com.google.zxing
+ zxing-parent
+ 3.2.0
+ pom
@@ -223,39 +223,36 @@
jar
compile
-
+
org.springframework
spring-context-support
${org.springframework.version}
-
+
- net.sourceforge.barbecue
- barbecue
- 1.5-beta1
+ net.sourceforge.barbecue
+ barbecue
+ 1.5-beta1
-
+
- net.sf.barcode4j
- barcode4j
- 2.1
+ net.sf.barcode4j
+ barcode4j
+ 2.1
-
+
- org.apache.xmlgraphics
- batik-bridge
- 1.7
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
-
-
+
+
commons-codec
@@ -267,10 +264,18 @@
commons-collections
${commons-collections.version}
-
+
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
+
+
-
+
jasamedika-it
@@ -290,7 +295,7 @@
/
-
+
Module Medifirst2000 untuk Web / Controller. Tempat API diexpose oleh REST Client.
diff --git a/jasamedika-k3kl/pom.xml b/jasamedika-k3kl/pom.xml
index 9f8c20cb..254d233d 100644
--- a/jasamedika-k3kl/pom.xml
+++ b/jasamedika-k3kl/pom.xml
@@ -12,16 +12,16 @@
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- io.socket
- socket.io-client
- 0.7.0
-
-
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ io.socket
+ socket.io-client
+ 0.7.0
+
+
${project.groupId}
jasamedika-config
@@ -45,14 +45,14 @@
jasamedika-business
${project.version}
-
+
junit
junit
4.12
test
-
+
org.springframework
spring-test
@@ -72,7 +72,7 @@
spring-webmvc
${org.springframework.version}
-
+
org.springframework
@@ -176,29 +176,29 @@
swagger-springmvc
0.6.5
-
-
+
+
- com.google.zxing
- core
- 2.2
+ com.google.zxing
+ core
+ 2.2
-
+
- com.google.zxing
- javase
- 2.2
+ com.google.zxing
+ javase
+ 2.2
-
+
- com.google.zxing
- zxing-parent
- 3.2.0
- pom
+ com.google.zxing
+ zxing-parent
+ 3.2.0
+ pom
@@ -223,39 +223,36 @@
jar
compile
-
+
org.springframework
spring-context-support
${org.springframework.version}
-
+
- net.sourceforge.barbecue
- barbecue
- 1.5-beta1
+ net.sourceforge.barbecue
+ barbecue
+ 1.5-beta1
-
+
- net.sf.barcode4j
- barcode4j
- 2.1
+ net.sf.barcode4j
+ barcode4j
+ 2.1
-
+
- org.apache.xmlgraphics
- batik-bridge
- 1.7
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
-
-
+
+
commons-codec
@@ -268,6 +265,14 @@
${commons-collections.version}
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
+
+
jasamedika-k3kl
@@ -289,7 +294,7 @@
/
-
+
Module Medifirst2000 untuk Web / Controller. Tempat API diexpose oleh REST Client.
diff --git a/jasamedika-laundry/pom.xml b/jasamedika-laundry/pom.xml
index b6d42264..52ee0fb9 100644
--- a/jasamedika-laundry/pom.xml
+++ b/jasamedika-laundry/pom.xml
@@ -1,27 +1,27 @@
- 4.0.0
- jasamedika-laundry
- war
- jasamedika-laundry
-
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ 4.0.0
+ jasamedika-laundry
+ war
+ jasamedika-laundry
+
com.jasamedika
Medifirst2000
1.0.0
../Medifirst2000/pom.xml
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- io.socket
- socket.io-client
- 0.7.0
-
-
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ io.socket
+ socket.io-client
+ 0.7.0
+
+
${project.groupId}
jasamedika-config
@@ -45,14 +45,14 @@
jasamedika-business
${project.version}
-
+
junit
junit
4.12
test
-
+
org.springframework
spring-test
@@ -72,7 +72,7 @@
spring-webmvc
${org.springframework.version}
-
+
org.springframework
@@ -176,29 +176,29 @@
swagger-springmvc
0.6.5
-
-
+
+
- com.google.zxing
- core
- 2.2
+ com.google.zxing
+ core
+ 2.2
-
+
- com.google.zxing
- javase
- 2.2
+ com.google.zxing
+ javase
+ 2.2
-
+
- com.google.zxing
- zxing-parent
- 3.2.0
- pom
+ com.google.zxing
+ zxing-parent
+ 3.2.0
+ pom
@@ -223,39 +223,36 @@
jar
compile
-
+
org.springframework
spring-context-support
${org.springframework.version}
-
+
- net.sourceforge.barbecue
- barbecue
- 1.5-beta1
+ net.sourceforge.barbecue
+ barbecue
+ 1.5-beta1
-
+
- net.sf.barcode4j
- barcode4j
- 2.1
+ net.sf.barcode4j
+ barcode4j
+ 2.1
-
+
- org.apache.xmlgraphics
- batik-bridge
- 1.7
+ org.apache.xmlgraphics
+ batik-bridge
+ 1.7
-
-
+
+
commons-codec
@@ -267,10 +264,18 @@
commons-collections
${commons-collections.version}
-
+
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
+
+
-
+
jasamedika-laundry
@@ -290,7 +295,7 @@
/
-
+
Module Medifirst2000 untuk Web / Controller. Tempat API diexpose oleh REST Client.
diff --git a/jasamedika-pelayanan/pom.xml b/jasamedika-pelayanan/pom.xml
index 8f0476ca..3c086abb 100644
--- a/jasamedika-pelayanan/pom.xml
+++ b/jasamedika-pelayanan/pom.xml
@@ -265,6 +265,14 @@
${commons-collections.version}
+
+
+ org.projectlombok
+ lombok
+ ${project.lombok.version}
+ provided
+
+
diff --git a/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/Constants.java b/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/Constants.java
index 568fc300..7f6b0058 100644
--- a/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/Constants.java
+++ b/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/Constants.java
@@ -9,70 +9,56 @@ import java.text.SimpleDateFormat;
* @author Roberto
*/
public class Constants {
+
public static final String JASAMEDIKA = "SkFTQU1FRElLQQ==";
+
public static final String APP_VERSION = "APP_VERSION";
-
+
public static final String AUTH_HEADER_NAME = "X-AUTH-TOKEN";
-
- //for example
+
public static final String IDR = "IDR";
+
public static final String RP = "RP";
-
+
public static final String COMMA = ",";
public static final DecimalFormat ONE_COMA_FORMAT = new DecimalFormat("#.#");
- public static final DecimalFormat TWO_COMA_FORMAT = new DecimalFormat(
- "#.##");
- public static final DecimalFormat MONEY_FORMAT_WITHOUT_COMMA = new DecimalFormat(
- "###,###");
+ public static final DecimalFormat TWO_COMA_FORMAT = new DecimalFormat("#.##");
+
+ public static final DecimalFormat MONEY_FORMAT_WITHOUT_COMMA = new DecimalFormat("###,###");
public static final class DateFormat {
- public static final SimpleDateFormat yyyyMMdd = new SimpleDateFormat(
- "yyyyMMdd");
- public static final SimpleDateFormat dd_MMM_yyyy = new SimpleDateFormat(
- "dd MMM yyyy");
- public static final SimpleDateFormat yyyy_MM_dd_HH_mm_ss = new SimpleDateFormat(
- "yyyy-MM-dd HH:mm:ss");
- public static final SimpleDateFormat yyyy_MM_dd_T_HH_mm_ss = new SimpleDateFormat(
- "yyyy-MM-dd'T'HH:mm:ss");
- public static final SimpleDateFormat yyyyMMdd_HH_mm_ss = new SimpleDateFormat(
- "yyyyMMdd HH:mm:ss");
+ public static final SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd");
+ public static final SimpleDateFormat dd_MMM_yyyy = new SimpleDateFormat("dd MMM yyyy");
+ public static final SimpleDateFormat yyyy_MM_dd_HH_mm_ss = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ public static final SimpleDateFormat yyyy_MM_dd_T_HH_mm_ss = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
+ public static final SimpleDateFormat yyyyMMdd_HH_mm_ss = new SimpleDateFormat("yyyyMMdd HH:mm:ss");
}
- /* message */
public static final class MessageInfo {
public static final String INFO_MESSAGE = "INFO_MESSAGE";
public static final String WARNING_MESSAGE = "WARNING_MESSAGE";
public static final String ERROR_MESSAGE = "ERROR_MESSAGE";
public static final String EXCEPTION_MESSAGE = "EXCEPTION_MESSAGE";
-
}
-
- /* locale id (indonesia / default) and en (english) */
+
public static final class Locale {
public static final String INA = "ina";
public static final String EN = "en";
-
}
- //Update perubahan di sini, harus disamakan dengan package yang ada di jasamedika-bussiness
- //com.jasamedika.medifirst2000.logging.hibernate.async
+
public static final class HttpHeader {
public static final String SUPERVISING = "Supervising";
public static final String MODULE = "Module";
public static final String FORM = "Form";
public static final String ACTION = "Action";
-
- public static final String URL_FORM = "AlamatUrlForm"; // syamsu
- public static final String KD_RUANGAN = "KdRuangan"; // syamsu
- public static final String KD_RUANGAN_T = "KdRuanganT"; // syamsu
- public static final String KD_RUANGAN_A = "KdRuanganA"; // syamsu
- public static final String TGL_KIRIM = "tglKirim"; // syamsu
-// public static final String RUANGAN_TUJUAN = "ruanganTujuan"; // syamsu
-// public static final String ID_RUANGAN_TUJUAN_ALT = "ruanganTujuanAlt"; // syamsu
- public static final String KD_USER = "KdUser"; // syamsu
-
-
+ public static final String URL_FORM = "AlamatUrlForm";
+ public static final String KD_RUANGAN = "KdRuangan";
+ public static final String KD_RUANGAN_T = "KdRuanganT";
+ public static final String KD_RUANGAN_A = "KdRuanganA";
+ public static final String TGL_KIRIM = "tglKirim";
+ public static final String KD_USER = "KdUser";
}
}
diff --git a/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/MessageResource.java b/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/MessageResource.java
index d15ae2fc..ac9f1e91 100644
--- a/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/MessageResource.java
+++ b/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/constants/MessageResource.java
@@ -9,10 +9,13 @@ package com.jasamedika.medifirst2000.constants;
public final class MessageResource {
public static final String LABEL_SUCCESS = "label.success";
+
public static final String LABEL_ERROR = "label.error";
+
public static final String LABEL_TRY_AGAIN = "label.try_again";
+
public static final String LABEL_SUCCESS_CREATED = "label.success.created";
+
public static final String LABEL_SUCCESS_OK = "label.success.ok";
- public static final String LABEL_UPDATE_DATA_CUTI = "label.update.data.cuti";
}
diff --git a/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/controller/AkomodasiController.java b/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/controller/AkomodasiController.java
index 354dc220..07bb0abb 100644
--- a/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/controller/AkomodasiController.java
+++ b/jasamedika-pelayanan/src/main/java/com/jasamedika/medifirst2000/controller/AkomodasiController.java
@@ -1,161 +1,156 @@
package com.jasamedika.medifirst2000.controller;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.validation.Valid;
-
+import com.jasamedika.medifirst2000.constants.MessageResource;
+import com.jasamedika.medifirst2000.controller.base.LocaleController;
+import com.jasamedika.medifirst2000.exception.ServiceVOException;
+import com.jasamedika.medifirst2000.service.MapRuanganToAkomodasiService;
+import com.jasamedika.medifirst2000.service.RuanganService;
+import com.jasamedika.medifirst2000.util.rest.RestUtil;
+import com.jasamedika.medifirst2000.vo.MapRuanganToAkomodasiVO;
+import com.jasamedika.medifirst2000.vo.RuanganVO;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
-import com.jasamedika.medifirst2000.constants.Constants;
-import com.jasamedika.medifirst2000.constants.MessageResource;
-import com.jasamedika.medifirst2000.controller.base.LocaleController;
-import com.jasamedika.medifirst2000.core.web.WebConstants;
-import com.jasamedika.medifirst2000.exception.ServiceVOException;
-import com.jasamedika.medifirst2000.service.MapRuanganToAkomodasiService;
-import com.jasamedika.medifirst2000.service.RuanganService;
-import com.jasamedika.medifirst2000.util.CommonUtil;
-import com.jasamedika.medifirst2000.util.rest.RestUtil;
-import com.jasamedika.medifirst2000.vo.MapRuanganToAkomodasiVO;
+import javax.servlet.http.HttpServletRequest;
+import javax.validation.Valid;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import static com.jasamedika.medifirst2000.constants.Constants.MessageInfo.ERROR_MESSAGE;
+import static com.jasamedika.medifirst2000.core.web.WebConstants.HttpHeaderInfo.LABEL_SUCCESS;
+import static com.jasamedika.medifirst2000.util.CommonUtil.isNotNullOrEmpty;
+import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonHttpStatus;
+import static com.jasamedika.medifirst2000.util.rest.RestUtil.getJsonResponse;
+import static org.slf4j.LoggerFactory.getLogger;
+import static org.springframework.http.HttpStatus.*;
+import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
+import static org.springframework.web.bind.annotation.RequestMethod.*;
@RestController
@RequestMapping("/akomodasi")
public class AkomodasiController extends LocaleController {
- private static final Logger LOGGER = LoggerFactory.getLogger(AkomodasiController.class);
+ private static final Logger LOGGER = getLogger(AkomodasiController.class);
@Autowired
private MapRuanganToAkomodasiService mapRuanganToAkomodasiService;
@Autowired
- private RuanganService ruanganService;
+ private RuanganService ruanganService;
- @RequestMapping(value = "/save-mapping", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
+ @RequestMapping(value = "/save-mapping", method = POST, produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE)
public ResponseEntity