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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.business.rtumanage.entity.RtuStatusEntity;
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)
public class RtuStatusDTO extends RtuStatusEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 入库时间
	 */
	@ApiModelProperty(value = "入库时间")
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
	)
	private Date fromDate;


	/**
	 * 是否雨量站
	 */
	@ApiModelProperty(value = "是否雨量站")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Integer isRain;

	/**
	 * 是否河道站
	 */
	@ApiModelProperty(value = "是否河道站")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Integer isRiver;

	/**
	 * 是否水库站
	 */
	@ApiModelProperty(value = "是否水库站")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Integer isRes;

	/**
	 * 是否墒情站
	 */
	@ApiModelProperty(value = "是否墒情站")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Integer isGround;
}
