|
@@ -3,6 +3,7 @@ package com.diagbot.util;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.diagbot.dto.NodeNeoDTO;
|
|
|
import com.diagbot.dto.PushBaseDTO;
|
|
|
+import com.diagbot.entity.node.Age;
|
|
|
import com.diagbot.entity.node.YiBaoDiseaseName;
|
|
|
import com.diagbot.repository.Constants;
|
|
|
import com.diagbot.repository.NodeInfo;
|
|
@@ -139,4 +140,27 @@ public class NeoUtil {
|
|
|
}
|
|
|
return match;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public static NodeNeoDTO fillNodeNeoDTO(Age age) {
|
|
|
+ NodeNeoDTO nodeNeoDTO = new NodeNeoDTO();
|
|
|
+ Integer range;
|
|
|
+ BigDecimal max, min;
|
|
|
+
|
|
|
+ nodeNeoDTO.setName(age.getName());
|
|
|
+
|
|
|
+ max = (age.getMaxval()==null)?null:new BigDecimal(age.getMaxval());
|
|
|
+ nodeNeoDTO.setMax(max);
|
|
|
+
|
|
|
+ min = (age.getMinval()==null)?null:new BigDecimal(age.getMinval());
|
|
|
+ nodeNeoDTO.setMin(min);
|
|
|
+
|
|
|
+ range = (age.getRange()==null)?0:age.getRange();
|
|
|
+ nodeNeoDTO.setValType(range);
|
|
|
+
|
|
|
+ nodeNeoDTO.setName(age.getTermname());
|
|
|
+
|
|
|
+ return nodeNeoDTO;
|
|
|
+ }
|
|
|
+
|
|
|
}
|