| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import javax.persistence.Column; |
| | | |
| | | @Alias("Batt_rtdata") |
| | | public class Batt_rtdata implements Serializable{ |
| | | private Integer num; |
| | | private Integer BattGroupId; |
| | | private Integer battGroupId; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai") |
| | | private Date rec_datetime; |
| | | private Integer mon_num; |
| | |
| | | private Float mon_conn_res; |
| | | private Float mon_cap; |
| | | private float mon_JH_curr; |
| | | private float mon_LY_vol; |
| | | |
| | | public float getMon_LY_vol() { |
| | | return mon_LY_vol; |
| | | } |
| | | |
| | | public void setMon_LY_vol(float mon_LY_vol) { |
| | | this.mon_LY_vol = mon_LY_vol; |
| | | } |
| | | |
| | | public Integer getNum() { |
| | | return num; |
| | | } |
| | | public void setNum(Integer num) { |
| | | this.num = num; |
| | | } |
| | | |
| | | public Integer getBattGroupId() { |
| | | return BattGroupId; |
| | | return battGroupId; |
| | | } |
| | | |
| | | public void setBattGroupId(Integer battGroupId) { |
| | | BattGroupId = battGroupId; |
| | | this.battGroupId = battGroupId; |
| | | } |
| | | |
| | | public Date getRec_datetime() { |
| | | return rec_datetime; |
| | | } |
| | |
| | | public void setMon_JH_curr(float mon_JH_curr) { |
| | | this.mon_JH_curr = mon_JH_curr; |
| | | } |
| | | |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) return true; |
| | | if (o == null || getClass() != o.getClass()) return false; |
| | | Batt_rtdata that = (Batt_rtdata) o; |
| | | return Float.compare(that.mon_JH_curr, mon_JH_curr) == 0 && Float.compare(that.mon_LY_vol, mon_LY_vol) == 0 && Objects.equals(num, that.num) && Objects.equals(battGroupId, that.battGroupId) && Objects.equals(rec_datetime, that.rec_datetime) && Objects.equals(mon_num, that.mon_num) && Objects.equals(mon_vol, that.mon_vol) && Objects.equals(mon_tmp, that.mon_tmp) && Objects.equals(mon_res, that.mon_res) && Objects.equals(mon_ser, that.mon_ser) && Objects.equals(mon_conn_res, that.mon_conn_res) && Objects.equals(mon_cap, that.mon_cap); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | return Objects.hash(battGroupId, rec_datetime, mon_num, mon_vol, mon_tmp, mon_res, mon_ser, mon_conn_res, mon_cap, mon_JH_curr, mon_LY_vol); |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "Batt_rtdata [num=" + num + ", BattGroupId=" + BattGroupId |
| | | + ", rec_datetime=" + rec_datetime + ", mon_num=" + mon_num |
| | | + ", mon_vol=" + mon_vol + ", mon_tmp=" + mon_tmp |
| | | + ", mon_res=" + mon_res + ", mon_ser=" + mon_ser |
| | | + ", mon_conn_res=" + mon_conn_res + ", mon_cap=" + mon_cap |
| | | + ", mon_JH_curr=" + mon_JH_curr + "]"; |
| | | return "Batt_rtdata{" + |
| | | "num=" + num + |
| | | ", battGroupId=" + battGroupId + |
| | | ", rec_datetime=" + rec_datetime + |
| | | ", mon_num=" + mon_num + |
| | | ", mon_vol=" + mon_vol + |
| | | ", mon_tmp=" + mon_tmp + |
| | | ", mon_res=" + mon_res + |
| | | ", mon_ser=" + mon_ser + |
| | | ", mon_conn_res=" + mon_conn_res + |
| | | ", mon_cap=" + mon_cap + |
| | | ", mon_JH_curr=" + mon_JH_curr + |
| | | ", mon_LY_vol=" + mon_LY_vol + |
| | | '}'; |
| | | } |
| | | |
| | | |
| | | } |