diff --git a/Doc/java接入/BasicData/.idea/libraries/druid_1_0_29.xml b/Doc/java接入/BasicData/.idea/libraries/druid_1_0_29.xml
new file mode 100644
index 0000000..7c622bf
--- /dev/null
+++ b/Doc/java接入/BasicData/.idea/libraries/druid_1_0_29.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/.idea/misc.xml b/Doc/java接入/BasicData/.idea/misc.xml
new file mode 100644
index 0000000..3372485
--- /dev/null
+++ b/Doc/java接入/BasicData/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/.idea/modules.xml b/Doc/java接入/BasicData/.idea/modules.xml
new file mode 100644
index 0000000..b3e68a4
--- /dev/null
+++ b/Doc/java接入/BasicData/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/.idea/uiDesigner.xml b/Doc/java接入/BasicData/.idea/uiDesigner.xml
new file mode 100644
index 0000000..6d50cd4
--- /dev/null
+++ b/Doc/java接入/BasicData/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/.idea/vcs.xml b/Doc/java接入/BasicData/.idea/vcs.xml
new file mode 100644
index 0000000..c8397c9
--- /dev/null
+++ b/Doc/java接入/BasicData/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/.idea/workspace.xml b/Doc/java接入/BasicData/.idea/workspace.xml
new file mode 100644
index 0000000..4dcbd92
--- /dev/null
+++ b/Doc/java接入/BasicData/.idea/workspace.xml
@@ -0,0 +1,486 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ configPlugin
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1573720915735
+
+
+ 1573720915735
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ file://$PROJECT_DIR$/src/com/dsideal/basicdata/handler/ssoHandler.java
+ 28
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BasicData
+
+
+
+
+
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
+
+
+
+ lib
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/BasicData.iml b/Doc/java接入/BasicData/BasicData.iml
new file mode 100644
index 0000000..46026eb
--- /dev/null
+++ b/Doc/java接入/BasicData/BasicData.iml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/README.md b/Doc/java接入/BasicData/README.md
new file mode 100644
index 0000000..30d74d2
--- /dev/null
+++ b/Doc/java接入/BasicData/README.md
@@ -0,0 +1 @@
+test
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/application.properties b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/application.properties
new file mode 100644
index 0000000..b2c07fd
--- /dev/null
+++ b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/application.properties
@@ -0,0 +1,6 @@
+# 数据库信息
+#driverClassName=com.mysql.cj.jdbc.Driver
+driverClassName = org.opengauss.Driver
+user = postgres
+password =DsideaL147258369
+jdbcUrl = jdbc:mysql://10.10.14.199:22066/dsideal_db?useUnicode=true&useSSL=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true&zeroDateTimeBehavior=convertToNull
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/i18n_zh_CN.properties b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/i18n_zh_CN.properties
new file mode 100644
index 0000000..eea7376
--- /dev/null
+++ b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/i18n_zh_CN.properties
@@ -0,0 +1,6 @@
+message.param.not.empty=\u53C2\u6570{0}\u4E0D\u80FD\u4E3A\u7A7A\uFF01
+message.param.not.number=\u53C2\u6570{0}\u4E0D\u662F\u6570\u5B57\uFF01
+message.save.success=\u4FDD\u5B58\u6210\u529F\uFF01
+message.save.fail=\u4FDD\u5B58\u5931\u8D25\uFF01
+message.request.success=\u8bf7\u6c42\u6210\u529f\uff01
+message.request.fail=\u8bf7\u6c42\u5931\u8d25\uff01
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/log4j.properties b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/log4j.properties
new file mode 100644
index 0000000..c13df5b
--- /dev/null
+++ b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/log4j.properties
@@ -0,0 +1,12 @@
+# log4j.rootLogger=WARN, stdout, file
+log4j.rootLogger=WARN, stdout, file
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
+
+# Output to the File
+log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.file.DatePattern='_'yyyy-MM-dd'.log'
+log4j.appender.file.File=./log/basicdata.log
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/sql/Demo.sql b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/sql/Demo.sql
new file mode 100644
index 0000000..4547b18
--- /dev/null
+++ b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/sql/Demo.sql
@@ -0,0 +1,13 @@
+#namespace("Demo")
+ #sql("getDemoList")
+ select id,demo_name, created_date, created_by, last_updated_by, last_updated_date, b_use from t_base_demo where 1=1
+ #if(demo_name)
+ and demo_name like '%#(demoName)%'
+ #end
+ and b_use=#(b_use)
+ #end
+
+ #sql("deleteDemoById")
+ update t_base_demo set b_use= 0 where demo_id =#(demoId)
+ #end
+#end
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/undertow.properties b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/undertow.properties
new file mode 100644
index 0000000..9226a13
--- /dev/null
+++ b/Doc/java接入/BasicData/WebRoot/WEB-INF/classes/undertow.properties
@@ -0,0 +1,23 @@
+undertow.devMode=true
+undertow.port=9090
+undertow.host=0.0.0.0
+# 在本地调试时使用
+#undertow.resourcePath = C:/BasicData/WebRoot, classpath:static
+# 部署到生产环境时使用
+undertow.resourcePath =/usr/local/tomcat8/webapps/BaseSystem,classpath:static
+
+# 项目名称
+undertow.contextPath=/basicdata
+
+# 设定I/O线程数.
+server.undertow.io-threads=8
+# 设定工作线程数
+server.undertow.worker-threads=60
+
+# gzip 压缩开关,云平台大量接口使用capture调用,未处理压缩问题,所以这里统一使用false吧!!如果与云平台无关的话,可以设置为true
+undertow.gzip.enable=false
+
+# 配置压缩级别,默认值 -1。 可配置 1 到 9。 1 拥有最快压缩速度,9 拥有最高压缩率
+undertow.gzip.level=-1
+# 触发压缩的最小内容长度
+undertow.gzip.minLength=1024
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/druid-1.0.29.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/druid-1.0.29.jar
new file mode 100644
index 0000000..9278cc3
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/druid-1.0.29.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/fastjson2-2.0.53.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/fastjson2-2.0.53.jar
new file mode 100644
index 0000000..d6cd0b9
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/fastjson2-2.0.53.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/javax.servlet-api-4.0.1.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/javax.servlet-api-4.0.1.jar
new file mode 100644
index 0000000..844ec7f
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/javax.servlet-api-4.0.1.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jboss-logging-3.4.0.Final.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jboss-logging-3.4.0.Final.jar
new file mode 100644
index 0000000..308cfb8
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jboss-logging-3.4.0.Final.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jfinal-4.7.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jfinal-4.7.jar
new file mode 100644
index 0000000..6e6f20c
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jfinal-4.7.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jfinal-undertow-1.9.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jfinal-undertow-1.9.jar
new file mode 100644
index 0000000..fabb790
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/jfinal-undertow-1.9.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/log4j-1.2.16.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/log4j-1.2.16.jar
new file mode 100644
index 0000000..3f9d847
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/log4j-1.2.16.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/mysql-connector-java-8.0.14.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/mysql-connector-java-8.0.14.jar
new file mode 100644
index 0000000..16056bf
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/mysql-connector-java-8.0.14.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/opengauss-jdbc-5.0.0.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/opengauss-jdbc-5.0.0.jar
new file mode 100644
index 0000000..1318002
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/opengauss-jdbc-5.0.0.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/undertow-core-2.0.25.Final.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/undertow-core-2.0.25.Final.jar
new file mode 100644
index 0000000..c5c9c6d
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/undertow-core-2.0.25.Final.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/undertow-servlet-2.0.25.Final.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/undertow-servlet-2.0.25.Final.jar
new file mode 100644
index 0000000..5b12882
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/undertow-servlet-2.0.25.Final.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/xnio-api-3.3.8.Final.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/xnio-api-3.3.8.Final.jar
new file mode 100644
index 0000000..35a5ce8
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/xnio-api-3.3.8.Final.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/xnio-nio-3.3.8.Final.jar b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/xnio-nio-3.3.8.Final.jar
new file mode 100644
index 0000000..95f7c04
Binary files /dev/null and b/Doc/java接入/BasicData/WebRoot/WEB-INF/lib/xnio-nio-3.3.8.Final.jar differ
diff --git a/Doc/java接入/BasicData/WebRoot/WEB-INF/web.xml b/Doc/java接入/BasicData/WebRoot/WEB-INF/web.xml
new file mode 100644
index 0000000..49c3cc2
--- /dev/null
+++ b/Doc/java接入/BasicData/WebRoot/WEB-INF/web.xml
@@ -0,0 +1,6 @@
+
+
+
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/src/application.properties b/Doc/java接入/BasicData/src/application.properties
new file mode 100644
index 0000000..e154d13
--- /dev/null
+++ b/Doc/java接入/BasicData/src/application.properties
@@ -0,0 +1,6 @@
+# 数据库信息
+#driverClassName=com.mysql.cj.jdbc.Driver
+driverClassName = org.opengauss.Driver
+user = postgres
+password = 123456
+jdbcUrl = jdbc:mysql://10.10.14.199:5432/ds_db?useUnicode=true&useSSL=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true&zeroDateTimeBehavior=convertToNull
diff --git a/Doc/java接入/BasicData/src/com/dsideal/basicdata/Start.java b/Doc/java接入/BasicData/src/com/dsideal/basicdata/Start.java
new file mode 100644
index 0000000..083c03e
--- /dev/null
+++ b/Doc/java接入/BasicData/src/com/dsideal/basicdata/Start.java
@@ -0,0 +1,52 @@
+package com.dsideal.basicdata;
+
+import com.alibaba.druid.wall.WallFilter;
+import com.dsideal.basicdata.demo.demo;
+import com.dsideal.basicdata.handler.ssoHandler;
+import com.jfinal.config.*;
+import com.jfinal.kit.Prop;
+import com.jfinal.kit.PropKit;
+import com.jfinal.plugin.druid.DruidPlugin;
+import com.jfinal.server.undertow.UndertowServer;
+import com.jfinal.template.Engine;
+
+
+public class Start extends JFinalConfig {
+ static Prop p;
+
+ @Override
+ public void configConstant(Constants me) {
+ p = PropKit.use("application.properties");
+ }
+
+ @Override
+ public void configRoute(Routes routes) {
+
+ routes.add("/demo", demo.class);
+
+ }
+
+ @Override
+ public void configEngine(Engine me) {
+
+ }
+
+ @Override
+ public void configPlugin(Plugins plugins) {
+
+ }
+
+ @Override
+ public void configInterceptor(Interceptors me) {
+
+ }
+
+ @Override
+ public void configHandler(Handlers me) {
+ me.add(new ssoHandler());
+ }
+
+ public static void main(String[] args) {
+ UndertowServer.create(Start.class, "undertow.properties").start();
+ }
+}
diff --git a/Doc/java接入/BasicData/src/com/dsideal/basicdata/demo/demo.java b/Doc/java接入/BasicData/src/com/dsideal/basicdata/demo/demo.java
new file mode 100644
index 0000000..6ded0a1
--- /dev/null
+++ b/Doc/java接入/BasicData/src/com/dsideal/basicdata/demo/demo.java
@@ -0,0 +1,9 @@
+package com.dsideal.basicdata.demo;
+
+import com.jfinal.core.Controller;
+
+public class demo extends Controller {
+ public void getInfo() {
+ renderText("OK");
+ }
+}
diff --git a/Doc/java接入/BasicData/src/com/dsideal/basicdata/handler/ssoHandler.java b/Doc/java接入/BasicData/src/com/dsideal/basicdata/handler/ssoHandler.java
new file mode 100644
index 0000000..1fa6f49
--- /dev/null
+++ b/Doc/java接入/BasicData/src/com/dsideal/basicdata/handler/ssoHandler.java
@@ -0,0 +1,63 @@
+package com.dsideal.basicdata.handler;
+
+
+import com.dsideal.basicdata.util.cookieUtil;
+import com.dsideal.basicdata.util.ssoUtil;
+import com.jfinal.handler.Handler;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import java.util.Map;
+
+import static com.jfinal.kit.HandlerKit.redirect;
+
+
+/**
+ * 用于sso验证辅助使用,并存储用户信息到cookie
+ *
+ * @author 黄海
+ */
+@SuppressWarnings("unchecked")
+public class ssoHandler extends Handler {
+ @Override
+ public void handle(String target, HttpServletRequest req,
+ HttpServletResponse res, boolean[] isHandled) {
+
+ boolean needLogin = false;
+
+ String sessionId = "ds_sso_sessionid";
+ String ssoServerUrl = "http://10.10.21.20:9001/dsssoserver";
+ String link = req.getRequestURL().toString();
+
+ String paramSessionId = req.getParameter(sessionId);
+ if (paramSessionId != null) {
+ Map loginMap = ssoUtil.loginCheck(paramSessionId, ssoServerUrl);
+ if (loginMap != null) {
+ cookieUtil.setCookieMap(res, sessionId, paramSessionId);
+ System.out.println(loginMap);
+ } else {
+ needLogin = true;
+ }
+ } else {
+ String cookieSessionId = cookieUtil.getCookieValue(req, sessionId);
+ if (cookieSessionId != null) {
+ Map loginMap = ssoUtil.loginCheck(cookieSessionId, ssoServerUrl);
+ if (loginMap != null) {
+ System.out.println(loginMap);
+ } else {
+ needLogin = true;
+ }
+ } else {
+ needLogin = true;
+ }
+ }
+
+ if (needLogin) {
+ String loginPageUrl = ssoServerUrl + "/web/login?redirect_url=" + link;
+ redirect(loginPageUrl, req, res, isHandled);
+ } else {
+ next.handle(target, req, res, isHandled);
+ }
+ }
+}
diff --git a/Doc/java接入/BasicData/src/com/dsideal/basicdata/util/cookieUtil.java b/Doc/java接入/BasicData/src/com/dsideal/basicdata/util/cookieUtil.java
new file mode 100644
index 0000000..8a190ee
--- /dev/null
+++ b/Doc/java接入/BasicData/src/com/dsideal/basicdata/util/cookieUtil.java
@@ -0,0 +1,57 @@
+package com.dsideal.basicdata.util;
+
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.Iterator;
+import java.util.Map;
+
+public class cookieUtil {
+
+
+ public static String getCookieValue(HttpServletRequest request, String key) {
+ Cookie cookie = getCookie(request, key);
+ if (cookie != null) {
+ return cookie.getValue();
+ }
+ return null;
+ }
+
+ private static Cookie getCookie(HttpServletRequest request, String key) {
+ Cookie[] arr_cookie = request.getCookies();
+ if (arr_cookie != null && arr_cookie.length > 0) {
+ for (Cookie cookie : arr_cookie) {
+ if (cookie.getName().equals(key)) {
+ return cookie;
+ }
+ }
+ }
+ return null;
+ }
+
+
+ public static void setCookieMap(HttpServletResponse response, String key, String val) {
+ setCookie(response, key, val, null, "/", -1, true);
+ }
+
+ public static void setCookieMap(HttpServletResponse response, Map map) {
+ Iterator iter = map.entrySet().iterator();
+ while (iter.hasNext()) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ String key = entry.getKey().toString();
+ String val = entry.getValue().toString();
+ setCookie(response, key, val, null, "/", -1, true);
+ }
+ }
+
+ private static void setCookie(HttpServletResponse response, String key, String value, String domain, String path, int maxAge, boolean isHttpOnly) {
+ Cookie cookie = new Cookie(key, value);
+ if (domain != null) {
+ cookie.setDomain(domain);
+ }
+ cookie.setPath(path);
+ cookie.setMaxAge(maxAge);
+ //cookie.setHttpOnly(isHttpOnly);
+ response.addCookie(cookie);
+ }
+}
diff --git a/Doc/java接入/BasicData/src/com/dsideal/basicdata/util/ssoUtil.java b/Doc/java接入/BasicData/src/com/dsideal/basicdata/util/ssoUtil.java
new file mode 100644
index 0000000..39893a5
--- /dev/null
+++ b/Doc/java接入/BasicData/src/com/dsideal/basicdata/util/ssoUtil.java
@@ -0,0 +1,43 @@
+package com.dsideal.basicdata.util;
+
+import com.alibaba.fastjson2.JSONObject;
+import com.jfinal.kit.HttpKit;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class ssoUtil {
+
+ public static Map loginCheck(String sessionId, String ssoServerAddr) {
+ if (sessionId != null) {
+ return getLoginMap(sessionId, ssoServerAddr);
+ }
+ return null;
+ }
+
+ private static Map getLoginMap(String sessionId, String ssoServerAddr) {
+
+ Map loginMap = new HashMap();
+ try {
+ String ssoServerUrl = ssoServerAddr + "/web/loginCheck";
+ Map ssoServerUrlParams = new HashMap();
+ ssoServerUrlParams.put("sessionId", sessionId);
+ String strJson = HttpKit.post(ssoServerUrl, "sessionId=2bf1f3d6-8b7e-468a-9365-976498fced9b");
+ JSONObject objJson = JSONObject.parseObject(strJson);
+ if (objJson.getBoolean("success")) {
+ loginMap.put("person_id", objJson.getString("personId"));
+ loginMap.put("bureau_id", objJson.getString("bureauId"));
+ loginMap.put("identity_id", objJson.getString("identityId"));
+ loginMap.put("city_id", objJson.getString("city_id"));
+ loginMap.put("area_id", objJson.getString("area_id"));
+ loginMap.put("main_person_id", objJson.getString("mainPersonId"));
+ } else {
+ loginMap = null;
+ }
+ } catch (Exception e) {
+ loginMap = null;
+ e.printStackTrace();
+ }
+ return loginMap;
+ }
+}
diff --git a/Doc/java接入/BasicData/src/i18n_zh_CN.properties b/Doc/java接入/BasicData/src/i18n_zh_CN.properties
new file mode 100644
index 0000000..eea7376
--- /dev/null
+++ b/Doc/java接入/BasicData/src/i18n_zh_CN.properties
@@ -0,0 +1,6 @@
+message.param.not.empty=\u53C2\u6570{0}\u4E0D\u80FD\u4E3A\u7A7A\uFF01
+message.param.not.number=\u53C2\u6570{0}\u4E0D\u662F\u6570\u5B57\uFF01
+message.save.success=\u4FDD\u5B58\u6210\u529F\uFF01
+message.save.fail=\u4FDD\u5B58\u5931\u8D25\uFF01
+message.request.success=\u8bf7\u6c42\u6210\u529f\uff01
+message.request.fail=\u8bf7\u6c42\u5931\u8d25\uff01
diff --git a/Doc/java接入/BasicData/src/log4j.properties b/Doc/java接入/BasicData/src/log4j.properties
new file mode 100644
index 0000000..c13df5b
--- /dev/null
+++ b/Doc/java接入/BasicData/src/log4j.properties
@@ -0,0 +1,12 @@
+# log4j.rootLogger=WARN, stdout, file
+log4j.rootLogger=WARN, stdout, file
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
+
+# Output to the File
+log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.file.DatePattern='_'yyyy-MM-dd'.log'
+log4j.appender.file.File=./log/basicdata.log
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/src/sql/Demo.sql b/Doc/java接入/BasicData/src/sql/Demo.sql
new file mode 100644
index 0000000..4547b18
--- /dev/null
+++ b/Doc/java接入/BasicData/src/sql/Demo.sql
@@ -0,0 +1,13 @@
+#namespace("Demo")
+ #sql("getDemoList")
+ select id,demo_name, created_date, created_by, last_updated_by, last_updated_date, b_use from t_base_demo where 1=1
+ #if(demo_name)
+ and demo_name like '%#(demoName)%'
+ #end
+ and b_use=#(b_use)
+ #end
+
+ #sql("deleteDemoById")
+ update t_base_demo set b_use= 0 where demo_id =#(demoId)
+ #end
+#end
\ No newline at end of file
diff --git a/Doc/java接入/BasicData/src/undertow.properties b/Doc/java接入/BasicData/src/undertow.properties
new file mode 100644
index 0000000..9226a13
--- /dev/null
+++ b/Doc/java接入/BasicData/src/undertow.properties
@@ -0,0 +1,23 @@
+undertow.devMode=true
+undertow.port=9090
+undertow.host=0.0.0.0
+# 在本地调试时使用
+#undertow.resourcePath = C:/BasicData/WebRoot, classpath:static
+# 部署到生产环境时使用
+undertow.resourcePath =/usr/local/tomcat8/webapps/BaseSystem,classpath:static
+
+# 项目名称
+undertow.contextPath=/basicdata
+
+# 设定I/O线程数.
+server.undertow.io-threads=8
+# 设定工作线程数
+server.undertow.worker-threads=60
+
+# gzip 压缩开关,云平台大量接口使用capture调用,未处理压缩问题,所以这里统一使用false吧!!如果与云平台无关的话,可以设置为true
+undertow.gzip.enable=false
+
+# 配置压缩级别,默认值 -1。 可配置 1 到 9。 1 拥有最快压缩速度,9 拥有最高压缩率
+undertow.gzip.level=-1
+# 触发压缩的最小内容长度
+undertow.gzip.minLength=1024
diff --git a/Doc/统一认证服务接入系统集成开发手册V2.01.doc b/Doc/统一认证服务接入系统集成开发手册V2.01.doc
index 4104588..32d41f3 100644
Binary files a/Doc/统一认证服务接入系统集成开发手册V2.01.doc and b/Doc/统一认证服务接入系统集成开发手册V2.01.doc differ