Commit 88ea43ff authored by Quxl's avatar Quxl

x

parent 9a815612
...@@ -1142,5 +1142,14 @@ public class StringUtil { ...@@ -1142,5 +1142,14 @@ public class StringUtil {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
return sdf.format(new Date())+StringUtil.getRandom(4); return sdf.format(new Date())+StringUtil.getRandom(4);
} }
public static String toString(Object object) {
if(object == null) {
return null;
} else if(object instanceof Date) {
return DateUtil.format((Date)object);
}
return object.toString();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment