package org.linlinjava.litemall.db.domain;

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

public class LitemallQuoteModel {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    public static final Boolean IS_DELETED = Deleted.IS_DELETED.value();

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value();

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_quote_model.code
     *
     * @mbg.generated
     */
    private Integer[] code;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_quote_model.add_time
     *
     * @mbg.generated
     */
    private LocalDateTime addTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_quote_model.update_time
     *
     * @mbg.generated
     */
    private LocalDateTime updateTime;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_quote_model.approve_code
     *
     * @mbg.generated
     */
    private Integer[] approveCode;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_quote_model.notice
     *
     * @mbg.generated
     */
    private Integer[] notice;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_quote_model.id
     *
     * @param id the value for litemall_quote_model.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 litemall_quote_model.name
     *
     * @return the value of litemall_quote_model.name
     *
     * @mbg.generated
     */
    public String getName() {
        return name;
    }

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.code
     *
     * @return the value of litemall_quote_model.code
     *
     * @mbg.generated
     */
    public Integer[] getCode() {
        return code;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_quote_model.code
     *
     * @param code the value for litemall_quote_model.code
     *
     * @mbg.generated
     */
    public void setCode(Integer[] code) {
        this.code = code;
    }

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.add_time
     *
     * @return the value of litemall_quote_model.add_time
     *
     * @mbg.generated
     */
    public LocalDateTime getAddTime() {
        return addTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_quote_model.add_time
     *
     * @param addTime the value for litemall_quote_model.add_time
     *
     * @mbg.generated
     */
    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.update_time
     *
     * @return the value of litemall_quote_model.update_time
     *
     * @mbg.generated
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_quote_model.update_time
     *
     * @param updateTime the value for litemall_quote_model.update_time
     *
     * @mbg.generated
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    public void andLogicalDeleted(boolean deleted) {
        setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.deleted
     *
     * @return the value of litemall_quote_model.deleted
     *
     * @mbg.generated
     */
    public Boolean getDeleted() {
        return deleted;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.approve_code
     *
     * @return the value of litemall_quote_model.approve_code
     *
     * @mbg.generated
     */
    public Integer[] getApproveCode() {
        return approveCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_quote_model.approve_code
     *
     * @param approveCode the value for litemall_quote_model.approve_code
     *
     * @mbg.generated
     */
    public void setApproveCode(Integer[] approveCode) {
        this.approveCode = approveCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.ceo_code
     *
     * @return the value of litemall_quote_model.ceo_code
     *
     * @mbg.generated
     */
    public Integer getCeoCode() {
        return ceoCode;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_quote_model.notice
     *
     * @return the value of litemall_quote_model.notice
     *
     * @mbg.generated
     */
    public Integer[] getNotice() {
        return notice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_quote_model.notice
     *
     * @param notice the value for litemall_quote_model.notice
     *
     * @mbg.generated
     */
    public void setNotice(Integer[] notice) {
        this.notice = notice;
    }

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", IS_DELETED=").append(IS_DELETED);
        sb.append(", NOT_DELETED=").append(NOT_DELETED);
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", version=").append(version);
        sb.append(", excel=").append(excel);
        sb.append(", duty=").append(duty);
        sb.append(", code=").append(code);
        sb.append(", status=").append(status);
        sb.append(", creator=").append(creator);
        sb.append(", modify=").append(modify);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", approveCode=").append(approveCode);
        sb.append(", ceoCode=").append(ceoCode);
        sb.append(", notice=").append(notice);
        sb.append(", appendix=").append(appendix);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallQuoteModel other = (LitemallQuoteModel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
            && (this.getExcel() == null ? other.getExcel() == null : this.getExcel().equals(other.getExcel()))
            && (this.getDuty() == null ? other.getDuty() == null : this.getDuty().equals(other.getDuty()))
            && (Arrays.equals(this.getCode(), other.getCode()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getModify() == null ? other.getModify() == null : this.getModify().equals(other.getModify()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (Arrays.equals(this.getApproveCode(), other.getApproveCode()))
            && (this.getCeoCode() == null ? other.getCeoCode() == null : this.getCeoCode().equals(other.getCeoCode()))
            && (Arrays.equals(this.getNotice(), other.getNotice()))
            && (this.getAppendix() == null ? other.getAppendix() == null : this.getAppendix().equals(other.getAppendix()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getExcel() == null) ? 0 : getExcel().hashCode());
        result = prime * result + ((getDuty() == null) ? 0 : getDuty().hashCode());
        result = prime * result + (Arrays.hashCode(getCode()));
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getModify() == null) ? 0 : getModify().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + (Arrays.hashCode(getApproveCode()));
        result = prime * result + ((getCeoCode() == null) ? 0 : getCeoCode().hashCode());
        result = prime * result + (Arrays.hashCode(getNotice()));
        result = prime * result + ((getAppendix() == null) ? 0 : getAppendix().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    public enum Deleted {
        NOT_DELETED(new Boolean("0"), "未删除"),
        IS_DELETED(new Boolean("1"), "已删除");

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table litemall_quote_model
         *
         * @mbg.generated
         */
        private final Boolean value;

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table litemall_quote_model
         *
         * @mbg.generated
         */
        Deleted(Boolean value, String name) {
            this.value = value;
            this.name = name;
        }

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

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

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

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table litemall_quote_model
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        name("name", "name", "VARCHAR", true),
        version("version", "version", "VARCHAR", false),
        excel("excel", "excel", "VARCHAR", false),
        duty("duty", "duty", "INTEGER", false),
        code("code", "code", "VARCHAR", false),
        status("status", "status", "INTEGER", true),
        creator("creator", "creator", "INTEGER", false),
        modify("modify", "modify", "INTEGER", true),
        addTime("add_time", "addTime", "TIMESTAMP", false),
        updateTime("update_time", "updateTime", "TIMESTAMP", false),
        deleted("deleted", "deleted", "BIT", false),
        approveCode("approve_code", "approveCode", "VARCHAR", false),
        ceoCode("ceo_code", "ceoCode", "INTEGER", false),
        notice("notice", "notice", "VARCHAR", false),
        appendix("appendix", "appendix", "LONGVARCHAR", false);

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

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

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

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

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

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

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

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

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

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

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

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

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