|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.hnac.hzims.safeproduct.entity; |
|
|
|
package com.hnac.hzims.safeproduct.entity; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
@ -19,40 +21,48 @@ import java.util.Date; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Data |
|
|
|
@Data |
|
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
|
|
|
|
|
@ExcelIgnoreUnannotated |
|
|
|
@TableName("hzims_rehearsal_record") |
|
|
|
@TableName("hzims_rehearsal_record") |
|
|
|
@ApiModel(value = "演练记录实体类") |
|
|
|
@ApiModel(value = "演练记录实体类") |
|
|
|
public class RehearsalRecordEntity extends BaseEntity { |
|
|
|
public class RehearsalRecordEntity extends BaseEntity { |
|
|
|
|
|
|
|
|
|
|
|
@Size(max = 50, message = "编码字段长度不能超过50") |
|
|
|
@Size(max = 50, message = "编码字段长度不能超过50") |
|
|
|
@ApiModelProperty("编码") |
|
|
|
@ApiModelProperty("编码") |
|
|
|
|
|
|
|
@ExcelProperty(value = "编码", index = 0) |
|
|
|
private String code; |
|
|
|
private String code; |
|
|
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
@Size(max = 50, message = "单位字段长度不能超过50") |
|
|
|
@Size(max = 50, message = "单位字段长度不能超过50") |
|
|
|
@ApiModelProperty("单位") |
|
|
|
@ApiModelProperty("单位") |
|
|
|
|
|
|
|
@ExcelProperty(value = "单位", index = 1) |
|
|
|
private String unit; |
|
|
|
private String unit; |
|
|
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
@Size(max = 50, message = "演练科目字段长度不能超过50") |
|
|
|
@Size(max = 50, message = "演练科目字段长度不能超过50") |
|
|
|
@ApiModelProperty("演练科目") |
|
|
|
@ApiModelProperty("演练科目") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练科目", index = 2) |
|
|
|
private String subject; |
|
|
|
private String subject; |
|
|
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
@ApiModelProperty("演练计划开始时间") |
|
|
|
@ApiModelProperty("演练计划开始时间") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练计划开始时间", index = 3) |
|
|
|
private Date scheduledStartTime; |
|
|
|
private Date scheduledStartTime; |
|
|
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
@ApiModelProperty("演练计划结束时间") |
|
|
|
@ApiModelProperty("演练计划结束时间") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练计划结束时间", index = 4) |
|
|
|
private Date scheduledEndTime; |
|
|
|
private Date scheduledEndTime; |
|
|
|
|
|
|
|
|
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
@Size(max = 255, message = "演练地点字段长度不能超过255") |
|
|
|
@Size(max = 255, message = "演练地点字段长度不能超过255") |
|
|
|
@ApiModelProperty("演练地点") |
|
|
|
@ApiModelProperty("演练地点") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练地点", index = 5) |
|
|
|
private String location; |
|
|
|
private String location; |
|
|
|
|
|
|
|
|
|
|
|
@Min(value = 0, message = "参演人数不能小于0") |
|
|
|
@Min(value = 0, message = "参演人数不能小于0") |
|
|
|
@Max(value = 1000, message = "参演人数字段长度超出限制范围") |
|
|
|
@Max(value = 1000, message = "参演人数字段长度超出限制范围") |
|
|
|
@ApiModelProperty("参演人数") |
|
|
|
@ApiModelProperty("参演人数") |
|
|
|
|
|
|
|
@ExcelProperty(value = "参演人数", index = 6) |
|
|
|
private Integer peopleNum; |
|
|
|
private Integer peopleNum; |
|
|
|
|
|
|
|
|
|
|
|
@Size(max = 5000, message = "参演人员字段长度超出限制范围") |
|
|
|
@Size(max = 5000, message = "参演人员字段长度超出限制范围") |
|
|
@ -65,9 +75,11 @@ public class RehearsalRecordEntity extends BaseEntity { |
|
|
|
private String commander; |
|
|
|
private String commander; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("演练实际开始时间") |
|
|
|
@ApiModelProperty("演练实际开始时间") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练实际开始时间", index = 7) |
|
|
|
private Date actualStartTime; |
|
|
|
private Date actualStartTime; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("演练实际结束时间") |
|
|
|
@ApiModelProperty("演练实际结束时间") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练实际结束时间", index = 8) |
|
|
|
private Date actualEndTime; |
|
|
|
private Date actualEndTime; |
|
|
|
|
|
|
|
|
|
|
|
@Size(max = 250, message = "演练记录字段长度不能超过250") |
|
|
|
@Size(max = 250, message = "演练记录字段长度不能超过250") |
|
|
@ -85,6 +97,7 @@ public class RehearsalRecordEntity extends BaseEntity { |
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
@Size(max = 20, message = "演练状态字段长度不能超过20") |
|
|
|
@Size(max = 20, message = "演练状态字段长度不能超过20") |
|
|
|
@ApiModelProperty("演练状态") |
|
|
|
@ApiModelProperty("演练状态") |
|
|
|
|
|
|
|
@ExcelProperty(value = "演练状态", index = 9) |
|
|
|
private String rehearsalStatus; |
|
|
|
private String rehearsalStatus; |
|
|
|
|
|
|
|
|
|
|
|
@Size(max = 1000, message = "演练图片字段长度不能超过1000") |
|
|
|
@Size(max = 1000, message = "演练图片字段长度不能超过1000") |
|
|
|