diff --git a/pom.xml b/pom.xml
index bb8e5f3..42723e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.c3gis
c3gis
- 1.0.2
+ 1.0.3
diff --git a/src/main/java/com/gis3c/common/bean/BeanUtil.java b/src/main/java/com/gis3c/common/bean/BeanUtil.java
new file mode 100644
index 0000000..7c9bfa7
--- /dev/null
+++ b/src/main/java/com/gis3c/common/bean/BeanUtil.java
@@ -0,0 +1,30 @@
+package com.gis3c.common.bean;
+
+import java.lang.reflect.Field;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Created by hukekuan on 2018/1/29.
+ */
+public class BeanUtil {
+ public static Map Bean2Map(Object instance,Class cls) throws IllegalAccessException {
+ Map result = new HashMap<>();
+ Field[] fields = cls.getDeclaredFields();
+ Object value;
+ Map mapValue;
+ for(Field field:fields){
+ field.setAccessible(true);
+ value = field.get(instance);
+ if(value instanceof HashMap){
+ mapValue = (HashMap) value;
+ for(Map.Entry entry:mapValue.entrySet()){
+ result.put(entry.getKey(),entry.getValue());
+ }
+ }else{
+ result.put(field.getName(),value);
+ }
+ }
+ return result;
+ }
+}
diff --git a/src/main/java/com/gis3c/common/exception/BusinessException.java b/src/main/java/com/gis3c/common/exception/BusinessException.java
new file mode 100644
index 0000000..745ec9a
--- /dev/null
+++ b/src/main/java/com/gis3c/common/exception/BusinessException.java
@@ -0,0 +1,24 @@
+package com.gis3c.common.exception;
+
+/**
+ * Created by hukekuan on 2018/1/29.
+ */
+public class BusinessException extends RuntimeException {
+ private static final long serialVersionUID = 1L;
+
+ public BusinessException(){
+ super();
+ }
+
+ public BusinessException(String message) {
+ super(message);
+ }
+
+ public BusinessException(Throwable cause) {
+ super(cause);
+ }
+
+ public BusinessException(String message, Throwable cause) {
+ super(message, cause);
+ }
+}
diff --git a/src/main/java/com/gis3c/common/exception/DataException.java b/src/main/java/com/gis3c/common/exception/DataException.java
new file mode 100644
index 0000000..7ec077e
--- /dev/null
+++ b/src/main/java/com/gis3c/common/exception/DataException.java
@@ -0,0 +1,25 @@
+package com.gis3c.common.exception;
+
+/**
+ * Created by hukekuan on 2018/1/29.
+ */
+public class DataException extends RuntimeException {
+ private static final long serialVersionUID = 1L;
+
+ public DataException(String message, Throwable cause,
+ boolean enableSuppression, boolean writableStackTrace){
+ super(message,cause,enableSuppression,writableStackTrace);
+ }
+
+ public DataException(String message,Throwable cause){
+ super(message,cause);
+ }
+
+ public DataException(String message){
+ super(message);
+ }
+
+ public DataException(Throwable cause){
+ super(cause);
+ }
+}
diff --git a/src/main/java/com/gis3c/common/exception/ViewException.java b/src/main/java/com/gis3c/common/exception/ViewException.java
new file mode 100644
index 0000000..2595ea4
--- /dev/null
+++ b/src/main/java/com/gis3c/common/exception/ViewException.java
@@ -0,0 +1,25 @@
+package com.gis3c.common.exception;
+
+/**
+ * Created by hukekuan on 2018/1/29.
+ */
+public class ViewException extends RuntimeException {
+ private static final long serialVersionUID = 1L;
+
+ public ViewException(String message, Throwable cause,
+ boolean enableSuppression, boolean writableStackTrace){
+ super(message,cause,enableSuppression,writableStackTrace);
+ }
+
+ public ViewException(String message,Throwable cause){
+ super(message,cause);
+ }
+
+ public ViewException(String message){
+ super(message);
+ }
+
+ public ViewException(Throwable cause){
+ super(cause);
+ }
+}
diff --git a/src/main/java/com/gis3c/ol/service/LayerService.java b/src/main/java/com/gis3c/ol/service/LayerService.java
index a56cb09..a3f41eb 100644
--- a/src/main/java/com/gis3c/ol/service/LayerService.java
+++ b/src/main/java/com/gis3c/ol/service/LayerService.java
@@ -10,7 +10,7 @@ import java.util.List;
*/
public interface LayerService {
public List findAllList();
- public List findLayersByPage(Integer pageSize,Integer currentPage);
+ public List> findLayersByPage(Integer pageSize,Integer currentPage);
public Layer findeLayerById(String layerId);
public Layer findeLayerByName(String layerName);
diff --git a/src/main/java/com/gis3c/ol/service/MapService.java b/src/main/java/com/gis3c/ol/service/MapService.java
index 6685d77..7862483 100644
--- a/src/main/java/com/gis3c/ol/service/MapService.java
+++ b/src/main/java/com/gis3c/ol/service/MapService.java
@@ -9,7 +9,7 @@ import java.util.List;
*/
public interface MapService {
public List