|
|
@@ -0,0 +1,130 @@
|
|
|
+package com.ydtech.modules.fee.entity.po;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+import com.ydtech.modules.base.controller.BaseController;
|
|
|
+import com.ydtech.modules.order.entity.vo.SubmitExportFeesVo;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 电销费用扣减比例
|
|
|
+ *
|
|
|
+ * @TableName ins_fee_telemarketing
|
|
|
+ */
|
|
|
+@TableName(value = "ins_fee_telemarketing")
|
|
|
+@Data
|
|
|
+public class InsFeeTelemarketing implements Serializable {
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ @TableId(value = "id", type = IdType.AUTO)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 子订单id
|
|
|
+ */
|
|
|
+ @TableField(value = "sub_order_no")
|
|
|
+ private String subOrderNo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 交强扣减比例
|
|
|
+ */
|
|
|
+ @TableField(value = "jq_export_proportion")
|
|
|
+ private BigDecimal jqExportProportion;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 商业扣减比例
|
|
|
+ */
|
|
|
+ @TableField(value = "sy_export_proportion")
|
|
|
+ private BigDecimal syExportProportion;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 非车扣减比例
|
|
|
+ */
|
|
|
+ @TableField(value = "no_car_export_proportion")
|
|
|
+ private BigDecimal noCarExportProportion;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建用户
|
|
|
+ */
|
|
|
+ @TableField(value = "create_user")
|
|
|
+ private String createUser;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ @TableField(value = "create_time")
|
|
|
+ private Date createTime;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ public InsFeeTelemarketing(SubmitExportFeesVo submitExportFeesVo) {
|
|
|
+ this.subOrderNo = submitExportFeesVo.getSubOrderNo();
|
|
|
+ this.jqExportProportion = submitExportFeesVo.getJqExportProportion();
|
|
|
+ this.syExportProportion = submitExportFeesVo.getSyExportProportion();
|
|
|
+ this.noCarExportProportion = submitExportFeesVo.getNoCarExportProportion();
|
|
|
+ this.createTime = new Date();
|
|
|
+ this.createUser = BaseController.getUserId();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ InsFeeTelemarketing other = (InsFeeTelemarketing) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getSubOrderNo() == null ? other.getSubOrderNo() == null : this.getSubOrderNo().equals(other.getSubOrderNo()))
|
|
|
+ && (this.getJqExportProportion() == null ? other.getJqExportProportion() == null : this.getJqExportProportion().equals(other.getJqExportProportion()))
|
|
|
+ && (this.getSyExportProportion() == null ? other.getSyExportProportion() == null : this.getSyExportProportion().equals(other.getSyExportProportion()))
|
|
|
+ && (this.getNoCarExportProportion() == null ? other.getNoCarExportProportion() == null : this.getNoCarExportProportion().equals(other.getNoCarExportProportion()))
|
|
|
+ && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getSubOrderNo() == null) ? 0 : getSubOrderNo().hashCode());
|
|
|
+ result = prime * result + ((getJqExportProportion() == null) ? 0 : getJqExportProportion().hashCode());
|
|
|
+ result = prime * result + ((getSyExportProportion() == null) ? 0 : getSyExportProportion().hashCode());
|
|
|
+ result = prime * result + ((getNoCarExportProportion() == null) ? 0 : getNoCarExportProportion().hashCode());
|
|
|
+ result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
|
|
|
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().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(", subOrderNo=").append(subOrderNo);
|
|
|
+ sb.append(", jqExportProportion=").append(jqExportProportion);
|
|
|
+ sb.append(", syExportProportion=").append(syExportProportion);
|
|
|
+ sb.append(", noCarExportProportion=").append(noCarExportProportion);
|
|
|
+ sb.append(", createUser=").append(createUser);
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|