| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 | 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    private Integer id;    /**     * 管道ID     */    private Integer pid;    /**     * 位置     */    private Float site;    /**     * 传感器类型     */    private String type;    /**     * 管道名称     */    private String pname;    @Column(name = "x_coordinate")    private BigDecimal xCoordinate;    @Column(name = "y_coordinate")    private BigDecimal yCoordinate;    @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;    /**     * @return id     */    public Integer getId() {        return id;    }    /**     * @param 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();    }    /**     * @return x_coordinate     */    public BigDecimal getxCoordinate() {        return xCoordinate;    }    /**     * @param xCoordinate     */    public void setxCoordinate(BigDecimal xCoordinate) {        this.xCoordinate = xCoordinate;    }    /**     * @return y_coordinate     */    public BigDecimal getyCoordinate() {        return yCoordinate;    }    /**     * @param yCoordinate     */    public void setyCoordinate(BigDecimal yCoordinate) {        this.yCoordinate = yCoordinate;    }    /**     * @return z_coordinate     */    public BigDecimal getzCoordinate() {        return zCoordinate;    }    /**     * @param zCoordinate     */    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();    }}
 |