| | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import com.ruoyi.sales.pojo.CommonFile; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | |
| | | */ |
| | | @Data |
| | | @TableName("measuring_instrument_ledger") |
| | | @ApiModel |
| | | @Schema |
| | | public class MeasuringInstrumentLedger { |
| | | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("附件id") |
| | | @Schema(description = "附件id") |
| | | @TableField(exist = false) |
| | | private List<String> tempFileIds; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("附件列表") |
| | | @Schema(description = "附件列表") |
| | | private List<CommonFile> commonFiles; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("录入人id") |
| | | @Schema(description = "录入人id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty("录入人名称") |
| | | @Schema(description = "录入人名称") |
| | | @Excel(name = "录入人名称") |
| | | private String userName; |
| | | |
| | | /** |
| | | * 计量器具编号 |
| | | */ |
| | | @ApiModelProperty("计量器具编号") |
| | | @Schema(description = "计量器具编号") |
| | | @Excel(name = "计量器具编号") |
| | | private String code; |
| | | |
| | | /** |
| | | * 计量器具名称 |
| | | */ |
| | | @ApiModelProperty("计量器具名称") |
| | | @Schema(description = "计量器具名称") |
| | | @Excel(name = "计量器具名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 规格型号 |
| | | */ |
| | | @ApiModelProperty("规格型号") |
| | | @Schema(description = "规格型号") |
| | | @Excel(name = "规格型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 最近一次检定日期 |
| | | */ |
| | | @ApiModelProperty("最近一次检定日期") |
| | | @Schema(description = "最近一次检定日期") |
| | | @Excel(name = "最近一次检定日期", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | /** |
| | | * 检定有效期 |
| | | */ |
| | | @ApiModelProperty("检定有效期") |
| | | @Schema(description = "检定有效期") |
| | | @Excel(name = "检定有效期") |
| | | private Integer valid; |
| | | |
| | | /** |
| | | * 预计下次检定日期 |
| | | */ |
| | | @ApiModelProperty("预计下次检定日期") |
| | | @Schema(description = "预计下次检定日期") |
| | | @Excel(name = "预计下次检定日期" , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | /** |
| | | * 录入日期 |
| | | */ |
| | | @ApiModelProperty("录入日期") |
| | | @Schema(description = "录入日期") |
| | | @Excel(name = "录入日期" , width = 30, dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | /** |
| | | * 状态(1-有效 2-逾期) |
| | | */ |
| | | @ApiModelProperty("状态(1-有效 2-逾期)") |
| | | @Excel(name = "状态", readConverterExp = "1=有效,2=逾期,3=即将到期") |
| | | @Schema(description = "状态(1-有效 2-逾期)") |
| | | @Excel(name = "状态", readConverterExp = "1=有效,2=逾期") |
| | | private Integer status; |
| | | |
| | | /** |
| | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | @ApiModelProperty("部门id") |
| | | private Long deptId; |
| | | |
| | | @ApiModelProperty("安装位置") |
| | | private String installationLocation; |
| | | |
| | | @ApiModelProperty("检定单位") |
| | | @Schema(description = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty("检定周期(天)") |
| | | private Long cycle; |
| | | @Schema(description = "部门id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | |
| | | @Schema(description = "安装位置") |
| | | private String instationLocation; |
| | | |
| | | private String cycle; |
| | | |
| | | } |