提交 f80d0072 编写于 作者: xuhui961310148's avatar xuhui961310148

添加空值判断返回默认值

上级 9d940a4d
...@@ -55,6 +55,9 @@ public class ExecResult implements Serializable { ...@@ -55,6 +55,9 @@ public class ExecResult implements Serializable {
@Transient @Transient
public long getTimefieldLV() { public long getTimefieldLV() {
if (StringUtils.isEmpty(timefield)){
return 0L;
}
return timefield.getMillisSinceEpoch(); return timefield.getMillisSinceEpoch();
} }
...@@ -64,6 +67,9 @@ public class ExecResult implements Serializable { ...@@ -64,6 +67,9 @@ public class ExecResult implements Serializable {
@Transient @Transient
public long getUpdatedateLV() { public long getUpdatedateLV() {
if (StringUtils.isEmpty(updatedate)){
return 0L;
}
return updatedate.getMillisSinceEpoch(); return updatedate.getMillisSinceEpoch();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册