|
@@ -3,8 +3,10 @@ package com.izouma.wenlvju.dto;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
|
|
+import com.alibaba.excel.metadata.BaseRowModel;
|
|
|
import com.izouma.wenlvju.domain.Record;
|
|
import com.izouma.wenlvju.domain.Record;
|
|
|
import com.izouma.wenlvju.domain.RecordSpecialty;
|
|
import com.izouma.wenlvju.domain.RecordSpecialty;
|
|
|
|
|
+import com.izouma.wenlvju.utils.excel.LocalDateConverter;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Builder;
|
|
import lombok.Builder;
|
|
@@ -18,83 +20,88 @@ import java.time.LocalDate;
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@ApiModel(value = "备案管理")
|
|
@ApiModel(value = "备案管理")
|
|
|
-public class RecordDTO {
|
|
|
|
|
- @ExcelProperty(value = "考级活动名称")
|
|
|
|
|
|
|
+public class RecordDTO extends BaseRowModel {
|
|
|
|
|
+ @ExcelProperty(value = "备案序号", index = 0)
|
|
|
|
|
+ private long no;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "考级活动名称", index = 1)
|
|
|
private String examinationName;
|
|
private String examinationName;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级活动时间")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级活动时间", index = 2, converter = LocalDateConverter.class)
|
|
|
private LocalDate examinationStartTime;
|
|
private LocalDate examinationStartTime;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级活动时间")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级活动时间", index = 3, converter = LocalDateConverter.class)
|
|
|
private LocalDate examinationEndTime;
|
|
private LocalDate examinationEndTime;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级机构名称")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级机构名称", index = 4)
|
|
|
private String examinationAgency;
|
|
private String examinationAgency;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "单位类别")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "单位类别", index = 5)
|
|
|
private String category;
|
|
private String category;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "承办单位名称")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "承办单位名称", index = 6)
|
|
|
private String organizer;
|
|
private String organizer;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "统一社会信用代码")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "统一社会信用代码", index = 7)
|
|
|
private String uscc;
|
|
private String uscc;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级地址")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级地址", index = 8)
|
|
|
private String district;
|
|
private String district;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级详细地址")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级详细地址", index = 9)
|
|
|
private String examinationAddress;
|
|
private String examinationAddress;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考场数量")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考场数量", index = 10)
|
|
|
private int examCenterQuantity;
|
|
private int examCenterQuantity;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "报考人数")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "报考人数", index = 11)
|
|
|
private int examQuantity;
|
|
private int examQuantity;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考官人数")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考官人数", index = 12)
|
|
|
private int examinerQuantity;
|
|
private int examinerQuantity;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考点负责人名称")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考点负责人名称", index = 13)
|
|
|
private String examOwner;
|
|
private String examOwner;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考点负责人手机号")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考点负责人手机号", index = 14)
|
|
|
private String examOwnerPhone;
|
|
private String examOwnerPhone;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "安全负责人名称")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "安全负责人名称", index = 15)
|
|
|
private String securityOwner;
|
|
private String securityOwner;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "安全负责人手机号")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "安全负责人手机号", index = 16)
|
|
|
private String securityOwnerPhone;
|
|
private String securityOwnerPhone;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "备案时间")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "备案时间", index = 17, converter = LocalDateConverter.class)
|
|
|
private LocalDate recordTime;
|
|
private LocalDate recordTime;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考试简章")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考试简章", index = 18)
|
|
|
private String examinationGuide;
|
|
private String examinationGuide;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级专业名称")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级专业名称", index = 19)
|
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级专业代码")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级专业代码", index = 20)
|
|
|
private String code;
|
|
private String code;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级专业总级数")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级专业总级数", index = 21)
|
|
|
private String level;
|
|
private String level;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级专业考场数量")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级专业考场数量", index = 22)
|
|
|
private int numOfExam;
|
|
private int numOfExam;
|
|
|
|
|
|
|
|
- @ExcelProperty(value = "考级专业考官人数")
|
|
|
|
|
|
|
+ @ExcelProperty(value = "考级专业考官人数", index = 23)
|
|
|
private int speExaQuantity;
|
|
private int speExaQuantity;
|
|
|
|
|
|
|
|
- public RecordDTO(Record record, RecordSpecialty specialty) {
|
|
|
|
|
|
|
+ public RecordDTO(Record record, RecordSpecialty specialty, long no) {
|
|
|
BeanUtil.copyProperties(record, this);
|
|
BeanUtil.copyProperties(record, this);
|
|
|
this.examinerQuantity = record.getExaminerQuantity();
|
|
this.examinerQuantity = record.getExaminerQuantity();
|
|
|
|
|
|
|
|
- if (ObjectUtil.isNotEmpty(specialty)){
|
|
|
|
|
|
|
+ if (ObjectUtil.isNotEmpty(specialty)) {
|
|
|
BeanUtil.copyProperties(specialty, this);
|
|
BeanUtil.copyProperties(specialty, this);
|
|
|
this.speExaQuantity = specialty.getExaminerQuantity();
|
|
this.speExaQuantity = specialty.getExaminerQuantity();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ this.no = no;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|