package com.nationalelectric.greenH5.po; //导入 java 类 import java.io.Serializable; import java.math.BigDecimal; import java.util.*; import org.apache.commons.lang.builder.EqualsBuilder; /** * GreenPersonElecAcc的POJO类 * * @author wjx */ public class GreenPersonElecAcc implements Serializable{ /** * 序列化 */ private static final long serialVersionUID = 1L; /** * 属性id */ private Long id; /** * 属性personName */ private String personName = ""; /** * 属性account */ private String account; /** * 属性departName */ private String departName; /** * 属性phone */ private String phone; /** * 属性balance */ private BigDecimal balance = BigDecimal.valueOf(0.00); /** * 属性type */ private String type = "0"; /** * 属性isLock */ private Character isLock = '0'; /** * 属性phyIc */ private String phyIc; /** * 属性isDel */ private Character isDel = '0'; /** * 属性creater */ private String creater; /** * 属性createTime */ private Date createTime = new Date(); /** * 属性updater */ private String updater; /** * 属性updateTime */ private Date updateTime; /** * 属性personId */ private String personId; /** * GreenPersonElecAcc构造函数 */ public GreenPersonElecAcc() { super(); } /** * GreenPersonElecAcc完整的构造函数 */ public GreenPersonElecAcc(Long id,String personName,String account,String phone,BigDecimal balance){ this.id = id; this.personName = personName; this.account = account; this.phone = phone; this.balance = balance; } /** * 属性 id 的get方法 * @return Long */ public Long getId(){ return id; } /** * 属性 id 的set方法 * @return */ public void setId(Long id){ this.id = id; } /** * 属性 用户姓名 的get方法 * @return String */ public String getPersonName(){ return personName; } /** * 属性 用户姓名 的set方法 * @return */ public void setPersonName(String personName){ this.personName = personName; } /** * 属性 账号 的get方法 * @return String */ public String getAccount(){ return account; } /** * 属性 账号 的set方法 * @return */ public void setAccount(String account){ this.account = account; } /** * 属性 部门 的get方法 * @return String */ public String getDepartName(){ return departName; } /** * 属性 部门 的set方法 * @return */ public void setDepartName(String departName){ this.departName = departName; } /** * 属性 联系电话 的get方法 * @return String */ public String getPhone(){ return phone; } /** * 属性 联系电话 的set方法 * @return */ public void setPhone(String phone){ this.phone = phone; } /** * 属性 现金余额 的get方法 * @return BigDecimal */ public BigDecimal getBalance(){ return balance; } /** * 属性 现金余额 的set方法 * @return */ public void setBalance(BigDecimal balance){ this.balance = balance; } /** * 属性 0:对公账户,1:代表私人账户 的get方法 * @return String */ public String getType(){ return type; } /** * 属性 0:对公账户,1:代表私人账户 的set方法 * @return */ public void setType(String type){ this.type = type; } /** * 属性 账户锁定。0:未锁定,1:锁定 的get方法 * @return Character */ public Character getIsLock(){ return isLock; } /** * 属性 账户锁定。0:未锁定,1:锁定 的set方法 * @return */ public void setIsLock(Character isLock){ this.isLock = isLock; } /** * 属性 用户物理卡号 的get方法 * @return String */ public String getPhyIc(){ return phyIc; } /** * 属性 用户物理卡号 的set方法 * @return */ public void setPhyIc(String phyIc){ this.phyIc = phyIc; } /** * 属性 账号是否删除,0:未删除,1:删除 的get方法 * @return Character */ public Character getIsDel(){ return isDel; } /** * 属性 账号是否删除,0:未删除,1:删除 的set方法 * @return */ public void setIsDel(Character isDel){ this.isDel = isDel; } /** * 属性 创建人 的get方法 * @return String */ public String getCreater(){ return creater; } /** * 属性 创建人 的set方法 * @return */ public void setCreater(String creater){ this.creater = creater; } /** * 属性 创建时间 的get方法 * @return Date */ public Date getCreateTime(){ return createTime; } /** * 属性 创建时间 的set方法 * @return */ public void setCreateTime(Date createTime){ this.createTime = createTime; } /** * 属性 更新人 的get方法 * @return String */ public String getUpdater(){ return updater; } /** * 属性 更新人 的set方法 * @return */ public void setUpdater(String updater){ this.updater = updater; } /** * 属性 更新时间 的get方法 * @return Date */ public Date getUpdateTime(){ return updateTime; } /** * 属性 更新时间 的set方法 * @return */ public void setUpdateTime(Date updateTime){ this.updateTime = updateTime; } /** * 属性 用户id,关联green_uesr_info表 的get方法 * @return String */ public String getPersonId(){ return personId; } /** * 属性 用户id,关联green_uesr_info表 的set方法 * @return */ public void setPersonId(String personId){ this.personId = personId; } /** * Hibernate通过该方法判断对象是否相等 * @return boolean */ public boolean equals(Object o) { if (this == o) return true; if (o == null || !(o instanceof GreenPersonElecAcc)) return false; GreenPersonElecAcc other = (GreenPersonElecAcc) o; return new EqualsBuilder() .append(this.getId(), other.getId()) .isEquals(); } /** * toString方法 * @return String */ public String toString(){ return new StringBuffer() .append("id"+":"+getId()) .append("personName"+":"+getPersonName()) .append("account"+":"+getAccount()) .append("departName"+":"+getDepartName()) .append("phone"+":"+getPhone()) .append("balance"+":"+getBalance()) .append("type"+":"+getType()) .append("isLock"+":"+getIsLock()) .append("phyIc"+":"+getPhyIc()) .append("isDel"+":"+getIsDel()) .append("creater"+":"+getCreater()) .append("createTime"+":"+getCreateTime()) .append("updater"+":"+getUpdater()) .append("updateTime"+":"+getUpdateTime()) .append("personId"+":"+getPersonId()) .toString(); } /** * hashcode方法 * @return int * */ @Override public int hashCode(){ return super.hashCode(); } }