|
@@ -3,10 +3,12 @@ package com.persagy.adm.server.custom.entity;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
import com.persagy.adm.server.custom.entity.db.BaseAdmDataEntity;
|
|
import com.persagy.adm.server.custom.entity.db.BaseAdmDataEntity;
|
|
|
|
+import com.persagy.dmp.common.model.entity.AuditableEntity;
|
|
import com.persagy.dmp.common.model.entity.BaseEntity;
|
|
import com.persagy.dmp.common.model.entity.BaseEntity;
|
|
import com.persagy.dmp.digital.entity.ObjectRelation;
|
|
import com.persagy.dmp.digital.entity.ObjectRelation;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -33,6 +35,11 @@ abstract public class DownLoadData {
|
|
} else if(data instanceof ObjectNode){
|
|
} else if(data instanceof ObjectNode){
|
|
if(((ObjectNode) data).get("ts") != null)
|
|
if(((ObjectNode) data).get("ts") != null)
|
|
ts = ((ObjectNode) data).get("ts").asLong();
|
|
ts = ((ObjectNode) data).get("ts").asLong();
|
|
|
|
+ } else if (data instanceof AuditableEntity){
|
|
|
|
+ Date ts1 = ((AuditableEntity) data).getTs();
|
|
|
|
+ if (ts1 != null){
|
|
|
|
+ ts = ts1.getTime();
|
|
|
|
+ }
|
|
} else if(data instanceof BaseEntity) {
|
|
} else if(data instanceof BaseEntity) {
|
|
if(((ObjectRelation) data).getTs() != null)
|
|
if(((ObjectRelation) data).getTs() != null)
|
|
ts = ((ObjectRelation) data).getTs().getTime();
|
|
ts = ((ObjectRelation) data).getTs().getTime();
|