package org.linlinjava.jz.db.domain;

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

public class JzBuiltList {
    private CustomerClient customer;

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

    public CustomerClient getCustomer() {
        return customer;
    }

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.user_id
     *
     * @mbg.generated
     */
    private Integer userId;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.ticket_id
     *
     * @mbg.generated
     */
    private Integer ticketId;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.is_callback
     *
     * @mbg.generated
     */
    private Boolean isCallback;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.contact_times
     *
     * @mbg.generated
     */
    private Integer contactTimes;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.last_call_time
     *
     * @mbg.generated
     */
    private LocalDateTime lastCallTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.next_call_time
     *
     * @mbg.generated
     */
    private LocalDateTime nextCallTime;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.assigned_time
     *
     * @mbg.generated
     */
    private LocalDateTime assignedTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_built_list.shop_id
     *
     * @mbg.generated
     */
    private Integer shopId;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.id
     *
     * @return the value of jz_built_list.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_built_list.id
     *
     * @param id the value for jz_built_list.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_built_list.user_id
     *
     * @return the value of jz_built_list.user_id
     *
     * @mbg.generated
     */
    public Integer getUserId() {
        return userId;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.campaign_id
     *
     * @return the value of jz_built_list.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_built_list.campaign_id
     *
     * @param campaignId the value for jz_built_list.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_built_list.customer_id
     *
     * @return the value of jz_built_list.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_built_list.customer_id
     *
     * @param customerId the value for jz_built_list.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_built_list.ticket_id
     *
     * @return the value of jz_built_list.ticket_id
     *
     * @mbg.generated
     */
    public Integer getTicketId() {
        return ticketId;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.call_source
     *
     * @return the value of jz_built_list.call_source
     *
     * @mbg.generated
     */
    public String getCallSource() {
        return callSource;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.call_result
     *
     * @return the value of jz_built_list.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_built_list.call_result
     *
     * @param callResult the value for jz_built_list.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_built_list.is_callback
     *
     * @return the value of jz_built_list.is_callback
     *
     * @mbg.generated
     */
    public Boolean getIsCallback() {
        return isCallback;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_built_list.is_callback
     *
     * @param isCallback the value for jz_built_list.is_callback
     *
     * @mbg.generated
     */
    public void setIsCallback(Boolean isCallback) {
        this.isCallback = isCallback;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.contact_times
     *
     * @return the value of jz_built_list.contact_times
     *
     * @mbg.generated
     */
    public Integer getContactTimes() {
        return contactTimes;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.last_call_time
     *
     * @return the value of jz_built_list.last_call_time
     *
     * @mbg.generated
     */
    public LocalDateTime getLastCallTime() {
        return lastCallTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_built_list.last_call_time
     *
     * @param lastCallTime the value for jz_built_list.last_call_time
     *
     * @mbg.generated
     */
    public void setLastCallTime(LocalDateTime lastCallTime) {
        this.lastCallTime = lastCallTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.next_call_time
     *
     * @return the value of jz_built_list.next_call_time
     *
     * @mbg.generated
     */
    public LocalDateTime getNextCallTime() {
        return nextCallTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_built_list.next_call_time
     *
     * @param nextCallTime the value for jz_built_list.next_call_time
     *
     * @mbg.generated
     */
    public void setNextCallTime(LocalDateTime nextCallTime) {
        this.nextCallTime = nextCallTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.create_time
     *
     * @return the value of jz_built_list.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_built_list.create_time
     *
     * @param createTime the value for jz_built_list.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_built_list.create_user
     *
     * @return the value of jz_built_list.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_built_list.create_user
     *
     * @param createUser the value for jz_built_list.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_built_list.remark
     *
     * @return the value of jz_built_list.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_built_list.remark
     *
     * @param remark the value for jz_built_list.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_built_list.assigned_time
     *
     * @return the value of jz_built_list.assigned_time
     *
     * @mbg.generated
     */
    public LocalDateTime getAssignedTime() {
        return assignedTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_built_list.assigned_time
     *
     * @param assignedTime the value for jz_built_list.assigned_time
     *
     * @mbg.generated
     */
    public void setAssignedTime(LocalDateTime assignedTime) {
        this.assignedTime = assignedTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_built_list.shop_id
     *
     * @return the value of jz_built_list.shop_id
     *
     * @mbg.generated
     */
    public Integer getShopId() {
        return shopId;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_built_list
     *
     * @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(", userId=").append(userId);
        sb.append(", campaignId=").append(campaignId);
        sb.append(", customerId=").append(customerId);
        sb.append(", ticketId=").append(ticketId);
        sb.append(", callSource=").append(callSource);
        sb.append(", callResult=").append(callResult);
        sb.append(", isCallback=").append(isCallback);
        sb.append(", contactTimes=").append(contactTimes);
        sb.append(", lastCallTime=").append(lastCallTime);
        sb.append(", nextCallTime=").append(nextCallTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", remark=").append(remark);
        sb.append(", assignedTime=").append(assignedTime);
        sb.append(", shopId=").append(shopId);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_built_list
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JzBuiltList other = (JzBuiltList) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCampaignId() == null ? other.getCampaignId() == null : this.getCampaignId().equals(other.getCampaignId()))
            && (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getTicketId() == null ? other.getTicketId() == null : this.getTicketId().equals(other.getTicketId()))
            && (this.getCallSource() == null ? other.getCallSource() == null : this.getCallSource().equals(other.getCallSource()))
            && (this.getCallResult() == null ? other.getCallResult() == null : this.getCallResult().equals(other.getCallResult()))
            && (this.getIsCallback() == null ? other.getIsCallback() == null : this.getIsCallback().equals(other.getIsCallback()))
            && (this.getContactTimes() == null ? other.getContactTimes() == null : this.getContactTimes().equals(other.getContactTimes()))
            && (this.getLastCallTime() == null ? other.getLastCallTime() == null : this.getLastCallTime().equals(other.getLastCallTime()))
            && (this.getNextCallTime() == null ? other.getNextCallTime() == null : this.getNextCallTime().equals(other.getNextCallTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getAssignedTime() == null ? other.getAssignedTime() == null : this.getAssignedTime().equals(other.getAssignedTime()))
            && (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_built_list
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCampaignId() == null) ? 0 : getCampaignId().hashCode());
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getTicketId() == null) ? 0 : getTicketId().hashCode());
        result = prime * result + ((getCallSource() == null) ? 0 : getCallSource().hashCode());
        result = prime * result + ((getCallResult() == null) ? 0 : getCallResult().hashCode());
        result = prime * result + ((getIsCallback() == null) ? 0 : getIsCallback().hashCode());
        result = prime * result + ((getContactTimes() == null) ? 0 : getContactTimes().hashCode());
        result = prime * result + ((getLastCallTime() == null) ? 0 : getLastCallTime().hashCode());
        result = prime * result + ((getNextCallTime() == null) ? 0 : getNextCallTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getAssignedTime() == null) ? 0 : getAssignedTime().hashCode());
        result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table jz_built_list
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        userId("user_id", "userId", "INTEGER", false),
        campaignId("campaign_id", "campaignId", "INTEGER", false),
        customerId("customer_id", "customerId", "INTEGER", false),
        ticketId("ticket_id", "ticketId", "INTEGER", false),
        callSource("call_source", "callSource", "VARCHAR", false),
        callResult("call_result", "callResult", "SMALLINT", false),
        isCallback("is_callback", "isCallback", "BIT", false),
        contactTimes("contact_times", "contactTimes", "INTEGER", false),
        lastCallTime("last_call_time", "lastCallTime", "TIMESTAMP", false),
        nextCallTime("next_call_time", "nextCallTime", "TIMESTAMP", false),
        createTime("create_time", "createTime", "TIMESTAMP", false),
        createUser("create_user", "createUser", "INTEGER", false),
        remark("remark", "remark", "VARCHAR", false),
        assignedTime("assigned_time", "assignedTime", "TIMESTAMP", false),
        shopId("shop_id", "shopId", "INTEGER", false);

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

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

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

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

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

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

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

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

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

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_built_list
         *
         * @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_built_list
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_built_list
         *
         * @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_built_list
         *
         * @mbg.generated
         */
        public static Column[] all() {
            return Column.values();
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_built_list
         *
         * @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_built_list
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }
}