public void createGetLog(){
		StringBuilder strSB = new StringBuilder();
		 strSB.append("package com.logserver.manager;\n");
		 strSB.append("import com.alibaba.fastjson.JSON;\n");
		 strSB.append("import com.logserver.model.BaseEntity;\n");
		 Collection<String> col = OrderConstance.tableNamesMap.values();
		 for(String str : col){
			 strSB.append("import com.logserver.model." + StringUtils.firstToUpper(str) + "Log;\n");
		 }
		 strSB.append("//由BuildTableNames.java自动生成\n");
		 strSB.append("public class GetLog {\n");
		 strSB.append("\tpublic BaseEntity getLogEntity(String jsonData,int type){\n");
		 strSB.append("\t\tBaseEntity log = null;\n");
		 strSB.append("\t\tswitch(type){\n");
		 Iterator<Integer> keys = OrderConstance.tableNamesMap.keySet().iterator();
		 while(keys.hasNext()){
			 int key = keys.next();
			 strSB.append("\t\t\tcase " + key + " :\n");
			 strSB.append("\t\t\tlog = ("+ StringUtils.firstToUpper(OrderConstance.tableNamesMap.get(key))+"Log)JSON.parseObject(jsonData, "+ StringUtils.firstToUpper(OrderConstance.tableNamesMap.get(key))+"Log.class" +");\n");
			 strSB.append("\t\t\tbreak;\n");
		 }
		 strSB.append("\t\t}\n");
		 strSB.append("\t\treturn log;\n");
		 strSB.append("\t}\n");
		 strSB.append("}");
		// 生成文件
			File file = new File(System.getProperty("user.dir")
					+ "/"
					+ "src/com/logserver/manager/"
					+"GetLog.java");
			FileOutputStream out;
			try {
				out = new FileOutputStream(file);
				out.write(strSB.toString().getBytes("utf8"));
				out.flush();
				out.close();
				System.out.println("====生成日志类"
						+ "GetLog.java 成功===");
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} catch (UnsupportedEncodingException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
	}