package com.yuanchu.mom.pojo; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import javax.validation.constraints.NotNull; /** *
* *
* * @author 江苏鵷雏网络科技有限公司 * @since 2023-08-16 11:41:09 */ @Data @EqualsAndHashCode(callSuper = false) @ApiModel(value = "MeasureLedger对象", description = "") public class MeasureLedger implements Serializable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "主键Id", hidden = true) @TableId(value = "id", type = IdType.AUTO) private Integer id; @NotNull(message = "设备Id不能为空!") @ApiModelProperty(value = "设备Id", example = "1", required = true) private Integer deviceId; @ApiModelProperty(value = "计量计划Id", hidden = true) private Integer measurePlanId; @ApiModelProperty(value = "测量范围", example = "0.2302") private String measuringRange; @NotNull(message = "计量周期不能为空!") @ApiModelProperty(value = "计量周期", example = "12", required = true) private Integer measurePeriod; @ApiModelProperty(value = "计量结果 1:正常;2:失准") private Integer measureResult; @ApiModelProperty(value = "计量日期", example = "2023-08-16", dataType = "date", required = true) @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private LocalDate measureDate; @ApiModelProperty(value = "计量有效期-开始", example = "2023-08-16", dataType = "date", required = true) @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private LocalDate validityBegin; @ApiModelProperty(value = "计量有效期-结束", example = "2023-08-16", dataType = "date", required = true) @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private LocalDate validityEnd; @ApiModelProperty(value = "计量编号", hidden = true) private String measureNumber; @ApiModelProperty(value = "附件", hidden = true) private String attachment; @ApiModelProperty(value = "创建时间", hidden = true) @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; @ApiModelProperty(value = "更新时间", hidden = true) @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date updateTime; @ApiModelProperty(value = "逻辑删除", hidden = true) @TableLogic(value = "1", delval = "0") private Integer state; }