Browse Source

增加中澳电子(香港)数据库支持

koul 2 years ago
parent
commit
413de598e1
2 changed files with 8 additions and 3 deletions
  1. 2 2
      src/com/uas/main/Upload.java
  2. 6 1
      src/properties/dbconfig.properties

+ 2 - 2
src/com/uas/main/Upload.java

@@ -91,8 +91,8 @@ public class Upload {
 		String header = getHeader(template.toString());
 		String detailItem = getDetailItem(template.toString());
 		String currentDate = getCurrentdate("yyyyMMddHHmm");
-		/*System.err.println(datastr);
-		System.err.println(datastr.substring(5400,5450));*/
+		/*System.err.println("xlid=="+xlid);
+		System.err.println("datastr=="+datastr);*/
 		Map<String,Object> data = new ObjectMapper().readValue(datastr, HashMap.class);
 		data.put("FILENAME", type + "-" + data.get("FILENAME"));
 		data.put("CURRENTDATE", currentDate);

+ 6 - 1
src/properties/dbconfig.properties

@@ -23,5 +23,10 @@
 		"url":"jdbc:oracle:thin:@127.0.0.1:1521:orcl",
 		"user":"YITOA_ZX",
 		"password":"select!#%*("
-}
+	},
+	"YHND_ZA":{
+		"url":"jdbc:oracle:thin:@127.0.0.1:1521:orcl",
+		"user":"YHND_ZA",
+		"password":"select!#%*("
+	}
 }