| | |
| | | */ |
| | | |
| | | @Data |
| | | @JsonPropertyOrder({"id", "name", "startDt", "endDt", "stopped", "isStopped", "remarks", "createDt"}) |
| | | @JsonPropertyOrder({"id", "weatherId", |
| | | "name", "startDt", "endDt", |
| | | "life1Start", "life1End", "life1Factor", |
| | | "life2Start", "life2End", "life2Factor", |
| | | "life3Start", "life3End", "life3Factor", |
| | | "life4Start", "life4End", "life4Factor", |
| | | "stopped", "remarks", "createDt", |
| | | "lifeLen", "lifeCur", "lifeFactor", "stoppedStr" |
| | | }) |
| | | public class VoCrops implements Serializable { |
| | | |
| | | public static final long serialVersionUID = 202508061124001L; |
| | |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long id; |
| | | /** |
| | | * 指向气象站外键 |
| | | */ |
| | | @JSONField(serializeUsing= ObjectWriterImplToString.class) |
| | | public Long weatherId; |
| | | |
| | | /** |
| | | * 作物名称 |
| | |
| | | public String endDt; |
| | | |
| | | /** |
| | | * 是否停止计算,1是,0否 |
| | | * 生长初期开始天数(默认是1) |
| | | */ |
| | | public Byte stopped; |
| | | public Integer life1Start; |
| | | |
| | | /** |
| | | * 生长初期结束天数 |
| | | */ |
| | | public Integer life1End; |
| | | |
| | | /** |
| | | * 生长初期作物系数 |
| | | */ |
| | | public Double life1Factor ; |
| | | |
| | | /** |
| | | * 快速生长期开始天数(默认生长初期结束天数+1) |
| | | */ |
| | | public Integer life2Start; |
| | | |
| | | /** |
| | | * 快速生长期结束天数 |
| | | */ |
| | | public Integer life2End; |
| | | |
| | | /** |
| | | * 快速生长期作物系数 |
| | | */ |
| | | public Double life2Factor ; |
| | | |
| | | /** |
| | | * 生长中期开始天数(默认快速生长期结束天数+1) |
| | | */ |
| | | public Integer life3Start; |
| | | |
| | | /** |
| | | * 生长中期结束天数 |
| | | */ |
| | | public Integer life3End; |
| | | |
| | | /** |
| | | * 生长中期作物系数 |
| | | */ |
| | | public Double life3Factor ; |
| | | |
| | | /** |
| | | * 生长末期开始天数(默认生长中期结束天数+1) |
| | | */ |
| | | public Integer life4Start; |
| | | |
| | | /** |
| | | * 生长末期结束天数 |
| | | */ |
| | | public Integer life4End; |
| | | |
| | | /** |
| | | * 生长末期作物系数 |
| | | */ |
| | | public Double life4Factor ; |
| | | |
| | | |
| | | /** |
| | | * 是否停止计算,1是,0否 |
| | | */ |
| | | public String isStopped; |
| | | public Byte stopped; |
| | | |
| | | /** |
| | | * 备注 |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | public Date createDt; |
| | | |
| | | public String getIsStopped() { |
| | | if (this.stopped != null) { |
| | | if(this.stopped == 0){ |
| | | return "否"; |
| | | }else{ |
| | | return "是"; |
| | | } |
| | | } |
| | | return "" ; |
| | | } |
| | | /** |
| | | * 已经生成时长(天) |
| | | */ |
| | | public Integer lifeLen; |
| | | /** |
| | | * 当前生长阶段 |
| | | */ |
| | | public String lifeCur ; |
| | | /** |
| | | * 对应作物生长阶段的系数 |
| | | */ |
| | | public Double lifeFactor ; |
| | | /** |
| | | * 是否停止计算,1是,0否 |
| | | */ |
| | | public String stoppedStr; |
| | | /** |
| | | * 已经生成时长(天) |
| | | */ |
| | | public String lifeLenStr; |
| | | |
| | | /** |
| | | * 对应作物生长阶段的系数 |
| | | */ |
| | | public String lifeFactorStr ; |
| | | |
| | | //关联气象站名称 |
| | | public String weatherName ; |
| | | |
| | | } |