ScadaQuery.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.tofly.scada.entity.dto;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import lombok.Data;
  5. import org.springframework.format.annotation.DateTimeFormat;
  6. import java.util.Date;
  7. /**
  8. * @author HaiQiu
  9. * @date 2022/5/9
  10. */
  11. @Data
  12. public class ScadaQuery {
  13. @ApiModelProperty(value = "开始时间")
  14. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  15. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  16. Date start;
  17. @ApiModelProperty(value = "结束时间")
  18. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  19. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  20. Date end;
  21. @ApiModelProperty(value = "指标编码")
  22. String code;
  23. @ApiModelProperty(value = "指标值")
  24. private String value;
  25. @ApiModelProperty(value = "表名",hidden = true)
  26. private String tableName;
  27. /**
  28. * 统计类型:0小时统计 1天统计 2月统计 3年统计
  29. */
  30. @ApiModelProperty(value = "统计类型:0小时统计 1天统计 2月统计 3年统计")
  31. private Integer statisticsType;
  32. /**
  33. * 统计时间
  34. */
  35. @ApiModelProperty(value = "统计时间")
  36. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  37. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  38. private Date startTime;
  39. }