Browse Source

证书信息导入模板对象

wangxx 1 month ago
parent
commit
8c14b49325

+ 2 - 1
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/LedgerCertificateInfoController.java

@@ -17,6 +17,7 @@ import com.sundot.airport.common.core.controller.BaseController;
17 17
 import com.sundot.airport.common.core.domain.AjaxResult;
18 18
 import com.sundot.airport.common.enums.BusinessType;
19 19
 import com.sundot.airport.ledger.domain.LedgerCertificateInfo;
20
+import com.sundot.airport.ledger.dto.LedgerCertificateImportTemplate;
20 21
 import com.sundot.airport.ledger.service.ILedgerCertificateInfoService;
21 22
 import com.sundot.airport.common.utils.poi.ExcelUtil;
22 23
 import com.sundot.airport.common.core.page.TableDataInfo;
@@ -134,7 +135,7 @@ public class LedgerCertificateInfoController extends BaseController {
134 135
      */
135 136
     @PostMapping("/importTemplate")
136 137
     public void importTemplate(HttpServletResponse response) {
137
-        ExcelUtil<LedgerCertificateInfo> util = new ExcelUtil<LedgerCertificateInfo>(LedgerCertificateInfo.class);
138
+        ExcelUtil<LedgerCertificateImportTemplate> util = new ExcelUtil<>(LedgerCertificateImportTemplate.class);
138 139
         util.importTemplateExcel(response, "证书信息数据");
139 140
     }
140 141
 

+ 134 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/dto/LedgerCertificateImportTemplate.java

@@ -0,0 +1,134 @@
1
+package com.sundot.airport.ledger.dto;
2
+
3
+import java.util.Date;
4
+
5
+import com.sundot.airport.common.annotation.Excel;
6
+
7
+/**
8
+ * 证书信息导入模板对象(仅用于生成Excel导入模板,不参与业务逻辑)
9
+ *
10
+ * @author ruoyi
11
+ */
12
+public class LedgerCertificateImportTemplate {
13
+
14
+    @Excel(name = "姓名")
15
+    private String personName;
16
+
17
+    @Excel(name = "单位")
18
+    private String unitName;
19
+
20
+    @Excel(name = "性别", readConverterExp = "男=男,女=女")
21
+    private String gender;
22
+
23
+    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
24
+    private Date birthDate;
25
+
26
+    @Excel(name = "身份证号")
27
+    private String idCard;
28
+
29
+    @Excel(name = "证书等级")
30
+    private String certLevel;
31
+
32
+    @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd")
33
+    private Date issueDate;
34
+
35
+    @Excel(name = "证书编号")
36
+    private String certNo;
37
+
38
+    @Excel(name = "理论考核成绩")
39
+    private Double theoryScore;
40
+
41
+    @Excel(name = "实操考核成绩")
42
+    private Double practiceScore;
43
+
44
+    @Excel(name = "评定成绩")
45
+    private String evalScore;
46
+
47
+    @Excel(name = "用工形式")
48
+    private String employmentType;
49
+
50
+    @Excel(name = "服务期(月)")
51
+    private Integer serviceMonths;
52
+
53
+    @Excel(name = "备注")
54
+    private String remark;
55
+
56
+    @Excel(name = "第一次复审时间", width = 30, dateFormat = "yyyy-MM-dd")
57
+    private Date reviewTime1;
58
+
59
+    @Excel(name = "第二次复审时间", width = 30, dateFormat = "yyyy-MM-dd")
60
+    private Date reviewTime2;
61
+
62
+    @Excel(name = "第三次复审时间", width = 30, dateFormat = "yyyy-MM-dd")
63
+    private Date reviewTime3;
64
+
65
+    @Excel(name = "第四次复审时间", width = 30, dateFormat = "yyyy-MM-dd")
66
+    private Date reviewTime4;
67
+
68
+    @Excel(name = "第五次复审时间", width = 30, dateFormat = "yyyy-MM-dd")
69
+    private Date reviewTime5;
70
+
71
+    @Excel(name = "第六次复审时间", width = 30, dateFormat = "yyyy-MM-dd")
72
+    private Date reviewTime6;
73
+
74
+
75
+    public String getUnitName() { return unitName; }
76
+    public void setUnitName(String unitName) { this.unitName = unitName; }
77
+
78
+    public String getPersonName() { return personName; }
79
+    public void setPersonName(String personName) { this.personName = personName; }
80
+
81
+    public String getGender() { return gender; }
82
+    public void setGender(String gender) { this.gender = gender; }
83
+
84
+    public Date getBirthDate() { return birthDate; }
85
+    public void setBirthDate(Date birthDate) { this.birthDate = birthDate; }
86
+
87
+    public String getIdCard() { return idCard; }
88
+    public void setIdCard(String idCard) { this.idCard = idCard; }
89
+
90
+    public String getCertLevel() { return certLevel; }
91
+    public void setCertLevel(String certLevel) { this.certLevel = certLevel; }
92
+
93
+    public Date getIssueDate() { return issueDate; }
94
+    public void setIssueDate(Date issueDate) { this.issueDate = issueDate; }
95
+
96
+    public String getCertNo() { return certNo; }
97
+    public void setCertNo(String certNo) { this.certNo = certNo; }
98
+
99
+    public Double getTheoryScore() { return theoryScore; }
100
+    public void setTheoryScore(Double theoryScore) { this.theoryScore = theoryScore; }
101
+
102
+    public Double getPracticeScore() { return practiceScore; }
103
+    public void setPracticeScore(Double practiceScore) { this.practiceScore = practiceScore; }
104
+
105
+    public String getEvalScore() { return evalScore; }
106
+    public void setEvalScore(String evalScore) { this.evalScore = evalScore; }
107
+
108
+    public String getEmploymentType() { return employmentType; }
109
+    public void setEmploymentType(String employmentType) { this.employmentType = employmentType; }
110
+
111
+    public Integer getServiceMonths() { return serviceMonths; }
112
+    public void setServiceMonths(Integer serviceMonths) { this.serviceMonths = serviceMonths; }
113
+
114
+    public String getRemark() { return remark; }
115
+    public void setRemark(String remark) { this.remark = remark; }
116
+
117
+    public Date getReviewTime1() { return reviewTime1; }
118
+    public void setReviewTime1(Date reviewTime1) { this.reviewTime1 = reviewTime1; }
119
+
120
+    public Date getReviewTime2() { return reviewTime2; }
121
+    public void setReviewTime2(Date reviewTime2) { this.reviewTime2 = reviewTime2; }
122
+
123
+    public Date getReviewTime3() { return reviewTime3; }
124
+    public void setReviewTime3(Date reviewTime3) { this.reviewTime3 = reviewTime3; }
125
+
126
+    public Date getReviewTime4() { return reviewTime4; }
127
+    public void setReviewTime4(Date reviewTime4) { this.reviewTime4 = reviewTime4; }
128
+
129
+    public Date getReviewTime5() { return reviewTime5; }
130
+    public void setReviewTime5(Date reviewTime5) { this.reviewTime5 = reviewTime5; }
131
+
132
+    public Date getReviewTime6() { return reviewTime6; }
133
+    public void setReviewTime6(Date reviewTime6) { this.reviewTime6 = reviewTime6; }
134
+}