123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- package com.miniframe.model.system;
- import com.miniframe.system.MiniserviceBaseModel;
- import java.io.Serializable;
- import java.math.BigDecimal;
- import javax.persistence.*;
- @Table(name = "d_sensor")
- public class DSensor extends MiniserviceBaseModel implements Serializable {
- /**
- * ID
- */
- @Id
- private Integer id;
- /**
- * 管道ID
- */
- private Integer pid;
- /**
- * 位置
- */
- private Float site;
- /**
- * 传感器类型
- */
- private String type;
- /**
- * 管道名称
- */
- private String pname;
- /**
- * x_coordinate
- */
- @Column(name = "x_coordinate")
- private BigDecimal xCoordinate;
- /**
- * y_coordinate
- */
- @Column(name = "y_coordinate")
- private BigDecimal yCoordinate;
- /**
- * z_coordinate
- */
- @Column(name = "z_coordinate")
- private BigDecimal zCoordinate;
- /**
- * 管道编号
- */
- @Column(name = "point_code")
- private String pointCode;
- /**
- * 测点名称
- */
- @Column(name = "point_name")
- private String pointName;
- /**
- * 是否删除
- */
- private Short deleted;
- /**
- * 传感器编码
- */
- @Column(name = "type_code")
- private String typeCode;
- private static final long serialVersionUID = 1L;
- /**
- * 获取ID
- *
- * @return id - ID
- */
- public Integer getId() {
- return id;
- }
- /**
- * 设置ID
- *
- * @param id ID
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * 获取管道ID
- *
- * @return pid - 管道ID
- */
- public Integer getPid() {
- return pid;
- }
- /**
- * 设置管道ID
- *
- * @param pid 管道ID
- */
- public void setPid(Integer pid) {
- this.pid = pid;
- }
- /**
- * 获取位置
- *
- * @return site - 位置
- */
- public Float getSite() {
- return site;
- }
- /**
- * 设置位置
- *
- * @param site 位置
- */
- public void setSite(Float site) {
- this.site = site;
- }
- /**
- * 获取传感器类型
- *
- * @return type - 传感器类型
- */
- public String getType() {
- return type;
- }
- /**
- * 设置传感器类型
- *
- * @param type 传感器类型
- */
- public void setType(String type) {
- this.type = type == null ? null : type.trim();
- }
- /**
- * 获取管道名称
- *
- * @return pname - 管道名称
- */
- public String getPname() {
- return pname;
- }
- /**
- * 设置管道名称
- *
- * @param pname 管道名称
- */
- public void setPname(String pname) {
- this.pname = pname == null ? null : pname.trim();
- }
- /**
- * 获取x_coordinate
- *
- * @return x_coordinate - x_coordinate
- */
- public BigDecimal getxCoordinate() {
- return xCoordinate;
- }
- /**
- * 设置x_coordinate
- *
- * @param xCoordinate x_coordinate
- */
- public void setxCoordinate(BigDecimal xCoordinate) {
- this.xCoordinate = xCoordinate;
- }
- /**
- * 获取y_coordinate
- *
- * @return y_coordinate - y_coordinate
- */
- public BigDecimal getyCoordinate() {
- return yCoordinate;
- }
- /**
- * 设置y_coordinate
- *
- * @param yCoordinate y_coordinate
- */
- public void setyCoordinate(BigDecimal yCoordinate) {
- this.yCoordinate = yCoordinate;
- }
- /**
- * 获取z_coordinate
- *
- * @return z_coordinate - z_coordinate
- */
- public BigDecimal getzCoordinate() {
- return zCoordinate;
- }
- /**
- * 设置z_coordinate
- *
- * @param zCoordinate z_coordinate
- */
- public void setzCoordinate(BigDecimal zCoordinate) {
- this.zCoordinate = zCoordinate;
- }
- /**
- * 获取管道编号
- *
- * @return point_code - 管道编号
- */
- public String getPointCode() {
- return pointCode;
- }
- /**
- * 设置管道编号
- *
- * @param pointCode 管道编号
- */
- public void setPointCode(String pointCode) {
- this.pointCode = pointCode == null ? null : pointCode.trim();
- }
- /**
- * 获取测点名称
- *
- * @return point_name - 测点名称
- */
- public String getPointName() {
- return pointName;
- }
- /**
- * 设置测点名称
- *
- * @param pointName 测点名称
- */
- public void setPointName(String pointName) {
- this.pointName = pointName == null ? null : pointName.trim();
- }
- /**
- * 获取是否删除
- *
- * @return deleted - 是否删除
- */
- public Short getDeleted() {
- return deleted;
- }
- /**
- * 设置是否删除
- *
- * @param deleted 是否删除
- */
- public void setDeleted(Short deleted) {
- this.deleted = deleted;
- }
- /**
- * 获取传感器编码
- *
- * @return type_code - 传感器编码
- */
- public String getTypeCode() {
- return typeCode;
- }
- /**
- * 设置传感器编码
- *
- * @param typeCode 传感器编码
- */
- public void setTypeCode(String typeCode) {
- this.typeCode = typeCode == null ? null : typeCode.trim();
- }
- }
|