diff --git a/pom.xml b/pom.xml
index 55173e8..78344aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,32 +1,62 @@
- 4.0.0
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ 4.0.0
- org.wzy
- sqltemplate
- 0.0.1-SNAPSHOT
- jar
+ org.wzy
+ sqltemplate
+ 0.0.1-SNAPSHOT
+ jar
- sqltemplate
- http://maven.apache.org
+ sqltemplate
+ http://maven.apache.org
-
- UTF-8
-
+
+ UTF-8
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+ ognl
+ ognl
+ 3.0.8
+
+
+ cn.hutool
+ hutool-all
+ 5.0.7
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+ utf-8
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
+
-
-
- junit
- junit
- 4.11
- test
-
-
- ognl
- ognl
- 3.0.8
-
-
-
-
diff --git a/src/main/java/org/wzy/sqltemplate/Context.java b/src/main/java/org/wzy/sqltemplate/Context.java
index 3dab02a..e10af0b 100644
--- a/src/main/java/org/wzy/sqltemplate/Context.java
+++ b/src/main/java/org/wzy/sqltemplate/Context.java
@@ -9,110 +9,109 @@
import ognl.OgnlException;
import ognl.OgnlRuntime;
import ognl.PropertyAccessor;
+import org.wzy.sqltemplate.utils.CommonUtil;
/**
- *
* @author Wen
- *
*/
public class Context {
-
- static {
- OgnlRuntime.setPropertyAccessor(HashMap.class, new ContextAccessor());
- }
+ static {
+ OgnlRuntime.setPropertyAccessor(HashMap.class, new ContextAccessor());
+ }
- public static final String BINDING_DATA = "_data";
+ public static final String BINDING_DATA = "_data";
- private Configuration cfg;
+ private Configuration cfg;
- private Map binding;
+ private Map binding;
- private StringBuilder sql = new StringBuilder();
+ private StringBuilder sql = new StringBuilder();
- private List