|
@@ -1,5 +1,6 @@
|
|
|
package com.bofeng.entity;
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
|
import com.baomidou.mybatisplus.annotations.TableId;
|
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
|
@@ -37,6 +38,7 @@ public class Vaccine {
|
|
|
/**
|
|
|
* 未接种原因
|
|
|
*/
|
|
|
+ @ExcelProperty(value = "未接种原因", index = 6)
|
|
|
@TableField("reason")
|
|
|
private String reason;
|
|
|
|
|
@@ -49,10 +51,18 @@ public class Vaccine {
|
|
|
/**
|
|
|
* 第一剂接种医院
|
|
|
*/
|
|
|
+ @ExcelProperty(value = "第一剂接种医院", index = 9)
|
|
|
@TableField("first_hospital")
|
|
|
private String firstHospital;
|
|
|
|
|
|
/**
|
|
|
+ * 第一剂接种单位
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "第一剂接种单位", index = 10)
|
|
|
+ @TableField("first_unit")
|
|
|
+ private String firstUnit;
|
|
|
+
|
|
|
+ /**
|
|
|
* 第二剂接种日期
|
|
|
*/
|
|
|
@TableField("second_time")
|
|
@@ -61,10 +71,18 @@ public class Vaccine {
|
|
|
/**
|
|
|
* 第二剂接种医院
|
|
|
*/
|
|
|
+ @ExcelProperty(value = "第二剂接种医院", index = 12)
|
|
|
@TableField("second_hospital")
|
|
|
private String secondHospital;
|
|
|
|
|
|
/**
|
|
|
+ * 第二剂接种单位
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "第二剂接种单位", index = 13)
|
|
|
+ @TableField("second_unit")
|
|
|
+ private String secondUnit;
|
|
|
+
|
|
|
+ /**
|
|
|
* 第三剂接种日期
|
|
|
*/
|
|
|
@TableField("third_time")
|
|
@@ -73,10 +91,18 @@ public class Vaccine {
|
|
|
/**
|
|
|
* 第三剂接种医院
|
|
|
*/
|
|
|
+ @ExcelProperty(value = "第三剂接种医院", index = 15)
|
|
|
@TableField("third_hospital")
|
|
|
private String thirdHospital;
|
|
|
|
|
|
/**
|
|
|
+ * 第三剂接种单位
|
|
|
+ */
|
|
|
+ @ExcelProperty(value = "第二剂接种单位", index = 16)
|
|
|
+ @TableField("third_unit")
|
|
|
+ private String thirdUnit;
|
|
|
+
|
|
|
+ /**
|
|
|
* 新增时间
|
|
|
*/
|
|
|
@TableField("time_create")
|
|
@@ -87,4 +113,69 @@ public class Vaccine {
|
|
|
*/
|
|
|
@TableField("time_update")
|
|
|
private Date timeUpdate;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "姓名", index = 0)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String userName;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "部门名称", index = 1)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String unit;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "二级部门", index = 2)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String departmentName;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "联系电话", index = 3)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String phone;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "工号", index = 4)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String doorplate;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "是否接种新冠疫苗", index = 5)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String inoculateStatusStr;
|
|
|
+
|
|
|
+ public String getInoculateStatusStr() {
|
|
|
+ if (inoculateStatus == null) {
|
|
|
+ inoculateStatusStr = "";
|
|
|
+ } else if (inoculateStatus == 1) {
|
|
|
+ inoculateStatusStr = "是";
|
|
|
+ } else if (inoculateStatus == 2) {
|
|
|
+ inoculateStatusStr = "否";
|
|
|
+ }
|
|
|
+ return inoculateStatusStr;
|
|
|
+ }
|
|
|
+
|
|
|
+ @ExcelProperty(value = "接种疫苗类别", index = 7)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String vaccineTypeStr;
|
|
|
+
|
|
|
+ public String getVaccineTypeStr() {
|
|
|
+ if (vaccineType == null) {
|
|
|
+ vaccineTypeStr = "";
|
|
|
+ } else if (vaccineType == 1) {
|
|
|
+ vaccineTypeStr = "腺病毒疫苗";
|
|
|
+ } else if (vaccineType == 2) {
|
|
|
+ vaccineTypeStr = "灭活疫苗";
|
|
|
+ } else if (vaccineType == 3) {
|
|
|
+ vaccineTypeStr = "重组亚单位疫苗";
|
|
|
+ }
|
|
|
+ return vaccineTypeStr;
|
|
|
+ }
|
|
|
+
|
|
|
+ @ExcelProperty(value = "第一剂接种日期", index = 8)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String firstTimeStr;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "第二剂接种日期", index = 11)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String secondTimeStr;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "第三剂接种日期", index = 14)
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String thirdTimeStr;
|
|
|
+
|
|
|
}
|