| | |
| | | package cn.gistack.sm.jcsb.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.mp.base.BaseEntity; |
| | | import org.springblade.core.tenant.mp.TenantEntity; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("JCSB_DEVICE_REPORT") |
| | | @TableName(value = "SM_DEVICE_REPORT",autoResultMap = true) |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class DeviceReport extends TenantEntity{ |
| | | public class DeviceReport extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | private String deviceType; |
| | | |
| | | /** |
| | | * 雨量 |
| | | * 水库id |
| | | */ |
| | | @ApiModelProperty("雨量") |
| | | private String rainfall; |
| | | @ApiModelProperty("水库id") |
| | | private String resGuid; |
| | | |
| | | /** |
| | | * 水位 |
| | | * 水库名称 |
| | | */ |
| | | @ApiModelProperty("水位") |
| | | private String waterLevel; |
| | | @ApiModelProperty("水库名称") |
| | | private String resName; |
| | | |
| | | /** |
| | | * 流量 |
| | | * 巡查现场图片 |
| | | */ |
| | | @ApiModelProperty("流量") |
| | | private String flow; |
| | | |
| | | /** |
| | | * 蓄水量 |
| | | */ |
| | | @ApiModelProperty("蓄水量") |
| | | private String waterStorage; |
| | | |
| | | /** |
| | | * 比讯限 |
| | | */ |
| | | @ApiModelProperty("比讯限") |
| | | private String specificFloodLimit; |
| | | |
| | | /** |
| | | * 时段雨量 |
| | | */ |
| | | @ApiModelProperty("时段雨量") |
| | | private String temporalRainfall; |
| | | |
| | | /** |
| | | * 记录时间 |
| | | */ |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date recordTime; |
| | | @ApiModelProperty("图片") |
| | | @TableField(value = "images",typeHandler = FastjsonTypeHandler.class) |
| | | private Object[] images; |
| | | } |