WeatherMonthData.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.persagy.ems.pojo.old;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4. import com.persagy.core.annotation.Column;
  5. import com.persagy.core.annotation.Dimension;
  6. import com.persagy.core.annotation.Entity;
  7. import com.persagy.core.annotation.Index;
  8. import com.persagy.core.annotation.Table;
  9. import com.persagy.core.enumeration.Schema;
  10. import com.persagy.core.mvc.pojo.BusinessObject;
  11. /**
  12. * 龙湖定制
  13. */
  14. @Dimension
  15. @Entity(name = "WeatherMonthData")
  16. @Table(name = "t_weather_month_data", schema = Schema.UDM, comment = "天气5分钟的数据", indexes = {
  17. @Index(columns = { "c_location_id", "c_receive_time" }, unique = true) })
  18. public class WeatherMonthData extends BusinessObject {
  19. private static final long serialVersionUID = 2389680252274743015L;
  20. @JsonProperty("locationId")
  21. @Column(order = 1, name = "c_location_id", length = 50, nullable = false, comment = "城市编码")
  22. private String locationId;
  23. @JsonProperty("receivetime")
  24. @Column(order = 3, name = "c_receive_time", length = 0, nullable = false, comment = "数据时间")
  25. private Date receivetime;
  26. @JsonProperty("data")
  27. @Column(order = 4, name = "c_data", length = 18, scale = 8, nullable = false, comment = "数值")
  28. private Double data;
  29. @JsonProperty("type")
  30. @Column(order = 1, name = "c_type", length = 5, nullable = false, comment = "类型")
  31. private Integer type;
  32. public Integer getType() {
  33. return type;
  34. }
  35. public void setType(Integer type) {
  36. this.type = type;
  37. }
  38. public String getLocationId() {
  39. return locationId;
  40. }
  41. public void setLocationId(String locationId) {
  42. this.locationId = locationId;
  43. }
  44. public Date getReceivetime() {
  45. return receivetime;
  46. }
  47. public void setReceivetime(Date receivetime) {
  48. this.receivetime = receivetime;
  49. }
  50. public Double getData() {
  51. return data;
  52. }
  53. public void setData(Double data) {
  54. this.data = data;
  55. }
  56. }