|
|
@@ -1,5 +1,10 @@
|
|
|
package com.xunmei.common.core.domain.edu.vo;
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelIgnore;
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
|
+import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
|
|
+import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
@@ -7,30 +12,44 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
@Data
|
|
|
+@ColumnWidth(15) //列宽,最大值为255
|
|
|
+@HeadRowHeight(16) //表头行高
|
|
|
+@ContentRowHeight(16) //数据行高
|
|
|
public class CoreEduTrainingTaskReportVo {
|
|
|
|
|
|
- @JsonIgnore
|
|
|
- @JsonSerialize(using = ToStringSerializer.class)
|
|
|
- @ApiModelProperty(value = "教育培训计划Id")
|
|
|
- private Long planId;
|
|
|
|
|
|
+
|
|
|
+ @ExcelProperty(index = 0,value = "序号")
|
|
|
@ApiModelProperty(value = "机构")
|
|
|
- private Long orgId;
|
|
|
+ private Integer no;
|
|
|
|
|
|
+
|
|
|
+ @ExcelProperty(index = 1,value = "单位名称")
|
|
|
@ApiModelProperty(value = "机构名称")
|
|
|
private String orgName;
|
|
|
|
|
|
- @JsonIgnore
|
|
|
- private String orgPath;
|
|
|
-
|
|
|
+ @ExcelProperty(index = 2,value = "应完成数")
|
|
|
@ApiModelProperty(value = "应培训数量")
|
|
|
private Integer shouldFinish;
|
|
|
|
|
|
+ @ExcelProperty(index = 3,value = "已完成数")
|
|
|
@ApiModelProperty(value = "已培训数量")
|
|
|
private Integer finish;
|
|
|
|
|
|
+ @ExcelProperty(index = 4,value = "完成率")
|
|
|
@ApiModelProperty(value = "培训完成率")
|
|
|
private String finishRate;
|
|
|
|
|
|
+ @JsonIgnore
|
|
|
+ @ExcelIgnore
|
|
|
+ @ApiModelProperty(value = "教育培训计划Id")
|
|
|
+ private Long planId;
|
|
|
+
|
|
|
+ @ExcelIgnore
|
|
|
+ @JsonIgnore
|
|
|
+ private String orgPath;
|
|
|
|
|
|
+ @ExcelIgnore
|
|
|
+ @ApiModelProperty(value = "机构")
|
|
|
+ private Long orgId;
|
|
|
}
|