package org.linlinjava.jz.db.domain;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class JzCalllog {


    private CustomerClient customer;

    public void setCustomer(CustomerClient customer) {
        this.customer = customer;
    }

    public CustomerClient getCustomer() {
        return customer;
    }

    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    private List<JzCalllogRecord> records;

    public List<JzCalllogRecord> getRecords() {
        return records;
    }

    public void setRecords(List<JzCalllogRecord> records) {
        this.records = records;
    }
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.customer_id
     *
     * @mbg.generated
     */
    private Integer customerId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.campaign_id
     *
     * @mbg.generated
     */
    private Integer campaignId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.built_id
     *
     * @mbg.generated
     */
    private Integer builtId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.mobile
     *
     * @mbg.generated
     */
    private String mobile;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.start_time
     *
     * @mbg.generated
     */
    private LocalDateTime startTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.end_time
     *
     * @mbg.generated
     */
    private LocalDateTime endTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.call_type
     *
     * @mbg.generated
     */
    private String callType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.call_result
     *
     * @mbg.generated
     */
    private Short callResult;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.call_reject_reason
     *
     * @mbg.generated
     */
    private String callRejectReason;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.callback_time
     *
     * @mbg.generated
     */
    private LocalDateTime callbackTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.callback_remark
     *
     * @mbg.generated
     */
    private String callbackRemark;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.remark
     *
     * @mbg.generated
     */
    private String remark;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.create_user
     *
     * @mbg.generated
     */
    private Integer createUser;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.create_time
     *
     * @mbg.generated
     */
    private LocalDateTime createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog.reject_reason
     *
     * @mbg.generated
     */
    private Integer rejectReason;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.id
     *
     * @return the value of jz_calllog.id
     *
     * @mbg.generated
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.id
     *
     * @param id the value for jz_calllog.id
     *
     * @mbg.generated
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.customer_id
     *
     * @return the value of jz_calllog.customer_id
     *
     * @mbg.generated
     */
    public Integer getCustomerId() {
        return customerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.customer_id
     *
     * @param customerId the value for jz_calllog.customer_id
     *
     * @mbg.generated
     */
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.campaign_id
     *
     * @return the value of jz_calllog.campaign_id
     *
     * @mbg.generated
     */
    public Integer getCampaignId() {
        return campaignId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.campaign_id
     *
     * @param campaignId the value for jz_calllog.campaign_id
     *
     * @mbg.generated
     */
    public void setCampaignId(Integer campaignId) {
        this.campaignId = campaignId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.built_id
     *
     * @return the value of jz_calllog.built_id
     *
     * @mbg.generated
     */
    public Integer getBuiltId() {
        return builtId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.built_id
     *
     * @param builtId the value for jz_calllog.built_id
     *
     * @mbg.generated
     */
    public void setBuiltId(Integer builtId) {
        this.builtId = builtId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.mobile
     *
     * @return the value of jz_calllog.mobile
     *
     * @mbg.generated
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.mobile
     *
     * @param mobile the value for jz_calllog.mobile
     *
     * @mbg.generated
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.start_time
     *
     * @return the value of jz_calllog.start_time
     *
     * @mbg.generated
     */
    public LocalDateTime getStartTime() {
        return startTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.start_time
     *
     * @param startTime the value for jz_calllog.start_time
     *
     * @mbg.generated
     */
    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.end_time
     *
     * @return the value of jz_calllog.end_time
     *
     * @mbg.generated
     */
    public LocalDateTime getEndTime() {
        return endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.end_time
     *
     * @param endTime the value for jz_calllog.end_time
     *
     * @mbg.generated
     */
    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.call_type
     *
     * @return the value of jz_calllog.call_type
     *
     * @mbg.generated
     */
    public String getCallType() {
        return callType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.call_type
     *
     * @param callType the value for jz_calllog.call_type
     *
     * @mbg.generated
     */
    public void setCallType(String callType) {
        this.callType = callType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.call_result
     *
     * @return the value of jz_calllog.call_result
     *
     * @mbg.generated
     */
    public Short getCallResult() {
        return callResult;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.call_result
     *
     * @param callResult the value for jz_calllog.call_result
     *
     * @mbg.generated
     */
    public void setCallResult(Short callResult) {
        this.callResult = callResult;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.call_reject_reason
     *
     * @return the value of jz_calllog.call_reject_reason
     *
     * @mbg.generated
     */
    public String getCallRejectReason() {
        return callRejectReason;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.call_reject_reason
     *
     * @param callRejectReason the value for jz_calllog.call_reject_reason
     *
     * @mbg.generated
     */
    public void setCallRejectReason(String callRejectReason) {
        this.callRejectReason = callRejectReason;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.callback_time
     *
     * @return the value of jz_calllog.callback_time
     *
     * @mbg.generated
     */
    public LocalDateTime getCallbackTime() {
        return callbackTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.callback_time
     *
     * @param callbackTime the value for jz_calllog.callback_time
     *
     * @mbg.generated
     */
    public void setCallbackTime(LocalDateTime callbackTime) {
        this.callbackTime = callbackTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.callback_remark
     *
     * @return the value of jz_calllog.callback_remark
     *
     * @mbg.generated
     */
    public String getCallbackRemark() {
        return callbackRemark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.callback_remark
     *
     * @param callbackRemark the value for jz_calllog.callback_remark
     *
     * @mbg.generated
     */
    public void setCallbackRemark(String callbackRemark) {
        this.callbackRemark = callbackRemark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.remark
     *
     * @return the value of jz_calllog.remark
     *
     * @mbg.generated
     */
    public String getRemark() {
        return remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.remark
     *
     * @param remark the value for jz_calllog.remark
     *
     * @mbg.generated
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.create_user
     *
     * @return the value of jz_calllog.create_user
     *
     * @mbg.generated
     */
    public Integer getCreateUser() {
        return createUser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.create_user
     *
     * @param createUser the value for jz_calllog.create_user
     *
     * @mbg.generated
     */
    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.create_time
     *
     * @return the value of jz_calllog.create_time
     *
     * @mbg.generated
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.create_time
     *
     * @param createTime the value for jz_calllog.create_time
     *
     * @mbg.generated
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog.reject_reason
     *
     * @return the value of jz_calllog.reject_reason
     *
     * @mbg.generated
     */
    public Integer getRejectReason() {
        return rejectReason;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog.reject_reason
     *
     * @param rejectReason the value for jz_calllog.reject_reason
     *
     * @mbg.generated
     */
    public void setRejectReason(Integer rejectReason) {
        this.rejectReason = rejectReason;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog
     *
     * @mbg.generated
     */
    @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(", customerId=").append(customerId);
        sb.append(", campaignId=").append(campaignId);
        sb.append(", builtId=").append(builtId);
        sb.append(", mobile=").append(mobile);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", callType=").append(callType);
        sb.append(", callResult=").append(callResult);
        sb.append(", callRejectReason=").append(callRejectReason);
        sb.append(", callbackTime=").append(callbackTime);
        sb.append(", callbackRemark=").append(callbackRemark);
        sb.append(", remark=").append(remark);
        sb.append(", createUser=").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", rejectReason=").append(rejectReason);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JzCalllog other = (JzCalllog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getCampaignId() == null ? other.getCampaignId() == null : this.getCampaignId().equals(other.getCampaignId()))
            && (this.getBuiltId() == null ? other.getBuiltId() == null : this.getBuiltId().equals(other.getBuiltId()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getCallType() == null ? other.getCallType() == null : this.getCallType().equals(other.getCallType()))
            && (this.getCallResult() == null ? other.getCallResult() == null : this.getCallResult().equals(other.getCallResult()))
            && (this.getCallRejectReason() == null ? other.getCallRejectReason() == null : this.getCallRejectReason().equals(other.getCallRejectReason()))
            && (this.getCallbackTime() == null ? other.getCallbackTime() == null : this.getCallbackTime().equals(other.getCallbackTime()))
            && (this.getCallbackRemark() == null ? other.getCallbackRemark() == null : this.getCallbackRemark().equals(other.getCallbackRemark()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getRejectReason() == null ? other.getRejectReason() == null : this.getRejectReason().equals(other.getRejectReason()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getCampaignId() == null) ? 0 : getCampaignId().hashCode());
        result = prime * result + ((getBuiltId() == null) ? 0 : getBuiltId().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getCallType() == null) ? 0 : getCallType().hashCode());
        result = prime * result + ((getCallResult() == null) ? 0 : getCallResult().hashCode());
        result = prime * result + ((getCallRejectReason() == null) ? 0 : getCallRejectReason().hashCode());
        result = prime * result + ((getCallbackTime() == null) ? 0 : getCallbackTime().hashCode());
        result = prime * result + ((getCallbackRemark() == null) ? 0 : getCallbackRemark().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getRejectReason() == null) ? 0 : getRejectReason().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table jz_calllog
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        customerId("customer_id", "customerId", "INTEGER", false),
        campaignId("campaign_id", "campaignId", "INTEGER", false),
        builtId("built_id", "builtId", "INTEGER", false),
        mobile("mobile", "mobile", "VARCHAR", false),
        startTime("start_time", "startTime", "TIMESTAMP", false),
        endTime("end_time", "endTime", "TIMESTAMP", false),
        callType("call_type", "callType", "VARCHAR", false),
        callResult("call_result", "callResult", "SMALLINT", false),
        callRejectReason("call_reject_reason", "callRejectReason", "VARCHAR", false),
        callbackTime("callback_time", "callbackTime", "TIMESTAMP", false),
        callbackRemark("callback_remark", "callbackRemark", "VARCHAR", false),
        remark("remark", "remark", "VARCHAR", false),
        createUser("create_user", "createUser", "INTEGER", false),
        createTime("create_time", "createTime", "TIMESTAMP", false),
        rejectReason("reject_reason", "rejectReason", "INTEGER", false);

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        private static final String BEGINNING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        private static final String ENDING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        private final boolean isColumnNameDelimited;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public static Column[] all() {
            return Column.values();
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }
}