DSensor.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import javax.persistence.*;
  6. @Table(name = "d_sensor")
  7. public class DSensor extends MiniserviceBaseModel implements Serializable {
  8. @Id
  9. private Integer id;
  10. /**
  11. * 管道ID
  12. */
  13. private Integer pid;
  14. /**
  15. * 位置
  16. */
  17. private Float site;
  18. /**
  19. * 传感器类型
  20. */
  21. private String type;
  22. /**
  23. * 管道名称
  24. */
  25. private String pname;
  26. @Column(name = "x_coordinate")
  27. private BigDecimal xCoordinate;
  28. @Column(name = "y_coordinate")
  29. private BigDecimal yCoordinate;
  30. @Column(name = "z_coordinate")
  31. private BigDecimal zCoordinate;
  32. @Column(name = "point_code")
  33. private String pointCode;
  34. /**
  35. * 测点名称
  36. */
  37. @Column(name = "point_name")
  38. private String pointName;
  39. private Short deleted;
  40. /**
  41. * 传感器编码
  42. */
  43. @Column(name = "type_code")
  44. private String typeCode;
  45. private static final long serialVersionUID = 1L;
  46. /**
  47. * @return id
  48. */
  49. public Integer getId() {
  50. return id;
  51. }
  52. /**
  53. * @param id
  54. */
  55. public void setId(Integer id) {
  56. this.id = id;
  57. }
  58. /**
  59. * 获取管道ID
  60. *
  61. * @return pid - 管道ID
  62. */
  63. public Integer getPid() {
  64. return pid;
  65. }
  66. /**
  67. * 设置管道ID
  68. *
  69. * @param pid 管道ID
  70. */
  71. public void setPid(Integer pid) {
  72. this.pid = pid;
  73. }
  74. /**
  75. * 获取位置
  76. *
  77. * @return site - 位置
  78. */
  79. public Float getSite() {
  80. return site;
  81. }
  82. /**
  83. * 设置位置
  84. *
  85. * @param site 位置
  86. */
  87. public void setSite(Float site) {
  88. this.site = site;
  89. }
  90. /**
  91. * 获取传感器类型
  92. *
  93. * @return type - 传感器类型
  94. */
  95. public String getType() {
  96. return type;
  97. }
  98. /**
  99. * 设置传感器类型
  100. *
  101. * @param type 传感器类型
  102. */
  103. public void setType(String type) {
  104. this.type = type == null ? null : type.trim();
  105. }
  106. /**
  107. * 获取管道名称
  108. *
  109. * @return pname - 管道名称
  110. */
  111. public String getPname() {
  112. return pname;
  113. }
  114. /**
  115. * 设置管道名称
  116. *
  117. * @param pname 管道名称
  118. */
  119. public void setPname(String pname) {
  120. this.pname = pname == null ? null : pname.trim();
  121. }
  122. /**
  123. * @return x_coordinate
  124. */
  125. public BigDecimal getxCoordinate() {
  126. return xCoordinate;
  127. }
  128. /**
  129. * @param xCoordinate
  130. */
  131. public void setxCoordinate(BigDecimal xCoordinate) {
  132. this.xCoordinate = xCoordinate;
  133. }
  134. /**
  135. * @return y_coordinate
  136. */
  137. public BigDecimal getyCoordinate() {
  138. return yCoordinate;
  139. }
  140. /**
  141. * @param yCoordinate
  142. */
  143. public void setyCoordinate(BigDecimal yCoordinate) {
  144. this.yCoordinate = yCoordinate;
  145. }
  146. /**
  147. * @return z_coordinate
  148. */
  149. public BigDecimal getzCoordinate() {
  150. return zCoordinate;
  151. }
  152. /**
  153. * @param zCoordinate
  154. */
  155. public void setzCoordinate(BigDecimal zCoordinate) {
  156. this.zCoordinate = zCoordinate;
  157. }
  158. /**
  159. * @return point_code
  160. */
  161. public String getPointCode() {
  162. return pointCode;
  163. }
  164. /**
  165. * @param pointCode
  166. */
  167. public void setPointCode(String pointCode) {
  168. this.pointCode = pointCode == null ? null : pointCode.trim();
  169. }
  170. /**
  171. * 获取测点名称
  172. *
  173. * @return point_name - 测点名称
  174. */
  175. public String getPointName() {
  176. return pointName;
  177. }
  178. /**
  179. * 设置测点名称
  180. *
  181. * @param pointName 测点名称
  182. */
  183. public void setPointName(String pointName) {
  184. this.pointName = pointName == null ? null : pointName.trim();
  185. }
  186. /**
  187. * @return deleted
  188. */
  189. public Short getDeleted() {
  190. return deleted;
  191. }
  192. /**
  193. * @param deleted
  194. */
  195. public void setDeleted(Short deleted) {
  196. this.deleted = deleted;
  197. }
  198. /**
  199. * 获取传感器编码
  200. *
  201. * @return type_code - 传感器编码
  202. */
  203. public String getTypeCode() {
  204. return typeCode;
  205. }
  206. /**
  207. * 设置传感器编码
  208. *
  209. * @param typeCode 传感器编码
  210. */
  211. public void setTypeCode(String typeCode) {
  212. this.typeCode = typeCode == null ? null : typeCode.trim();
  213. }
  214. }