¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.dry.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.modules.dry.vo.RealTimeDataVo; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: è¯æ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2023-03-08 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("dry_herb") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="dry_herb对象", description="è¯æ") |
| | | public class DryHerb implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**id*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "id") |
| | | private String id; |
| | | /**è¯æç¼å·*/ |
| | | @Excel(name = "è¯æç¼å·", width = 15) |
| | | @ApiModelProperty(value = "è¯æç¼å·") |
| | | private String code; |
| | | /**è¯æåç§°*/ |
| | | @Excel(name = "è¯æåç§°", width = 15) |
| | | @ApiModelProperty(value = "è¯æåç§°") |
| | | private String name; |
| | | /**è¯æåç±»*/ |
| | | @Excel(name = "è¯æåç±»", width = 15, dictTable = "dry_herb_type", dicText = "name", dicCode = "id") |
| | | @Dict(dictTable = "dry_herb_type", dicText = "name", dicCode = "id") |
| | | @ApiModelProperty(value = "è¯æåç±»") |
| | | private String type; |
| | | /**è¯æå«å*/ |
| | | @Excel(name = "è¯æå«å", width = 15) |
| | | @ApiModelProperty(value = "è¯æå«å") |
| | | private String alias; |
| | | /**è¯ç¨é¨ä½*/ |
| | | @Excel(name = "è¯ç¨é¨ä½", width = 15) |
| | | @ApiModelProperty(value = "è¯ç¨é¨ä½") |
| | | private String parts; |
| | | /**å¹²ç¥æ¹æ³*/ |
| | | @Excel(name = "å¹²ç¥æ¹æ³", width = 15) |
| | | @ApiModelProperty(value = "å¹²ç¥æ¹æ³") |
| | | private String dryMethod; |
| | | // /**å¹²ç¥æ¶é´*/ |
| | | // @Excel(name = "å¹²ç¥æ¶é´", width = 15) |
| | | // @ApiModelProperty(value = "å¹²ç¥æ¶é´") |
| | | // private Integer dryTime; |
| | | // /**å¹²ç¥æ¸©åº¦*/ |
| | | // @Excel(name = "å¹²ç¥æ¸©åº¦", width = 15) |
| | | // @ApiModelProperty(value = "å¹²ç¥æ¸©åº¦") |
| | | // private String dryTemp; |
| | | /**注æäºé¡¹*/ |
| | | @Excel(name = "注æäºé¡¹", width = 15) |
| | | @ApiModelProperty(value = "注æäºé¡¹") |
| | | private String notice; |
| | | /**ç¹æ§æ ç¾*/ |
| | | @Excel(name = "ç¹æ§æ ç¾", width = 15) |
| | | @ApiModelProperty(value = "ç¹æ§æ ç¾") |
| | | private String tag; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**åå»ºæ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**ç§æ·id*/ |
| | | @Excel(name = "ç§æ·id", width = 15) |
| | | @ApiModelProperty(value = "ç§æ·id") |
| | | private Integer tenantId; |
| | | /**åå§å«æ°´ç*/ |
| | | @Excel(name = "åå§å«æ°´ç", width = 15) |
| | | @ApiModelProperty(value = "åå§å«æ°´ç") |
| | | private Double initial; |
| | | /**ç®æ 嫿°´ç*/ |
| | | @Excel(name = "ç®æ 嫿°´ç", width = 15) |
| | | @ApiModelProperty(value = "ç®æ 嫿°´ç") |
| | | private Double target; |
| | | /**ææé*/ |
| | | @Excel(name = "ææé", width = 15) |
| | | @ApiModelProperty(value = "ææé") |
| | | private Integer feed; |
| | | /**é¢è®¡å¹²ç¥æ¶é´*/ |
| | | @Excel(name = "é¢è®¡å¹²ç¥æ¶é´", width = 15) |
| | | @ApiModelProperty(value = "é¢è®¡å¹²ç¥æ¶é´") |
| | | private Integer et; |
| | | /**ç飿¸©åº¦*/ |
| | | @Excel(name = "ç飿¸©åº¦", width = 15) |
| | | @ApiModelProperty(value = "ç飿¸©åº¦") |
| | | private Double windTemp; |
| | | /**ç¯å¢æ¸©åº¦*/ |
| | | @Excel(name = "ç¯å¢æ¸©åº¦", width = 15) |
| | | @ApiModelProperty(value = "ç¯å¢æ¸©åº¦") |
| | | private Double envTemp; |
| | | /**ç¯å¢æ¹¿åº¦*/ |
| | | @Excel(name = "ç¯å¢æ¹¿åº¦", width = 15) |
| | | @ApiModelProperty(value = "ç¯å¢æ¹¿åº¦") |
| | | private Double envHum; |
| | | /**è¡æå»¶æ¶ms*/ |
| | | @Excel(name = "è¡æå»¶æ¶ms", width = 15) |
| | | @ApiModelProperty(value = "è¡æå»¶æ¶ms") |
| | | private Integer delay; |
| | | /**ç¿»ææ¬¡æ°*/ |
| | | @Excel(name = "ç¿»ææ¬¡æ°", width = 15) |
| | | @ApiModelProperty(value = "ç¿»ææ¬¡æ°") |
| | | private Integer turn; |
| | | |
| | | public DryHerb(){} |
| | | public DryHerb(RealTimeDataVo realTimeDataVo) { |
| | | this.code = realTimeDataVo.getIndex() + ""; |
| | | this.delay = realTimeDataVo.getDelay(); |
| | | this.name = realTimeDataVo.getName(); |
| | | this.delay = realTimeDataVo.getDelay(); |
| | | this.turn = realTimeDataVo.getTurntime(); |
| | | this.feed = realTimeDataVo.getWeight1(); |
| | | this.initial = realTimeDataVo.getMoisture1(); |
| | | this.target = realTimeDataVo.getMoisture3(); |
| | | this.windTemp = realTimeDataVo.getTemp3(); |
| | | this.et = realTimeDataVo.getTime1(); |
| | | this.tenantId = realTimeDataVo.getTenantid(); |
| | | } |
| | | } |