From 8505a79dd93218dc2e34641d84bc9faecb0f2706 Mon Sep 17 00:00:00 2001 From: "hukekuan@163.com" Date: Tue, 23 Jan 2018 17:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/gis3c/ol/entity/Source.java | 46 +++++++++++++++++++ src/main/resources/init.sql | 9 ++++ src/test/resources/sql-map-config-mybatis.xml | 2 + 3 files changed, 57 insertions(+) create mode 100644 src/main/java/com/gis3c/ol/entity/Source.java diff --git a/src/main/java/com/gis3c/ol/entity/Source.java b/src/main/java/com/gis3c/ol/entity/Source.java new file mode 100644 index 0000000..27b2be5 --- /dev/null +++ b/src/main/java/com/gis3c/ol/entity/Source.java @@ -0,0 +1,46 @@ +package com.gis3c.ol.entity; + +import java.util.*; +import java.util.Map; + +/** + * Created by hukekuan on 2018/1/23. + */ +public class Source { + private String sourceId; + private String sourceName; + private java.util.Map params; + private String description; + + public String getSourceId() { + return sourceId; + } + + public void setSourceId(String sourceId) { + this.sourceId = sourceId; + } + + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + public java.util.Map getParams() { + return params; + } + + public void setParams(Map params) { + this.params = params; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/src/main/resources/init.sql b/src/main/resources/init.sql index 540414a..03b4105 100644 --- a/src/main/resources/init.sql +++ b/src/main/resources/init.sql @@ -110,6 +110,15 @@ create table c3gis_ol_source_wmts( description varchar(50) ); +create table c3gis_ol_source( + sourceid varchar(50) not null PRIMARY KEY, + sourcename varchar(50) not null, + url varchar(50) not null, + params jsonb, + description varchar(50) +); + + --样式表 create table c3gis_ol_style_style( styleid varchar(50) not null, diff --git a/src/test/resources/sql-map-config-mybatis.xml b/src/test/resources/sql-map-config-mybatis.xml index 1adbdfb..883da73 100644 --- a/src/test/resources/sql-map-config-mybatis.xml +++ b/src/test/resources/sql-map-config-mybatis.xml @@ -47,9 +47,11 @@ + + \ No newline at end of file