package com.ld.igds.grain.dto; import com.bstek.dorado.annotation.PropertyDef; import com.fasterxml.jackson.annotation.JsonFormat; import com.ld.igds.models.GrainAnalysis; import java.io.Serializable; import java.util.Date; import lombok.Data; import lombok.EqualsAndHashCode; /** * 用于封装的粮情信息,每次获取粮情数据,封装为当前对象 * * @author vince */ @Data @EqualsAndHashCode(callSuper=false) public class GrainAnalysisData extends GrainAnalysis implements Serializable { /** * */ private static final long serialVersionUID = 1L; @PropertyDef(label = "更新时间", description = "") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8") private Date updateTime = new Date(); @PropertyDef(label = "生效周期---开始时间", description = "") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd",timezone = "GMT+8") private Date start; @PropertyDef(label = "生效周期---结束时间", description = "") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd",timezone = "GMT+8") private Date end; }