|
@@ -2,6 +2,7 @@ package com.bofeng.entity;
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import com.google.common.base.Strings;
|
|
|
+import com.yvan.platform.Conv;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
|
|
@@ -16,7 +17,7 @@ public class ExcelRiBaoPrivate {
|
|
|
private String doorplate;
|
|
|
private BigDecimal temperature;
|
|
|
private int grender;
|
|
|
- private int familyStatus;
|
|
|
+ private String familyStatus;
|
|
|
private int medical;
|
|
|
private int cough;
|
|
|
private int muscle;
|
|
@@ -41,6 +42,7 @@ public class ExcelRiBaoPrivate {
|
|
|
|
|
|
@ExcelProperty(value = "单元", index = 1)
|
|
|
private String danyuan = "";
|
|
|
+
|
|
|
public String getDanyuan() {
|
|
|
if (danyuan.length() <= 0) {
|
|
|
danyuan = unit;
|
|
@@ -101,13 +103,15 @@ public class ExcelRiBaoPrivate {
|
|
|
|
|
|
@ExcelProperty(value = "体温", index = 13)
|
|
|
private String temperatureStr;
|
|
|
+
|
|
|
public String getTemperatureStr() {
|
|
|
- temperatureStr = temperature.floatValue()>10?temperature+"":"未填报";
|
|
|
+ temperatureStr = temperature.floatValue() > 10 ? temperature + "" : "未填报";
|
|
|
return temperatureStr;
|
|
|
}
|
|
|
|
|
|
@ExcelProperty(value = "确诊", index = 14)
|
|
|
private String medicalStr;
|
|
|
+
|
|
|
public String getMedicalStr() {
|
|
|
if (medical == 0) {
|
|
|
medicalStr = "否";
|
|
@@ -119,6 +123,7 @@ public class ExcelRiBaoPrivate {
|
|
|
|
|
|
@ExcelProperty(value = "单间隔离", index = 15)
|
|
|
private String singleRoomStr;
|
|
|
+
|
|
|
public String getSingleRoomStr() {
|
|
|
if (singleRoom == 0) {
|
|
|
singleRoomStr = "否";
|
|
@@ -129,32 +134,37 @@ public class ExcelRiBaoPrivate {
|
|
|
}
|
|
|
|
|
|
@ExcelProperty(value = "身体基本情况", index = 16)
|
|
|
- private String baseDesc;
|
|
|
+ private String baseDesc = "";
|
|
|
+
|
|
|
public String getBaseDesc() {
|
|
|
- if (familyStatus == 0) {
|
|
|
- baseDesc = "无病史";
|
|
|
- } else if (familyStatus == 1) {
|
|
|
- baseDesc = "心血管疾病(服用ARB)";
|
|
|
- } else if (familyStatus == 2) {
|
|
|
- baseDesc = "心血管疾病(未服用ARB)";
|
|
|
- } else if (familyStatus == 3) {
|
|
|
- baseDesc = "呼吸系统病史";
|
|
|
- } else if (familyStatus == 4) {
|
|
|
- baseDesc = "肿瘤病史";
|
|
|
- } else if (familyStatus == 5) {
|
|
|
- baseDesc = "糖尿病史";
|
|
|
- } else if (familyStatus == 6) {
|
|
|
- baseDesc = "服用过激素药物";
|
|
|
- } else if (familyStatus == 7) {
|
|
|
- baseDesc = "妊娠期";
|
|
|
- } else {
|
|
|
- baseDesc = "其他";
|
|
|
+
|
|
|
+ if (Conv.NI(familyStatus.split(",")[0]) == 1) {
|
|
|
+ baseDesc = "心血管疾病(服用ARB),";
|
|
|
+ }
|
|
|
+ if (Conv.NI(familyStatus.split(",")[1]) == 1) {
|
|
|
+ baseDesc += "心血管疾病(未服用ARB),";
|
|
|
}
|
|
|
- return baseDesc;
|
|
|
+ if (Conv.NI(familyStatus.split(",")[2]) == 1) {
|
|
|
+ baseDesc += "呼吸系统病史,";
|
|
|
+ }
|
|
|
+ if (Conv.NI(familyStatus.split(",")[3]) == 1) {
|
|
|
+ baseDesc += "肿瘤病史,";
|
|
|
+ }
|
|
|
+ if (Conv.NI(familyStatus.split(",")[4]) == 1) {
|
|
|
+ baseDesc += "糖尿病史,";
|
|
|
+ }
|
|
|
+ if (Conv.NI(familyStatus.split(",")[5]) == 1) {
|
|
|
+ baseDesc += "服用过激素药物,";
|
|
|
+ }
|
|
|
+ if (Conv.NI(familyStatus.split(",")[6]) == 1) {
|
|
|
+ baseDesc += "妊娠期";
|
|
|
+ }
|
|
|
+ return baseDesc.substring(0, baseDesc.length() - 1);
|
|
|
}
|
|
|
|
|
|
@ExcelProperty(value = "病情描述", index = 17)
|
|
|
private String bingqingDesc = "";
|
|
|
+
|
|
|
public String getBingqingDesc() {
|
|
|
|
|
|
if (medical == 1) {
|
|
@@ -218,6 +228,7 @@ public class ExcelRiBaoPrivate {
|
|
|
|
|
|
@ExcelProperty(value = "健康评估", index = 18)
|
|
|
private String scoreRezultStr;
|
|
|
+
|
|
|
public String getScoreRezultStr() {
|
|
|
if (scoreRezult == 0) {
|
|
|
scoreRezultStr = "未评估";
|