From b00d19ce1ae610ade64d70d6da5725f46b9f1136 Mon Sep 17 00:00:00 2001
From: chenlw <874313221@qq.com>
Date: Sat, 19 Nov 2016 17:40:47 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E7=BC=96=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WebContent/WEB-INF/config/config.properties | 51 ++---
.../config/mybatis-applicationConfig.xml | 8 +
src/com/dao/mapper/data-details-mapper.xml | 27 ++-
.../controller/DataModelController.java | 7 +-
.../platform/controller/OracleController.java | 11 +-
src/com/platform/dao/DataInfoDao.java | 2 +
src/com/platform/entities/PagerOptions.java | 42 +---
.../platform/entities/SqlFileInfoEntity.java | 12 +-
src/com/platform/oracle/OracleConnector.java | 16 +-
.../platform/service/OracleExtractHelper.java | 24 ++-
.../service/impl/CheckoutServiceImpl.java | 6 +-
.../service/impl/DataInfoServiceImp.java | 39 ++--
.../impl/OracleExtractServiceImpl.java | 6 +-
.../service/impl/ScriptMakeService.java | 21 +-
.../thread/ThreadCheckoutStandardOracle.java | 40 +++-
.../ThreadExtractStandardSqlServer.java | 47 ++++-
src/com/platform/utils/page/Page.java | 75 +++++++
.../platform/utils/page/PageInterceptor.java | 194 ++++++++++++++++++
18 files changed, 505 insertions(+), 123 deletions(-)
create mode 100644 src/com/platform/utils/page/Page.java
create mode 100644 src/com/platform/utils/page/PageInterceptor.java
diff --git a/WebContent/WEB-INF/config/config.properties b/WebContent/WEB-INF/config/config.properties
index 38cb9bd..8d53a60 100644
--- a/WebContent/WEB-INF/config/config.properties
+++ b/WebContent/WEB-INF/config/config.properties
@@ -47,8 +47,11 @@ jdbc.minEvictableIdleTimeMillis=300000
#==============================================================================================================
table-suffix=_20152016
-extract-log-localtion=/home/web_manage/log/
-extract-standard-log-localtion=/home/web_manage/log2/
+#extract-log-localtion=/home/web_manage/log/
+#extract-standard-log-localtion=/home/web_manage/log2/
+
+extract-log-localtion=D:\\test\\log\\
+extract-standard-log-localtion=D:\\test\\log2\\
gather-tablespace-name=TS_TTSSS
@@ -84,31 +87,31 @@ oracle-psw=oracle
#=============================================================================================================
# 文件上传下载
#=============================================================================================================
-#file_upload_path=D:\\test\\
-#
-#file_download_path=D:\\test\\export.xlsx
-#
-#package_download_path=D:\\test\\
-#
-#package_name=sql_script_standard
-#
-#sql_script_path_last=D:\\test\\sql_script_last\\
-#
-#sql_script_path_standard=D:\\test\\sql_script_standard\\
+file_upload_path=D:\\test\\
+
+file_download_path=D:\\test\\export.xlsx
+
+package_download_path=D:\\test\\
+
+package_name=sql_script_standard
+
+sql_script_path_last=D:\\test\\sql_script_last\\
+
+sql_script_path_standard=D:\\test\\sql_script_standard\\
#=============================================================================================================
# 文件上传下载
#=============================================================================================================
-file_upload_path=/excel_import_dir/
-
-file_download_path=/excel_export_dir/export.xlsx
-
-package_download_path=/
-
-package_name=DefaultDescription
-
-sql_script_path_last=/DefaultDescription_last/
-
-sql_script_path_standard=/DefaultDescription/
+#file_upload_path=/excel_import_dir/
+#
+#file_download_path=/excel_export_dir/export.xlsx
+#
+#package_download_path=/
+#
+#package_name=DefaultDescription
+#
+#sql_script_path_last=/DefaultDescription_last/
+#
+#sql_script_path_standard=/DefaultDescription/
diff --git a/WebContent/WEB-INF/config/mybatis-applicationConfig.xml b/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
index 329b6ce..c86d977 100644
--- a/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
+++ b/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
@@ -13,6 +13,12 @@
+
+
+
+
+
+
@@ -22,4 +28,6 @@
+
+
\ No newline at end of file
diff --git a/src/com/dao/mapper/data-details-mapper.xml b/src/com/dao/mapper/data-details-mapper.xml
index cc8dd83..63597d2 100644
--- a/src/com/dao/mapper/data-details-mapper.xml
+++ b/src/com/dao/mapper/data-details-mapper.xml
@@ -65,30 +65,30 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- AND data_details.data_type=#{dataType}
+ AND data_details.data_type=#{dataType,jdbcType=VARCHAR}
- AND data_details.mark=#{mark}
+ AND data_details.mark=#{mark,jdbcType=VARCHAR}
AND
- data_details.submitted_batch=#{submittedBatch}
+ data_details.submitted_batch=#{submittedBatch,jdbcType=VARCHAR}
- AND data_details.city_name=#{cityName}
+ AND data_details.city_name=#{cityName,jdbcType=VARCHAR}
AND
- data_details.district_name=#{districtName}
+ data_details.district_name=#{districtName,jdbcType=VARCHAR}
- AND data_details.data_version=#{dataVersion}
+ AND data_details.data_version=#{dataVersion,jdbcType=INTEGER}
- AND data_details.system_name=#{systemName}
+ AND data_details.system_name=#{systemName,jdbcType=VARCHAR}
- AND data_details.data_year=#{dataYear}
+ AND data_details.data_year=#{dataYear,jdbcType=VARCHAR}
@@ -120,6 +120,17 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
LIMIT #{limit}
+
+