StationInfoMin.java 2.2 KB

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