ExcelRiBao.java 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. package com.bofeng.entity;
  2. import com.alibaba.excel.annotation.ExcelProperty;
  3. import com.google.common.base.Strings;
  4. import lombok.Getter;
  5. import lombok.Setter;
  6. import java.math.BigDecimal;
  7. @Getter
  8. @Setter
  9. public class ExcelRiBao {
  10. private String ridgepole;
  11. private String unit;
  12. private String doorplate;
  13. private int grender;
  14. private int familyStatus;
  15. private int medical;
  16. private int cough;
  17. private int muscle;
  18. private int dyspnea;
  19. private int fatigue;
  20. private int diarrhea;
  21. private int singleRoom;
  22. private String statusDesp = "";
  23. private String others = "";
  24. @ExcelProperty(value = "楼栋", index = 0)
  25. private String loudong = "";
  26. public String getLoudong() {
  27. if (loudong.length() <= 0) {
  28. loudong = ridgepole + "栋" + unit + "单元";
  29. }
  30. return loudong;
  31. }
  32. @ExcelProperty(value = "房号", index = 1)
  33. private String fanghao = "";
  34. public String getFanghao() {
  35. if (fanghao.length() <= 0) {
  36. fanghao = doorplate;
  37. }
  38. return fanghao;
  39. }
  40. @ExcelProperty(value = "联系人", index = 2)
  41. private String linkman;
  42. @ExcelProperty(value = "联系电话", index = 3)
  43. private String phone;
  44. @ExcelProperty(value = "今日居家人数", index = 4)
  45. private int safetyNum;
  46. @ExcelProperty(value = "确诊人数", index = 5)
  47. private int sureNum;
  48. @ExcelProperty(value = "隔离人数", index = 6)
  49. private int singleNum;
  50. @ExcelProperty(value = "异常观察人数", index = 7)
  51. private int suspectedNum;
  52. @ExcelProperty(value = "身体正常人数", index = 8)
  53. private int normalNum;
  54. @ExcelProperty(value = "居家人员姓名", index = 9)
  55. private String userName;
  56. //
  57. // @ExcelProperty(value = "性别", index = 10)
  58. // private String grenderStr;
  59. // public String getGrenderStr() {
  60. // if (grender == 1) {
  61. // grenderStr = "男";
  62. // } else if (grender == 2) {
  63. // grenderStr = "女";
  64. // } else {
  65. // grenderStr = "未知";
  66. // }
  67. // return grenderStr;
  68. // }
  69. // @ExcelProperty(value = "年龄", index = 11)
  70. // private String age;
  71. @ExcelProperty(value = "体温", index = 10)
  72. private BigDecimal temperature;
  73. @ExcelProperty(value = "确诊", index = 11)
  74. private String medicalStr;
  75. public String getMedicalStr() {
  76. if (medical == 0) {
  77. medicalStr = "否";
  78. } else {
  79. medicalStr = "是";
  80. }
  81. return medicalStr;
  82. }
  83. @ExcelProperty(value = "单间隔离", index = 12)
  84. private String singleRoomStr;
  85. public String getSingleRoomStr() {
  86. if (singleRoom == 0) {
  87. singleRoomStr = "否";
  88. } else {
  89. singleRoomStr = "是";
  90. }
  91. return singleRoomStr;
  92. }
  93. // @ExcelProperty(value = "身体基本情况", index = 14)
  94. // private String baseDesc;
  95. // public String getBaseDesc() {
  96. // if (familyStatus == 0) {
  97. // baseDesc = "无病史";
  98. // } else if (familyStatus == 1) {
  99. // baseDesc = "心血管疾病(服用ARB)";
  100. // } else if (familyStatus == 2) {
  101. // baseDesc = "心血管疾病(未服用ARB)";
  102. // } else if (familyStatus == 3) {
  103. // baseDesc = "呼吸系统病史";
  104. // } else if (familyStatus == 4) {
  105. // baseDesc = "肿瘤病史";
  106. // } else if (familyStatus == 5) {
  107. // baseDesc = "糖尿病史";
  108. // } else if (familyStatus == 6) {
  109. // baseDesc = "服用过激素药物";
  110. // } else if (familyStatus == 7) {
  111. // baseDesc = "妊娠期";
  112. // } else {
  113. // baseDesc = "其他";
  114. // }
  115. // return baseDesc;
  116. // }
  117. //
  118. // @ExcelProperty(value = "病情描述", index = 15)
  119. // private String bingqingDesc = "";
  120. // public String getBingqingDesc() {
  121. //
  122. // if (medical == 1) {
  123. // bingqingDesc += "已确诊、";
  124. // }
  125. //
  126. // if (singleRoom == 1) {
  127. // bingqingDesc += "单间隔离、";
  128. // }
  129. //
  130. // bingqingDesc = bingqingDesc + "体温:" + temperature + "、";
  131. //
  132. // if (cough == 1) {
  133. // bingqingDesc += "偶尔短暂咳嗽、";
  134. // } else if (cough == 2) {
  135. // bingqingDesc += "咳嗽轻度影响生活、";
  136. // } else if (cough == 3) {
  137. // bingqingDesc += "咳嗽严重影响生活、";
  138. // }
  139. // if (muscle == 1) {
  140. // bingqingDesc += "肌肉按压有酸痛、";
  141. // } else if (muscle == 2) {
  142. // bingqingDesc += "偶尔肌肉按压酸痛、";
  143. // } else if (muscle == 3) {
  144. // bingqingDesc += "肌肉按压持续酸痛、";
  145. // }
  146. // if (dyspnea == 1) {
  147. // bingqingDesc += "呼吸急走或上坡气短、";
  148. // } else if (dyspnea == 2) {
  149. // bingqingDesc += "呼吸气短而走路变慢、";
  150. // } else if (dyspnea == 3) {
  151. // bingqingDesc += "呼吸走路数分钟后气短、";
  152. // } else if (dyspnea == 4) {
  153. // bingqingDesc += "呼吸气短无法离开房间、";
  154. // }
  155. // if (fatigue == 1) {
  156. // bingqingDesc += "可体力劳动但觉得累、";
  157. // } else if (fatigue == 2) {
  158. // bingqingDesc += "轻体力劳动后长时间不能恢复、";
  159. // } else if (fatigue == 3) {
  160. // bingqingDesc += "不能正常生活、";
  161. // }
  162. // if (diarrhea == 1) {
  163. // bingqingDesc += "轻度腹泻少于于3次、";
  164. // } else if (diarrhea == 2) {
  165. // bingqingDesc += "中度腹泻4-6次、";
  166. // } else if (diarrhea == 3) {
  167. // bingqingDesc += "重度腹泻超过6次、";
  168. // }
  169. //
  170. // if (!Strings.isNullOrEmpty(statusDesp)) {
  171. // bingqingDesc += statusDesp;
  172. // bingqingDesc += "、";
  173. // }
  174. // if (!Strings.isNullOrEmpty(others)) {
  175. // bingqingDesc += others;
  176. // }
  177. // return bingqingDesc;
  178. // }
  179. }