Commit 1f2ca6dd by fsn

记录日志时,时间格式不对的问题修复

parent de5e8adc
......@@ -7,6 +7,7 @@ import com.stylefeng.guns.core.support.StrKit;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Date;
import java.util.Map;
/**
......@@ -37,6 +38,9 @@ public class Contrast {
if (o1 == null || o2 == null) {
continue;
}
if(o1 instanceof Date){
o1 = DateUtil.getDay((Date) o1);
}
if (!o1.toString().equals(o2.toString())) {
if (i != 1) {
str += separator;
......@@ -70,6 +74,9 @@ public class Contrast {
if (o1 == null || o2 == null) {
continue;
}
if(o1 instanceof Date){
o1 = DateUtil.getDay((Date) o1);
}
if (!o1.toString().equals(o2.toString())) {
if (i != 1) {
str += separator;
......
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