package com.newfiber.api.pc.dto; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; /** * 警情 统计 DTO * @Author:zzh * @CreateDate:2020/12/1 18:02 * @Description: */ @Data @NoArgsConstructor public class AlertStatisticsDTO implements Serializable { /** 警情类别id */ private Integer alertTypeId; /** 开始时间 */ @JSONField(format = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date startTime; /** 结束时间 */ @JSONField(format = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date endTime; }