package com.hfkj.entity; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * bs_trade_order_refund * @author */ /** * * 代码由工具生成 * **/ public class BsTradeOrderRefund implements Serializable { /** * 主键 */ private Long id; /** * 交易订单id */ private Long tradeOrderId; /** * 商户交易流水 */ private String outTradeNo; /** * 代理商id */ private Long agentId; /** * 业务员id */ private Long salesmanId; /** * 商户id */ private Long merId; /** * 门店id */ private Long storeId; /** * 平台类型 1:拉卡拉 */ private Integer platformType; /** * 平台退款订单号 */ private String platformOrderNo; /** * 平台对账单流水号 */ private String platformLogNo; /** * 退款订单号 */ private String refundNo; /** * 交易金额 */ private BigDecimal totalAmount; /** * 申请退款金额 */ private BigDecimal refundAmount; /** * 实际退款金额 */ private BigDecimal payerAmount; /** * 退款原因 */ private String refundReason; /** * 状态 1:退款中 2:已退款 3:退款失败 */ private Integer status; /** * 实际退款时间 */ private Date refundTime; /** * 创建时间 */ private Date createTime; /** * 更新时间 */ private Date updateTime; /** * 操作人id */ 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 getTradeOrderId() { return tradeOrderId; } public void setTradeOrderId(Long tradeOrderId) { this.tradeOrderId = tradeOrderId; } public String getOutTradeNo() { return outTradeNo; } public void setOutTradeNo(String outTradeNo) { this.outTradeNo = outTradeNo; } public Long getAgentId() { return agentId; } public void setAgentId(Long agentId) { this.agentId = agentId; } public Long getSalesmanId() { return salesmanId; } public void setSalesmanId(Long salesmanId) { this.salesmanId = salesmanId; } public Long getMerId() { return merId; } public void setMerId(Long merId) { this.merId = merId; } public Long getStoreId() { return storeId; } public void setStoreId(Long storeId) { this.storeId = storeId; } public Integer getPlatformType() { return platformType; } public void setPlatformType(Integer platformType) { this.platformType = platformType; } public String getPlatformOrderNo() { return platformOrderNo; } public void setPlatformOrderNo(String platformOrderNo) { this.platformOrderNo = platformOrderNo; } public String getPlatformLogNo() { return platformLogNo; } public void setPlatformLogNo(String platformLogNo) { this.platformLogNo = platformLogNo; } public String getRefundNo() { return refundNo; } public void setRefundNo(String refundNo) { this.refundNo = refundNo; } public BigDecimal getTotalAmount() { return totalAmount; } public void setTotalAmount(BigDecimal totalAmount) { this.totalAmount = totalAmount; } public BigDecimal getRefundAmount() { return refundAmount; } public void setRefundAmount(BigDecimal refundAmount) { this.refundAmount = refundAmount; } public BigDecimal getPayerAmount() { return payerAmount; } public void setPayerAmount(BigDecimal payerAmount) { this.payerAmount = payerAmount; } public String getRefundReason() { return refundReason; } public void setRefundReason(String refundReason) { this.refundReason = refundReason; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Date getRefundTime() { return refundTime; } public void setRefundTime(Date refundTime) { this.refundTime = refundTime; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } 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; } BsTradeOrderRefund other = (BsTradeOrderRefund) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getTradeOrderId() == null ? other.getTradeOrderId() == null : this.getTradeOrderId().equals(other.getTradeOrderId())) && (this.getOutTradeNo() == null ? other.getOutTradeNo() == null : this.getOutTradeNo().equals(other.getOutTradeNo())) && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId())) && (this.getSalesmanId() == null ? other.getSalesmanId() == null : this.getSalesmanId().equals(other.getSalesmanId())) && (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId())) && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId())) && (this.getPlatformType() == null ? other.getPlatformType() == null : this.getPlatformType().equals(other.getPlatformType())) && (this.getPlatformOrderNo() == null ? other.getPlatformOrderNo() == null : this.getPlatformOrderNo().equals(other.getPlatformOrderNo())) && (this.getPlatformLogNo() == null ? other.getPlatformLogNo() == null : this.getPlatformLogNo().equals(other.getPlatformLogNo())) && (this.getRefundNo() == null ? other.getRefundNo() == null : this.getRefundNo().equals(other.getRefundNo())) && (this.getTotalAmount() == null ? other.getTotalAmount() == null : this.getTotalAmount().equals(other.getTotalAmount())) && (this.getRefundAmount() == null ? other.getRefundAmount() == null : this.getRefundAmount().equals(other.getRefundAmount())) && (this.getPayerAmount() == null ? other.getPayerAmount() == null : this.getPayerAmount().equals(other.getPayerAmount())) && (this.getRefundReason() == null ? other.getRefundReason() == null : this.getRefundReason().equals(other.getRefundReason())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getRefundTime() == null ? other.getRefundTime() == null : this.getRefundTime().equals(other.getRefundTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (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 + ((getTradeOrderId() == null) ? 0 : getTradeOrderId().hashCode()); result = prime * result + ((getOutTradeNo() == null) ? 0 : getOutTradeNo().hashCode()); result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); result = prime * result + ((getSalesmanId() == null) ? 0 : getSalesmanId().hashCode()); result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode()); result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode()); result = prime * result + ((getPlatformType() == null) ? 0 : getPlatformType().hashCode()); result = prime * result + ((getPlatformOrderNo() == null) ? 0 : getPlatformOrderNo().hashCode()); result = prime * result + ((getPlatformLogNo() == null) ? 0 : getPlatformLogNo().hashCode()); result = prime * result + ((getRefundNo() == null) ? 0 : getRefundNo().hashCode()); result = prime * result + ((getTotalAmount() == null) ? 0 : getTotalAmount().hashCode()); result = prime * result + ((getRefundAmount() == null) ? 0 : getRefundAmount().hashCode()); result = prime * result + ((getPayerAmount() == null) ? 0 : getPayerAmount().hashCode()); result = prime * result + ((getRefundReason() == null) ? 0 : getRefundReason().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getRefundTime() == null) ? 0 : getRefundTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().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(", tradeOrderId=").append(tradeOrderId); sb.append(", outTradeNo=").append(outTradeNo); sb.append(", agentId=").append(agentId); sb.append(", salesmanId=").append(salesmanId); sb.append(", merId=").append(merId); sb.append(", storeId=").append(storeId); sb.append(", platformType=").append(platformType); sb.append(", platformOrderNo=").append(platformOrderNo); sb.append(", platformLogNo=").append(platformLogNo); sb.append(", refundNo=").append(refundNo); sb.append(", totalAmount=").append(totalAmount); sb.append(", refundAmount=").append(refundAmount); sb.append(", payerAmount=").append(payerAmount); sb.append(", refundReason=").append(refundReason); sb.append(", status=").append(status); sb.append(", refundTime=").append(refundTime); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); 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(); } }