123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- 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;
- import java.math.BigDecimal;
- @Getter
- @Setter
- public class ExcelRiBaoPrivate {
- private String ridgepole;
- private String unit;
- private String doorplate;
- private BigDecimal temperature;
- private int grender;
- private String familyStatus;
- private int medical;
- private int cough;
- private int muscle;
- private int dyspnea;
- private int fatigue;
- private int diarrhea;
- private int singleRoom;
- private int scoreRezult;
- private String statusDesp = "";
- private String others = "";
- @ExcelProperty(value = "楼栋", index = 0)
- private String loudong = "";
- public String getLoudong() {
- if (loudong.length() <= 0) {
- loudong = ridgepole;
- }
- return loudong;
- }
- @ExcelProperty(value = "单元", index = 1)
- private String danyuan = "";
- public String getDanyuan() {
- if (danyuan.length() <= 0) {
- danyuan = unit;
- }
- return danyuan;
- }
- @ExcelProperty(value = "房号", index = 2)
- private String fanghao = "";
- public String getFanghao() {
- if (fanghao.length() <= 0) {
- fanghao = doorplate;
- }
- return fanghao;
- }
- @ExcelProperty(value = "联系人", index = 3)
- private String linkman;
- @ExcelProperty(value = "联系电话", index = 4)
- private String phone;
- @ExcelProperty(value = "今日居家人数", index = 5)
- private int safetyNum;
- @ExcelProperty(value = "确诊人数", index = 6)
- private int sureNum;
- @ExcelProperty(value = "隔离人数", index = 7)
- private int singleNum;
- @ExcelProperty(value = "异常观察人数", index = 8)
- private int suspectedNum;
- @ExcelProperty(value = "身体正常人数", index = 9)
- private int normalNum;
- @ExcelProperty(value = "居家人员姓名", index = 10)
- private String userName;
- @ExcelProperty(value = "性别", index = 11)
- private String grenderStr;
- public String getGrenderStr() {
- if (grender == 1) {
- grenderStr = "男";
- } else if (grender == 2) {
- grenderStr = "女";
- } else {
- grenderStr = "未知";
- }
- return grenderStr;
- }
- @ExcelProperty(value = "年龄", index = 12)
- private String age;
- @ExcelProperty(value = "体温", index = 13)
- private String temperatureStr;
- public String getTemperatureStr() {
- temperatureStr = temperature.floatValue() > 10 ? temperature + "" : "未填报";
- return temperatureStr;
- }
- @ExcelProperty(value = "确诊", index = 14)
- private String medicalStr;
- public String getMedicalStr() {
- if (medical == 0) {
- medicalStr = "否";
- } else {
- medicalStr = "是";
- }
- return medicalStr;
- }
- @ExcelProperty(value = "单间隔离", index = 15)
- private String singleRoomStr;
- public String getSingleRoomStr() {
- if (singleRoom == 0) {
- singleRoomStr = "否";
- } else {
- singleRoomStr = "是";
- }
- return singleRoomStr;
- }
- @ExcelProperty(value = "身体基本情况", index = 16)
- private String baseDesc = "";
- public String getBaseDesc() {
- if (Conv.NI(familyStatus.split(",")[0]) == 1) {
- baseDesc += "心血管疾病(服用ARB),";
- }
- else if (Conv.NI(familyStatus.split(",")[1]) == 1) {
- baseDesc += "心血管疾病(未服用ARB),";
- }
- 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;
- }
- @ExcelProperty(value = "病情描述", index = 17)
- private String bingqingDesc = "";
- public String getBingqingDesc() {
- if (medical == 1) {
- bingqingDesc += "已确诊、";
- }
- if (singleRoom == 1) {
- bingqingDesc += "单间隔离、";
- }
- bingqingDesc = bingqingDesc + "体温:" + temperatureStr + "、";
- if (cough == 1) {
- bingqingDesc += "偶尔短暂咳嗽、";
- } else if (cough == 2) {
- bingqingDesc += "咳嗽轻度影响生活、";
- } else if (cough == 3) {
- bingqingDesc += "咳嗽严重影响生活、";
- }
- if (muscle == 1) {
- bingqingDesc += "肌肉按压有酸痛、";
- } else if (muscle == 2) {
- bingqingDesc += "偶尔肌肉按压酸痛、";
- } else if (muscle == 3) {
- bingqingDesc += "肌肉按压持续酸痛、";
- }
- if (dyspnea == 1) {
- bingqingDesc += "呼吸急走或上坡气短、";
- } else if (dyspnea == 2) {
- bingqingDesc += "呼吸气短而走路变慢、";
- } else if (dyspnea == 3) {
- bingqingDesc += "呼吸走路数分钟后气短、";
- } else if (dyspnea == 4) {
- bingqingDesc += "呼吸气短无法离开房间、";
- }
- if (fatigue == 1) {
- bingqingDesc += "可体力劳动但觉得累、";
- } else if (fatigue == 2) {
- bingqingDesc += "轻体力劳动后长时间不能恢复、";
- } else if (fatigue == 3) {
- bingqingDesc += "不能正常生活、";
- }
- if (diarrhea == 1) {
- bingqingDesc += "轻度腹泻少于于3次、";
- } else if (diarrhea == 2) {
- bingqingDesc += "中度腹泻4-6次、";
- } else if (diarrhea == 3) {
- bingqingDesc += "重度腹泻超过6次、";
- }
- if (!Strings.isNullOrEmpty(statusDesp)) {
- bingqingDesc += statusDesp;
- bingqingDesc += "、";
- }
- if (!Strings.isNullOrEmpty(others)) {
- bingqingDesc += others;
- }
- return bingqingDesc;
- }
- @ExcelProperty(value = "健康评估", index = 18)
- private String scoreRezultStr;
- public String getScoreRezultStr() {
- if (scoreRezult == 0) {
- scoreRezultStr = "未评估";
- } else if (scoreRezult == 1) {
- scoreRezultStr = "正常";
- } else if (scoreRezult == 2) {
- scoreRezultStr = "注意观察";
- } else if (scoreRezult == 3) {
- scoreRezultStr = "联系医生";
- } else if (scoreRezult == 4) {
- scoreRezultStr = "尽快就诊";
- } else {
- scoreRezultStr = "";
- }
- return scoreRezultStr;
- }
- }
|