package com.ruoyi.measuringinstrumentledger.pojo; import com.baomidou.mybatisplus.annotation.*; 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 lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.time.LocalDateTime; import java.util.Date; import java.util.List; /** * @author :yys * @date : 2025/8/5 9:12 */ @Data @TableName("measuring_instrument_ledger") @ApiModel public class MeasuringInstrumentLedger { private static final long serialVersionUID = 1L; @ApiModelProperty("附件id") @TableField(exist = false) private List tempFileIds; @TableField(exist = false) @ApiModelProperty("附件列表") private List commonFiles; @TableId(value = "id", type = IdType.AUTO) private Long id; @ApiModelProperty("录入人id") private Long userId; @ApiModelProperty("录入人名称") @Excel(name = "录入人名称") private String userName; /** * 计量器具编号 */ @ApiModelProperty("计量器具编号") @Excel(name = "计量器具编号") private String code; /** * 计量器具名称 */ @ApiModelProperty("计量器具名称") @Excel(name = "计量器具名称") private String name; /** * 规格型号 */ @ApiModelProperty("规格型号") @Excel(name = "规格型号") private String model; /** * 最近一次检定日期 */ @ApiModelProperty("最近一次检定日期") @Excel(name = "最近一次检定日期", width = 30, dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date mostDate; /** * 检定有效期 */ @ApiModelProperty("检定有效期") @Excel(name = "检定有效期") private Integer valid; /** * 预计下次检定日期 */ @ApiModelProperty("预计下次检定日期") @Excel(name = "预计下次检定日期" , width = 30, dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date nextDate; /** * 录入日期 */ @ApiModelProperty("录入日期") @Excel(name = "录入日期" , width = 30, dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date recordDate; /** * 状态(1-有效 2-逾期) */ @ApiModelProperty("状态(1-有效 2-逾期)") @Excel(name = "状态", readConverterExp = "1=有效,2=逾期") private Integer status; /** * 创建者 */ @TableField(fill = FieldFill.INSERT) private Integer createUser; /** * 创建时间 */ @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; /** * 修改者 */ @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; /** * 修改时间 */ @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; /** * 租户ID */ @TableField(fill = FieldFill.INSERT) private Long tenantId; }