package com.hai.entity; import java.io.Serializable; import java.util.Date; /** * high_coupon_code * @author */ /** * * 代码由工具生成 * **/ public class HighCouponCode implements Serializable { /** * 主键 */ private Long id; /** * 卡卷 */ private Long couponId; /** * 商户 */ private Long merchantId; /** * 是否分配代理商 */ private Boolean isAssignAgent; /** * 代理商id */ private Long agentId; /** * (消核门店) 门店id */ private Long storeId; /** * 消核门店名称 */ private String storeName; /** * 子订单id */ private Long childOrderId; /** * 子订单编号 */ private String childOrderNo; /** * 码key */ private String codeKey; /** * 销售码 */ private String salesCode; /** * 销售有效期 */ private Date salesEndTime; /** * 使用有效期 */ private Date useEndTime; /** * 创建时间 */ private Date createTime; /** * 领取时间 */ private Date receiveTime; /** * 消费时间 */ private Date consumeTime; /** * 状态:1.待销售 2.未使用 3.已使用 99.预支付 */ private Integer status; /** * 操作人 */ private Long operatorId; /** * 操作人名称 */ private String operatorName; private String ext1; private String ext2; private String ext3; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCouponId() { return couponId; } public void setCouponId(Long couponId) { this.couponId = couponId; } public Long getMerchantId() { return merchantId; } public void setMerchantId(Long merchantId) { this.merchantId = merchantId; } public Boolean getIsAssignAgent() { return isAssignAgent; } public void setIsAssignAgent(Boolean isAssignAgent) { this.isAssignAgent = isAssignAgent; } public Long getAgentId() { return agentId; } public void setAgentId(Long agentId) { this.agentId = agentId; } public Long getStoreId() { return storeId; } public void setStoreId(Long storeId) { this.storeId = storeId; } public String getStoreName() { return storeName; } public void setStoreName(String storeName) { this.storeName = storeName; } public Long getChildOrderId() { return childOrderId; } public void setChildOrderId(Long childOrderId) { this.childOrderId = childOrderId; } public String getChildOrderNo() { return childOrderNo; } public void setChildOrderNo(String childOrderNo) { this.childOrderNo = childOrderNo; } public String getCodeKey() { return codeKey; } public void setCodeKey(String codeKey) { this.codeKey = codeKey; } public String getSalesCode() { return salesCode; } public void setSalesCode(String salesCode) { this.salesCode = salesCode; } public Date getSalesEndTime() { return salesEndTime; } public void setSalesEndTime(Date salesEndTime) { this.salesEndTime = salesEndTime; } public Date getUseEndTime() { return useEndTime; } public void setUseEndTime(Date useEndTime) { this.useEndTime = useEndTime; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getReceiveTime() { return receiveTime; } public void setReceiveTime(Date receiveTime) { this.receiveTime = receiveTime; } public Date getConsumeTime() { return consumeTime; } public void setConsumeTime(Date consumeTime) { this.consumeTime = consumeTime; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Long getOperatorId() { return operatorId; } public void setOperatorId(Long operatorId) { this.operatorId = operatorId; } public String getOperatorName() { return operatorName; } public void setOperatorName(String operatorName) { this.operatorName = operatorName; } public String getExt1() { return ext1; } public void setExt1(String ext1) { this.ext1 = ext1; } public String getExt2() { return ext2; } public void setExt2(String ext2) { this.ext2 = ext2; } public String getExt3() { return ext3; } public void setExt3(String ext3) { this.ext3 = ext3; } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } HighCouponCode other = (HighCouponCode) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getCouponId() == null ? other.getCouponId() == null : this.getCouponId().equals(other.getCouponId())) && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId())) && (this.getIsAssignAgent() == null ? other.getIsAssignAgent() == null : this.getIsAssignAgent().equals(other.getIsAssignAgent())) && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId())) && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId())) && (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName())) && (this.getChildOrderId() == null ? other.getChildOrderId() == null : this.getChildOrderId().equals(other.getChildOrderId())) && (this.getChildOrderNo() == null ? other.getChildOrderNo() == null : this.getChildOrderNo().equals(other.getChildOrderNo())) && (this.getCodeKey() == null ? other.getCodeKey() == null : this.getCodeKey().equals(other.getCodeKey())) && (this.getSalesCode() == null ? other.getSalesCode() == null : this.getSalesCode().equals(other.getSalesCode())) && (this.getSalesEndTime() == null ? other.getSalesEndTime() == null : this.getSalesEndTime().equals(other.getSalesEndTime())) && (this.getUseEndTime() == null ? other.getUseEndTime() == null : this.getUseEndTime().equals(other.getUseEndTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getReceiveTime() == null ? other.getReceiveTime() == null : this.getReceiveTime().equals(other.getReceiveTime())) && (this.getConsumeTime() == null ? other.getConsumeTime() == null : this.getConsumeTime().equals(other.getConsumeTime())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId())) && (this.getOperatorName() == null ? other.getOperatorName() == null : this.getOperatorName().equals(other.getOperatorName())) && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getCouponId() == null) ? 0 : getCouponId().hashCode()); result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode()); result = prime * result + ((getIsAssignAgent() == null) ? 0 : getIsAssignAgent().hashCode()); result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode()); result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode()); result = prime * result + ((getChildOrderId() == null) ? 0 : getChildOrderId().hashCode()); result = prime * result + ((getChildOrderNo() == null) ? 0 : getChildOrderNo().hashCode()); result = prime * result + ((getCodeKey() == null) ? 0 : getCodeKey().hashCode()); result = prime * result + ((getSalesCode() == null) ? 0 : getSalesCode().hashCode()); result = prime * result + ((getSalesEndTime() == null) ? 0 : getSalesEndTime().hashCode()); result = prime * result + ((getUseEndTime() == null) ? 0 : getUseEndTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getReceiveTime() == null) ? 0 : getReceiveTime().hashCode()); result = prime * result + ((getConsumeTime() == null) ? 0 : getConsumeTime().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode()); result = prime * result + ((getOperatorName() == null) ? 0 : getOperatorName().hashCode()); result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); return result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", couponId=").append(couponId); sb.append(", merchantId=").append(merchantId); sb.append(", isAssignAgent=").append(isAssignAgent); sb.append(", agentId=").append(agentId); sb.append(", storeId=").append(storeId); sb.append(", storeName=").append(storeName); sb.append(", childOrderId=").append(childOrderId); sb.append(", childOrderNo=").append(childOrderNo); sb.append(", codeKey=").append(codeKey); sb.append(", salesCode=").append(salesCode); sb.append(", salesEndTime=").append(salesEndTime); sb.append(", useEndTime=").append(useEndTime); sb.append(", createTime=").append(createTime); sb.append(", receiveTime=").append(receiveTime); sb.append(", consumeTime=").append(consumeTime); sb.append(", status=").append(status); sb.append(", operatorId=").append(operatorId); sb.append(", operatorName=").append(operatorName); sb.append(", ext1=").append(ext1); sb.append(", ext2=").append(ext2); sb.append(", ext3=").append(ext3); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }