Showing
2 changed files
with
4 additions
and
4 deletions
@@ -116,8 +116,8 @@ public class EntityViewEntity implements SearchTextEntity<EntityView> { | @@ -116,8 +116,8 @@ public class EntityViewEntity implements SearchTextEntity<EntityView> { | ||
116 | } catch (IOException e) { | 116 | } catch (IOException e) { |
117 | e.printStackTrace(); | 117 | e.printStackTrace(); |
118 | } | 118 | } |
119 | - this.tsBegin = entityView.getStartTs() != null ? String.valueOf(entityView.getStartTs()) : "0"; | ||
120 | - this.tsEnd = entityView.getEndTs() != null ? String.valueOf(entityView.getEndTs()) : "0"; | 119 | + this.tsBegin = entityView.getStartTs() != 0L ? String.valueOf(entityView.getStartTs()) : "0"; |
120 | + this.tsEnd = entityView.getEndTs() != 0L ? String.valueOf(entityView.getEndTs()) : "0"; | ||
121 | this.searchText = entityView.getSearchText(); | 121 | this.searchText = entityView.getSearchText(); |
122 | this.additionalInfo = entityView.getAdditionalInfo(); | 122 | this.additionalInfo = entityView.getAdditionalInfo(); |
123 | } | 123 | } |
@@ -105,8 +105,8 @@ public class EntityViewEntity extends BaseSqlEntity<EntityView> implements Searc | @@ -105,8 +105,8 @@ public class EntityViewEntity extends BaseSqlEntity<EntityView> implements Searc | ||
105 | } catch (IOException e) { | 105 | } catch (IOException e) { |
106 | e.printStackTrace(); | 106 | e.printStackTrace(); |
107 | } | 107 | } |
108 | - this.tsBegin = entityView.getStartTs() != null ? String.valueOf(entityView.getStartTs()) : "0"; | ||
109 | - this.tsEnd = entityView.getEndTs() != null ? String.valueOf(entityView.getEndTs()) : "0"; | 108 | + this.tsBegin = entityView.getStartTs() != 0L ? String.valueOf(entityView.getStartTs()) : "0"; |
109 | + this.tsEnd = entityView.getEndTs() != 0L ? String.valueOf(entityView.getEndTs()) : "0"; | ||
110 | this.searchText = entityView.getSearchText(); | 110 | this.searchText = entityView.getSearchText(); |
111 | this.additionalInfo = entityView.getAdditionalInfo(); | 111 | this.additionalInfo = entityView.getAdditionalInfo(); |
112 | } | 112 | } |