|  |  |  | @ -1,38 +1,32 @@ | 
			
		
	
		
			
				
					|  |  |  |  | package com.platform.service.impl; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import java.beans.IntrospectionException; | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.BufferedReader; | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.File; | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.FileInputStream; | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.InputStreamReader; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.ArrayList; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.Collections; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.Date; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.HashMap; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.List; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.Map; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import javax.annotation.Resource; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import net.sf.json.regexp.RegexpUtils; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import org.apache.log4j.Logger; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.stereotype.Service; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.dao.PreDataInfoDao; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.entities.DefaultDataDescription; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.entities.SqlFileInfoEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.entities.PreDataInfo; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.entities.SqlFileInfoEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.service.IScriptMakeService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.BeanCopy; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.Compare4SqlFilesEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.Configs; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.Constant; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.DateForm; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.FileOperateHelper; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.ThreadRemoveFile; | 
			
		
	
		
			
				
					|  |  |  |  | import com.platform.utils.XmlOperationByDom4j; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import dk.brics.automaton.RegExp; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | @Service(value = "scriptMakeService") | 
			
		
	
		
			
				
					|  |  |  |  | public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -97,7 +91,7 @@ public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 			XmlOperationByDom4j | 
			
		
	
		
			
				
					|  |  |  |  | 					.createXml(FileOperateHelper.addLastSeparator(areaPath) | 
			
		
	
		
			
				
					|  |  |  |  | 							+ key + ".xml", defList, "Data_info", "id", "workRange","sysCode","updateTime","userTablespaceStatus", "checkoutIndicateStatus", "checkoutPayStatus", "userTablespacePath", "checkoutIndicatePath", "checkoutPayPath", "sqlList", "dataVersion", "collectingTime", "collUpdate"); | 
			
		
	
		
			
				
					|  |  |  |  | 							+ key + ".xml", defList, "Data_info", "id", "dataId","workRange","sysCode","updateTime","userTablespaceStatus", "checkoutIndicateStatus", "checkoutPayStatus", "userTablespacePath", "checkoutIndicatePath", "checkoutPayPath", "sqlList", "dataVersion", "collectingTime", "collUpdate"); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		log.info("makeXml--end"); | 
			
		
	
		
			
				
					|  |  |  |  | 		return 1; | 
			
		
	
	
		
			
				
					|  |  |  | @ -108,15 +102,17 @@ public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | 		List<PreDataInfo> systemDataInfo = preDataInfoDao.findAll(); | 
			
		
	
		
			
				
					|  |  |  |  | 		// 查找 Configs.SQL_SCRIPT_PATH_LAST 路径下的 所有的文件:路径
 | 
			
		
	
		
			
				
					|  |  |  |  | 		Map<String, String> sqlFilePathsLast = new HashMap<String, String>(); | 
			
		
	
		
			
				
					|  |  |  |  | 		sqlFilePathsLast = getAllFile(sqlFilePathsLast, | 
			
		
	
		
			
				
					|  |  |  |  | 		Map<String, String> timeMapLast = new HashMap<String, String>(); | 
			
		
	
		
			
				
					|  |  |  |  | 		sqlFilePathsLast = getAllFile(sqlFilePathsLast,timeMapLast,  | 
			
		
	
		
			
				
					|  |  |  |  | 				Configs.SQL_SCRIPT_PATH_LAST); | 
			
		
	
		
			
				
					|  |  |  |  | 		// 遍历 查找 Configs.SQL_SCRIPT_PATH_STANDARD 脚本文件 放入集合中
 | 
			
		
	
		
			
				
					|  |  |  |  | 		Map<String, String> sqlFilePathsStandard = new HashMap<String, String>(); | 
			
		
	
		
			
				
					|  |  |  |  | 		sqlFilePathsStandard = getAllFile(sqlFilePathsStandard, | 
			
		
	
		
			
				
					|  |  |  |  | 		Map<String, String> timeMapStandard = new HashMap<String, String>(); | 
			
		
	
		
			
				
					|  |  |  |  | 		sqlFilePathsStandard = getAllFile(sqlFilePathsStandard,timeMapStandard,  | 
			
		
	
		
			
				
					|  |  |  |  | 				Configs.SQL_SCRIPT_PATH_STANDARD); | 
			
		
	
		
			
				
					|  |  |  |  | 		// 填充 脚本状态、位置的信息
 | 
			
		
	
		
			
				
					|  |  |  |  | 		List<SqlFileInfoEntity> result = setScript(systemDataInfo, | 
			
		
	
		
			
				
					|  |  |  |  | 				sqlFilePathsStandard, sqlFilePathsLast); | 
			
		
	
		
			
				
					|  |  |  |  | 				sqlFilePathsStandard, sqlFilePathsLast, timeMapLast, timeMapStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 		return result; | 
			
		
	
		
			
				
					|  |  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -127,26 +123,26 @@ public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | 		String path2 = ""; | 
			
		
	
		
			
				
					|  |  |  |  | 		switch (name) { | 
			
		
	
		
			
				
					|  |  |  |  | 			case "userTableStatus": | 
			
		
	
		
			
				
					|  |  |  |  | 				path1 = form.getUserTableScriptPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				path1 = form.getUserTableStatusPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data1Path", path1); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data1", fileReader(path1)); | 
			
		
	
		
			
				
					|  |  |  |  | 				path2 = form.getUserTableScriptPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				path2 = form.getUserTableStatusPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data2Path", path2); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data2", fileReader(path2)); | 
			
		
	
		
			
				
					|  |  |  |  | 				break; | 
			
		
	
		
			
				
					|  |  |  |  | 			case "ckIndicateStatus": | 
			
		
	
		
			
				
					|  |  |  |  | 				path1 = form.getCkIndicateScriptPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				path1 = form.getCkIndicateStatusPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data1Path", path1); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data1", fileReader(path1)); | 
			
		
	
		
			
				
					|  |  |  |  | 				path2 = form.getCkIndicateScriptPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				path2 = form.getCkIndicateStatusPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data2Path", path2); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data2", fileReader(path2)); | 
			
		
	
		
			
				
					|  |  |  |  | 				break; | 
			
		
	
		
			
				
					|  |  |  |  | 			case "ckPayStatus": | 
			
		
	
		
			
				
					|  |  |  |  | 				path1 = form.getCkPayScriptPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				path1 = form.getCkPayStatusPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data1Path", path1); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data1", fileReader(path1)); | 
			
		
	
		
			
				
					|  |  |  |  | 				path2 = form.getCkPayScriptPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				path2 = form.getCkPayStatusPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data2Path", path2); | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("data2", fileReader(path2)); | 
			
		
	
		
			
				
					|  |  |  |  | 				break; | 
			
		
	
	
		
			
				
					|  |  |  | @ -174,34 +170,34 @@ public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | //		选择哪种类型的 脚本  path 可能 = null
 | 
			
		
	
		
			
				
					|  |  |  |  | 		switch (type) { | 
			
		
	
		
			
				
					|  |  |  |  | 			case "userTableStatus": | 
			
		
	
		
			
				
					|  |  |  |  | 				standardPath = form.getUserTableScriptPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				standardPath = form.getUserTableStatusPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				if (null == standardPath || standardPath.isEmpty()) { | 
			
		
	
		
			
				
					|  |  |  |  | 					File file = new File(FileOperateHelper.addLastSeparator(Configs.SQL_SCRIPT_PATH_STANDARD)  + form.getAreaCode()); | 
			
		
	
		
			
				
					|  |  |  |  | 					file.mkdir(); | 
			
		
	
		
			
				
					|  |  |  |  | 					standardPath = FileOperateHelper.addLastSeparator(Configs.SQL_SCRIPT_PATH_STANDARD) + form.getAreaCode() | 
			
		
	
		
			
				
					|  |  |  |  | 							+ File.separator + "UserTablespace_" + form.getAreaCode() + "_" + form.getSysCode() + ".sql"; | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 				lastPath = form.getUserTableScriptPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				lastPath = form.getUserTableStatusPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				break; | 
			
		
	
		
			
				
					|  |  |  |  | 			case "ckIndicateStatus": | 
			
		
	
		
			
				
					|  |  |  |  | 				standardPath = form.getCkIndicateScriptPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				standardPath = form.getCkIndicateStatusPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				if (null == standardPath || standardPath.isEmpty()) { | 
			
		
	
		
			
				
					|  |  |  |  | 					File file = new File(FileOperateHelper.addLastSeparator(Configs.SQL_SCRIPT_PATH_STANDARD)  + form.getAreaCode()); | 
			
		
	
		
			
				
					|  |  |  |  | 					file.mkdir(); | 
			
		
	
		
			
				
					|  |  |  |  | 					standardPath = FileOperateHelper.addLastSeparator(Configs.SQL_SCRIPT_PATH_STANDARD) + form.getAreaCode() | 
			
		
	
		
			
				
					|  |  |  |  | 							+ File.separator + "Checkout_Indicate_" + form.getAreaCode() + "_" + form.getSysCode() + ".sql"; | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 				lastPath = form.getCkIndicateScriptPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				lastPath = form.getCkIndicateStatusPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				break; | 
			
		
	
		
			
				
					|  |  |  |  | 			case "ckPayStatus": | 
			
		
	
		
			
				
					|  |  |  |  | 				standardPath = form.getCkPayScriptPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				standardPath = form.getCkPayStatusPathStandard(); | 
			
		
	
		
			
				
					|  |  |  |  | 				if (null == standardPath || standardPath.isEmpty()) { | 
			
		
	
		
			
				
					|  |  |  |  | 					File file = new File(FileOperateHelper.addLastSeparator(Configs.SQL_SCRIPT_PATH_STANDARD)  + form.getAreaCode()); | 
			
		
	
		
			
				
					|  |  |  |  | 					file.mkdir(); | 
			
		
	
		
			
				
					|  |  |  |  | 					standardPath = FileOperateHelper.addLastSeparator(Configs.SQL_SCRIPT_PATH_STANDARD) + form.getAreaCode() | 
			
		
	
		
			
				
					|  |  |  |  | 							+ File.separator + "Checkout_Pay_" + form.getAreaCode() + "_" + form.getSysCode() + ".sql"; | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 				lastPath = form.getCkPayScriptPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				lastPath = form.getCkPayStatusPathLast(); | 
			
		
	
		
			
				
					|  |  |  |  | 				break; | 
			
		
	
		
			
				
					|  |  |  |  | 			default: | 
			
		
	
		
			
				
					|  |  |  |  | 				map.put("err", "请选择脚本类型!"); | 
			
		
	
	
		
			
				
					|  |  |  | @ -259,17 +255,19 @@ public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @param path | 
			
		
	
		
			
				
					|  |  |  |  | 	 * @return | 
			
		
	
		
			
				
					|  |  |  |  | 	 */ | 
			
		
	
		
			
				
					|  |  |  |  | 	public Map<String, String> getAllFile(Map<String, String> ps, String path) { | 
			
		
	
		
			
				
					|  |  |  |  | 	public Map<String, String> getAllFile(Map<String, String> ps, Map<String, String> timeMap,String path) { | 
			
		
	
		
			
				
					|  |  |  |  | 		File f = new File(path); | 
			
		
	
		
			
				
					|  |  |  |  | 		String name = f.getName(); | 
			
		
	
		
			
				
					|  |  |  |  | 		// 如果是 sql文件
 | 
			
		
	
		
			
				
					|  |  |  |  | 		if (name.endsWith(".sql") || name.endsWith(".SQL")) | 
			
		
	
		
			
				
					|  |  |  |  | 		if (name.endsWith(".sql") || name.endsWith(".SQL")){ | 
			
		
	
		
			
				
					|  |  |  |  | 			ps.put(name.toLowerCase(), f.getAbsolutePath()); | 
			
		
	
		
			
				
					|  |  |  |  | 			timeMap.put(name.toLowerCase(), DateForm.date2StringBysecond(new Date(f.lastModified()))); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  |  | 		if (f.exists()) { | 
			
		
	
		
			
				
					|  |  |  |  | 			String[] subpaths = f.list(); | 
			
		
	
		
			
				
					|  |  |  |  | 			if (null != subpaths) { | 
			
		
	
		
			
				
					|  |  |  |  | 				for (String tmppath : subpaths) { | 
			
		
	
		
			
				
					|  |  |  |  | 					getAllFile(ps, f.getAbsolutePath() + "/" + tmppath); | 
			
		
	
		
			
				
					|  |  |  |  | 					getAllFile(ps, timeMap, f.getAbsolutePath() + "/" + tmppath); | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
	
		
			
				
					|  |  |  | @ -287,52 +285,80 @@ public class ScriptMakeService implements IScriptMakeService { | 
			
		
	
		
			
				
					|  |  |  |  | 	 */ | 
			
		
	
		
			
				
					|  |  |  |  | 	private List<SqlFileInfoEntity> setScript(List<PreDataInfo> systemDataInfo, | 
			
		
	
		
			
				
					|  |  |  |  | 			Map<String, String> sqlFilePathsStandard, | 
			
		
	
		
			
				
					|  |  |  |  | 			Map<String, String> sqlFilePathsLast) { | 
			
		
	
		
			
				
					|  |  |  |  | 			Map<String, String> sqlFilePathsLast,Map<String, String> timeMapLast, | 
			
		
	
		
			
				
					|  |  |  |  | 			Map<String, String> timeMapStandard) { | 
			
		
	
		
			
				
					|  |  |  |  | 		List<SqlFileInfoEntity> fileEntitys = new ArrayList<SqlFileInfoEntity>(); | 
			
		
	
		
			
				
					|  |  |  |  | 		for (PreDataInfo preDataInfo : systemDataInfo) { | 
			
		
	
		
			
				
					|  |  |  |  | 			SqlFileInfoEntity myfile = new SqlFileInfoEntity(); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 复制
 | 
			
		
	
		
			
				
					|  |  |  |  | 			BeanCopy.copyBean(preDataInfo, myfile); | 
			
		
	
		
			
				
					|  |  |  |  | 			//---------- 脚本的位置  ------
 | 
			
		
	
		
			
				
					|  |  |  |  | 			// 归档表空间脚本的位置-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String TablePathStandard = getFilePath("UserTablespace_", | 
			
		
	
		
			
				
					|  |  |  |  | 					sqlFilePathsStandard, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setUserTableScriptPathStandard(TablePathStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setUserTableStatusPathStandard(TablePathStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 归档预算 脚本的位置-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String indicatePathStandard = getFilePath("Checkout_Indicate_", | 
			
		
	
		
			
				
					|  |  |  |  | 					sqlFilePathsStandard, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateScriptPathStandard(indicatePathStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateStatusPathStandard(indicatePathStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 归档表空间脚本的位置-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String payPathStandard = getFilePath("Checkout_Pay_", | 
			
		
	
		
			
				
					|  |  |  |  | 					sqlFilePathsStandard, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayScriptPathStandard(payPathStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayStatusPathStandard(payPathStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 最新表空间脚本的位置-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String TablePathLast = getFilePath("UserTablespace_", | 
			
		
	
		
			
				
					|  |  |  |  | 					sqlFilePathsLast, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setUserTableScriptPathLast(TablePathLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setUserTableStatusPathLast(TablePathLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 最新预算 脚本的位置-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String indicatePathLast = getFilePath("Checkout_Indicate_", | 
			
		
	
		
			
				
					|  |  |  |  | 					sqlFilePathsLast, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateScriptPathLast(indicatePathLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateStatusPathLast(indicatePathLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 最新表空间脚本的位置-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String payPathLast = getFilePath("Checkout_Pay_", sqlFilePathsLast, | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayScriptPathLast(payPathLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayStatusPathLast(payPathLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			 | 
			
		
	
		
			
				
					|  |  |  |  | 			//-------文件最后更新-时间-------
 | 
			
		
	
		
			
				
					|  |  |  |  | 		//	时间
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String uttimeStandard = getFilePath("UserTablespace_", | 
			
		
	
		
			
				
					|  |  |  |  | 					timeMapStandard, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setUserTableStatusStandardModified(uttimeStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 归档预算 脚本的时间-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String indicateTimeStandard = getFilePath("Checkout_Indicate_", | 
			
		
	
		
			
				
					|  |  |  |  | 					timeMapStandard, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateStatusStandardModified(indicateTimeStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 归档表空间脚本的时间-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String payTimeStandard = getFilePath("Checkout_Pay_", | 
			
		
	
		
			
				
					|  |  |  |  | 					timeMapStandard, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayStatusStandardModified(payTimeStandard); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 最新表空间脚本的时间-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String utTimeLast = getFilePath("UserTablespace_", | 
			
		
	
		
			
				
					|  |  |  |  | 					timeMapLast, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setUserTableStatusLastModified(utTimeLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 最新预算 脚本的时间-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String indicateTimeLast = getFilePath("Checkout_Indicate_", | 
			
		
	
		
			
				
					|  |  |  |  | 					timeMapLast, myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateStatusLastModified(indicateTimeLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 最新表空间脚本的时间-
 | 
			
		
	
		
			
				
					|  |  |  |  | 			String payTimeLast = getFilePath("Checkout_Pay_", timeMapLast, | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile, ".sql"); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayStatusLastModified(payTimeLast); | 
			
		
	
		
			
				
					|  |  |  |  | 			// 设置 状态
 | 
			
		
	
		
			
				
					|  |  |  |  | 			if (null != myfile.getDataBaseType()) { | 
			
		
	
		
			
				
					|  |  |  |  | 				if ("ORACLE".equals(myfile.getDataBaseType().toUpperCase())) { | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.setUserTableStatus(getStatus( | 
			
		
	
		
			
				
					|  |  |  |  | 							myfile.getUserTableScriptPathStandard(), | 
			
		
	
		
			
				
					|  |  |  |  | 							myfile.getUserTableScriptPathLast())); | 
			
		
	
		
			
				
					|  |  |  |  | 							myfile.getUserTableStatusPathStandard(), | 
			
		
	
		
			
				
					|  |  |  |  | 							myfile.getUserTableStatusPathLast())); | 
			
		
	
		
			
				
					|  |  |  |  | 				} else { | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.setUserTableStatus(4); | 
			
		
	
		
			
				
					|  |  |  |  | 				} | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkIndicateStatus(getStatus( | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkIndicateScriptPathStandard(), | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkIndicateScriptPathLast())); | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkIndicateStatusPathStandard(), | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkIndicateStatusPathLast())); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setCkPayStatus(getStatus( | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkPayScriptPathStandard(), | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkPayScriptPathLast())); | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkPayStatusPathStandard(), | 
			
		
	
		
			
				
					|  |  |  |  | 					myfile.getCkPayStatusPathLast())); | 
			
		
	
		
			
				
					|  |  |  |  | 			myfile.setSysStatus(getTotalStatus(myfile)); | 
			
		
	
		
			
				
					|  |  |  |  | 			fileEntitys.add(myfile); | 
			
		
	
		
			
				
					|  |  |  |  | 		} | 
			
		
	
	
		
			
				
					|  |  |  | 
 |