Commit 88ea43ff authored by Quxl's avatar Quxl

x

parent 9a815612
......@@ -1143,4 +1143,13 @@ public class StringUtil {
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