diff --git a/WebContent/WEB-INF/config/config.properties b/WebContent/WEB-INF/config/config.properties
index 716bb37a..6bf45a62 100644
--- a/WebContent/WEB-INF/config/config.properties
+++ b/WebContent/WEB-INF/config/config.properties
@@ -17,6 +17,9 @@ jdbc.mysql.password=root
#=============================================================================================================
# hui用户名
gather-user-name=system
+gather-standard-user-name=u_bzbjy
+gather-standard-exec-table-name=kzxzb
+gather-standard-pay-table-name=zfxxb
# 密码
gather-user-password=oracle
@@ -43,7 +46,7 @@ jdbc.minEvictableIdleTimeMillis=300000
#
#==============================================================================================================
table-suffix=_20152016
-extract-log-localtion=/home/web_manage/log/
+
gather-tablespace-name=TS_TTSSS
#dbf file's path must exist
@@ -57,43 +60,53 @@ kubeMasterUrl=http://192.168.0.110:8080/
collect-user-name=system
collect-password=oracle
collect-service-name=orcl
+# standard table :
+# eg:sql -> select count(*) from u_bzbjy.kzxzb; select count(*) from u_bzbjy.zfxxb;
+collect-user-table=u_bzbjy
+collect-exec-table=kzxzb
+collect-pay-table=zfxxb
gfs_control_ip=192.168.0.110
gfs_control_rootPassWd=root
-HttpClientConstant_URL_IP_PORT=http://192.168.0.110:8088/jfinal/
+HttpClientConstant_URL_IP_PORT=http://192.168.0.110:9001/
dataBefore=6
+numOneImportExcel=12
+oracle-orcl=orcl
+oracle-user=system
+oracle-psw=oracle
+
#=============================================================================================================
-# 文件上传下载
+# windows path
#=============================================================================================================
-#file_upload_path=D:\\test\\
+
+#extract-log-localtion=D:\\test\\log\\
+#extract-standard-log-localtion=D:\\test\\log2\\
#
+#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\\
#=============================================================================================================
-# 文件上传下载
+# linux path
#=============================================================================================================
-file_upload_path=/excel_import_dir/
+extract-log-localtion=/home/web_manage/log/
+extract-standard-log-localtion=/home/web_manage/log2/
+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 329b6ce2..a34df771 100644
--- a/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
+++ b/WebContent/WEB-INF/config/mybatis-applicationConfig.xml
@@ -4,16 +4,24 @@
"http://mybatis.org/dtd/mybatis-3-config.dtd">
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/config/spring-applicationContext.xml b/WebContent/WEB-INF/config/spring-applicationContext.xml
index dcfba49b..3cd3b65b 100644
--- a/WebContent/WEB-INF/config/spring-applicationContext.xml
+++ b/WebContent/WEB-INF/config/spring-applicationContext.xml
@@ -22,6 +22,7 @@
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
+
@@ -40,13 +41,29 @@
+
+
+
+ classpath:com/dao/mapper/*apper.xml
+
+
+
+
-
+
+
+
+
基于@ExceptionHandler异常处理----全局异常处理
@@ -42,19 +43,21 @@ public class BaseController {
*/
@ExceptionHandler
public Object exp(HttpServletRequest request, HttpServletResponse response,Exception ex) {
- System.out.println("URI"+request.getRequestURI());
- request.setAttribute("ex", ex);
- System.err.println("BaseController --exp " + ex);
+ log.error("URI"+request.getRequestURI());
+ log.error("BaseController --exp " + ex);
new CustomException("base_code_", ex);
// 根据不同错误转向不同页面
if(ex instanceof CustomException) {
+ //返回异常信息
+ ModelMap modelMap = new ModelMap();
CustomException cuse = (CustomException) ex;
Map errmsg = new HashMap<>();
errmsg.put("code", cuse.getCode());
errmsg.put("msg", cuse.getMsg());
log.error(cuse.getCode());
+ modelMap.addAllAttributes(errmsg);
response.setStatus(500);
- return response;
+ return modelMap;
} else {
//其他错误则 调到指定页面
log.error(Configs.GLOBAL_EXP_NOT_CUSTOM, ex);
diff --git a/src/com/base/Custom4exception.java b/src/com/base/Custom4exception.java
index a5d596a2..621628f7 100644
--- a/src/com/base/Custom4exception.java
+++ b/src/com/base/Custom4exception.java
@@ -42,4 +42,8 @@ public class Custom4exception {
/** * MySQL错误 */
public final static String MySQL_Except = "3002002001";
+//3003001
+ /** * 信息系统-校验-sqlserver抽取标准表 --连接不上标准表汇总库错误 */
+ public final static String CHECKOUT_EXTRACT_EXCEPT = "3003001001";
+
}
diff --git a/src/com/base/CustomException.java b/src/com/base/CustomException.java
index ad10869c..8a49b6a0 100644
--- a/src/com/base/CustomException.java
+++ b/src/com/base/CustomException.java
@@ -7,7 +7,6 @@ import java.lang.reflect.InvocationTargetException;
import org.apache.log4j.Logger;
-import com.platform.controller.DataModelController;
import com.platform.utils.Bean2MapUtils;
import com.platform.utils.Configs;
import com.platform.utils.Constant;
@@ -51,7 +50,7 @@ public class CustomException extends Exception {
* @param obj
*/
public CustomException(String code,Exception e,Object... obj) {
- super(code);
+// super(code);
StringBuffer sbuf= new StringBuffer();
this.code = code;
sbuf.append(code);
diff --git a/src/com/base/MyException.java b/src/com/base/MyException.java
new file mode 100644
index 00000000..36c40fb3
--- /dev/null
+++ b/src/com/base/MyException.java
@@ -0,0 +1,44 @@
+
+/**
+ * 文件名 : MyException.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author liliy
+ * 版本 : <版本>
+ * 修改时间: 2016年10月19日
+ * 修改内容: <修改内容>
+ */
+package com.base;
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author liliy
+ * @version [版本号,2016年10月19日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+
+public class MyException {
+ private String mess;
+
+ public MyException() {
+ }
+
+ /**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @see [类、类#方法、类#成员]
+ */
+ public MyException(String mess) {
+ // TODO Auto-generated constructor stub
+ setMess(mess);
+ }
+
+ public void setMess(String mess){
+ this.mess=mess;
+ }
+ public String getMess(){
+ return this.mess;
+ }
+}
\ No newline at end of file
diff --git a/src/com/base/PostData.java b/src/com/base/PostData.java
new file mode 100644
index 00000000..750e12c4
--- /dev/null
+++ b/src/com/base/PostData.java
@@ -0,0 +1,114 @@
+
+/**
+ * 文件名 : PostObj.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author liliy
+ * 版本 : <版本>
+ * 修改时间: 2016年10月18日
+ * 修改内容: <修改内容>
+ */
+package com.base;
+
+import java.util.List;
+import java.util.Stack;
+
+/**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @author liliy
+ * @version [版本号,2016年10月18日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+
+public class PostData {
+ private Object data;
+ private Stack exceptionsStack;
+ /**
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @see [类、类#方法、类#成员]
+ */
+ public PostData() {
+ // TODO Auto-generated constructor stub
+ exceptionsStack=new Stack<>();
+ }
+ public PostData(Object data) {
+ // TODO Auto-generated constructor stub
+ this.data=data;
+ exceptionsStack=new Stack<>();
+ }
+ /**
+ * @return the data
+ */
+ public Object getData() {
+ return data;
+ }
+ /**
+ * @param data the data to set
+ */
+ public void setData(Object data) {
+ this.data = data;
+ }
+ /**
+ *
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @param e
+ * @see [类、类#方法、类#成员]
+ */
+ public void pushExceptionsStack(String mess){
+ MyException myException=new MyException(mess);
+ exceptionsStack.push(myException);
+ }
+ public void pushExceptionsStackList(List messs){
+ if(messs==null)return;
+ for(String mess:messs){
+ MyException myException=new MyException(mess);
+ exceptionsStack.push(myException);
+ }
+ }
+ /**
+ *
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public MyException popExceptionsStack(){
+ if (isEmptyExceptionsStack()){
+ return null;
+ }
+ return exceptionsStack.pop();
+ }
+ /**
+ *
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public boolean isEmptyExceptionsStack(){
+ return exceptionsStack.empty();
+ }
+ /**
+ *
+ * <一句话功能简述>
+ * <功能详细描述>
+ * @return
+ * @see [类、类#方法、类#成员]
+ */
+ public Stack getExceptionsStack() {
+ return exceptionsStack;
+ }
+ /**
+ * @param exceptionsStack the exceptionsStack to set
+ */
+ public void setExceptionsStack(Stack exceptionsStack) {
+ this.exceptionsStack = exceptionsStack;
+ }
+
+}
+
+
diff --git a/src/com/base/TaskOperateData.java b/src/com/base/TaskOperateData.java
new file mode 100644
index 00000000..8f4bfb04
--- /dev/null
+++ b/src/com/base/TaskOperateData.java
@@ -0,0 +1,182 @@
+
+/**
+ * 文件名 : TaskOperateData.java
+ * 版权 : <版权/公司名>
+ * 描述 : <描述>
+ * @author liliy
+ * 版本 : <版本>
+ * 修改时间: 2016年11月2日
+ * 修改内容: <修改内容>
+ */
+package com.base;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import com.platform.glusterfs.SetCluster;
+import com.platform.utils.Constant;
+import com.platform.utils.Support;
+
+/**
+ * 数据操作中记录 <功能详细描述>
+ *
+ * @author liliy
+ * @version [版本号,2016年11月2日]
+ * @see [相关类/方法]
+ * @since [产品/模块版本]
+ */
+
+public class TaskOperateData {
+ /**
+ * 数据状态,0:准备迁移,1:表示正在迁移,2:表示迁移完成,正在MD5校验,3:表示校验成功,-1:表示迁移完成,校验失败,-2:表示迁移失败
+ * 4:表示正在删除,5:表示删除完成,-3:表示删除失败
+ */
+ private int status = 1;
+
+ /**
+ * 任务完成后返回状态
+ */
+ // private int taskReturn = 0;
+
+ /**
+ * 任务拷贝数据总大小,以字节为单位
+ */
+ private Long allSize = 0L;
+ /**
+ * 已经拷贝了的大小
+ */
+ private Long completedSize = 0L;
+ /**
+ * 进度
+ */
+ private int progress = 0;
+
+ /**
+ * 源路径和目的路径
+ */
+ private String sourcePath = null;
+ /** 目的路径 */
+ private String destPath = null;
+
+ /**
+ * 删除任务数据
+ */
+ private String removeDataName = null;
+
+ /**
+ * 任务的开始时间和结束时间
+ */
+ private String startTime = null;
+ /** 结束时间 */
+ private String endTime = null;
+ /**
+ * @return the status
+ */
+ public int getStatus() {
+ return status;
+ }
+ /**
+ * @param status the status to set
+ */
+ public void setStatus(int status) {
+ this.status = status;
+ }
+ /**
+ * @return the allSize
+ */
+ public Long getAllSize() {
+ return allSize;
+ }
+ /**
+ * @param allSize the allSize to set
+ */
+ public void setAllSize(Long allSize) {
+ this.allSize = allSize;
+ }
+ /**
+ * @return the completedSize
+ */
+ public Long getCompletedSize() {
+ return completedSize;
+ }
+ /**
+ * @param completedSize the completedSize to set
+ */
+ public void setCompletedSize(Long completedSize) {
+ this.completedSize = completedSize;
+ }
+ /**
+ * @return the progress
+ */
+ public int getProgress() {
+ return progress;
+ }
+ /**
+ * @param progress the progress to set
+ */
+ public void setProgress(int progress) {
+ this.progress = progress;
+ }
+
+ /**
+ * @return the sourcePath
+ */
+ public String getSourcePath() {
+ return sourcePath;
+ }
+ /**
+ * @param sourcePath the sourcePath to set
+ */
+ public void setSourcePath(String sourcePath) {
+ this.sourcePath = sourcePath;
+ }
+ /**
+ * @return the destPath
+ */
+ public String getDestPath() {
+ return destPath;
+ }
+ /**
+ * @param destPath the destPath to set
+ */
+ public void setDestPath(String destPath) {
+ this.destPath = destPath;
+ }
+ /**
+ * @return the removeDataName
+ */
+ public String getRemoveDataName() {
+ return removeDataName;
+ }
+ /**
+ * @param removeDataName the removeDataName to set
+ */
+ public void setRemoveDataName(String removeDataName) {
+ this.removeDataName = removeDataName;
+ }
+ /**
+ * @return the startTime
+ */
+ public String getStartTime() {
+ return startTime;
+ }
+ /**
+ * @param startTime the startTime to set
+ */
+ public void setStartTime(String startTime) {
+ this.startTime = startTime;
+ }
+ /**
+ * @return the endTime
+ */
+ public String getEndTime() {
+ return endTime;
+ }
+ /**
+ * @param endTime the endTime to set
+ */
+ public void setEndTime(String endTime) {
+ this.endTime = endTime;
+ }
+
+}
diff --git a/src/com/base/i18n.properties b/src/com/base/i18n.properties
index 5fe556df..bc67fe2b 100644
--- a/src/com/base/i18n.properties
+++ b/src/com/base/i18n.properties
@@ -8,4 +8,7 @@
3002001003=\u8FDE\u63A5\u6C47\u603B-\u521B\u5EFAoracle\u8FDE\u63A5\u5931\u8D25
#3002002
-3002002001=MySQL\u9519\u8BEF
\ No newline at end of file
+3002002001=MySQL\u9519\u8BEF
+
+#3003001
+3003001001=\u8FDE\u63A5\u4E0D\u4E0A\u6807\u51C6\u8868\u6C47\u603B\u5E93
\ No newline at end of file
diff --git a/src/com/base/system_templates.xlsx b/src/com/base/system_templates.xlsx
index 4a76dafb..08bcb5c1 100644
Binary files a/src/com/base/system_templates.xlsx and b/src/com/base/system_templates.xlsx differ
diff --git a/src/com/dao/mapper/config-details-mapper.xml b/src/com/dao/mapper/config-details-mapper.xml
index 3d1dba4d..affccfb3 100644
--- a/src/com/dao/mapper/config-details-mapper.xml
+++ b/src/com/dao/mapper/config-details-mapper.xml
@@ -15,10 +15,11 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
+
- id id, service_port port, service_ip ip, service_name name, service_user user, service_password password, service_database databaseName, service_table tableName, service_suffix suffix, service_status status
+ id id,service_port port,service_ip ip,service_name name,service_user user,service_password password,service_database databaseName,service_table tableName,service_suffix suffix,service_status status,type type