/**
 * Copyright 2019 DH
 * All right reserved.
 * 项目名称: 大恒泰山系统
 * 创建日期:2022/8/19
 */
package org.springblade.modules.business.rtumanage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.modules.business.rtu.base.entity.RtuInfoEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/***
 * Date:2022/8/19
 * Title:文件所属模块（必须填写）
 * Description：对本文件的详细描述，原则上不能少于30字
 * @author dylan
 * @version 1.0
 * Remark：认为有必要的其他信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("rtu_status")
public class RtuStatusEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;


	/**
	 * 租户ID
	 */
	@ApiModelProperty("租户ID")
	private String tenantId;

	/**
	 * 测站编码
	 */
	@ApiModelProperty(value = "测站编码")
	private String rtuCode;

	/**
	 * 测站状态ID
	 */
	@ApiModelProperty(value = "测站状态")
	private Integer runStatusId;

	/**
	 * 最后上报时间
	 */
	@ApiModelProperty(value = "最后上报时间")
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
	)
	private Date lastUpTime;


}
