StationInfoMin.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. package com.gyee.runeconomy.model;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.fasterxml.jackson.annotation.JsonIgnore;
  6. import com.fasterxml.jackson.annotation.JsonProperty;
  7. import lombok.Data;
  8. import java.io.Serializable;
  9. import java.util.Date;
  10. /**
  11. * <p>
  12. *
  13. * </p>
  14. *
  15. * @author gfhd
  16. * @since 2024-08-05
  17. */
  18. @Data
  19. @TableName("station_info_min")
  20. public class StationInfoMin implements Serializable {
  21. private static final long serialVersionUID = 1L;
  22. @TableId(value = "id", type = IdType.AUTO)
  23. @JsonIgnore
  24. private Integer id;
  25. @JsonIgnore
  26. private String stationId;
  27. @JsonProperty("record_date")
  28. private Date recordDate;
  29. private Double pjfs;
  30. private Double pjgl;
  31. @JsonIgnore
  32. private Double llgl;
  33. @JsonIgnore
  34. private Double kygl;
  35. private Double agc;
  36. @JsonIgnore
  37. private Double dqycgl;
  38. @JsonIgnore
  39. private Double cdqycgl;
  40. private Double rfdl;
  41. private Double hjwd;
  42. //待机,运行,故障,检修
  43. private Long djts;
  44. private Long yxts;
  45. private Long gzts;
  46. private Long jxts;
  47. public void setLlgl(Double llgl) {
  48. if (llgl == null) llgl = 0.0;
  49. this.llgl = llgl;
  50. }
  51. public void setKygl(Double kygl) {
  52. if (kygl == null) kygl = 0.0;
  53. this.kygl = kygl;
  54. }
  55. public void setDjts(Long djts) {
  56. if (djts == null) djts = 0L;
  57. this.djts = djts;
  58. }
  59. public void setYxts(Long yxts) {
  60. if (yxts == null) yxts = 0L;
  61. this.yxts = yxts;
  62. }
  63. public void setGzts(Long gzts) {
  64. if (gzts == null) gzts = 0L;
  65. this.gzts = gzts;
  66. }
  67. public void setJxts(Long jxts) {
  68. if (jxts == null) jxts = 0L;
  69. this.jxts = jxts;
  70. }
  71. public void setPjfs(Double pjfs) {
  72. if (pjfs == null || pjfs < 0) pjfs = 0.0;
  73. if (pjfs > 25) pjfs = 25.0;
  74. this.pjfs = pjfs;
  75. }
  76. public void setPjgl(Double pjgl) {
  77. if (pjgl == null || pjgl<0) pjgl = 0.0;
  78. if (pjgl > 169600) pjgl = 169600.0;
  79. this.pjgl = pjgl;
  80. }
  81. public void setAgc(Double agc) {
  82. if (agc == null || agc < 0) agc = 0.0;
  83. if (agc > 170000) agc = 170000.0;
  84. this.agc = agc;
  85. }
  86. public void setRfdl(Double rfdl) {
  87. if (rfdl == null || rfdl < 0) rfdl = 0.0;
  88. this.rfdl = rfdl;
  89. }
  90. public void setHjwd(Double hjwd) {
  91. if (hjwd == null) hjwd = 0.0;
  92. if (hjwd < -30) hjwd = -30.0;
  93. if (hjwd > 55) hjwd = 55.0;
  94. this.hjwd = hjwd;
  95. }
  96. }