package org.linlinjava.jz.db.domain;

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

public class HmEmployTask {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.id
     *
     * @mbg.generated
     */
    private Long id;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.employ_clock_id
     *
     * @mbg.generated
     */
    private Long employClockId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.employ_relation_id
     *
     * @mbg.generated
     */
    private Long employRelationId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.category_id
     *
     * @mbg.generated
     */
    private Long categoryId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.item_id
     *
     * @mbg.generated
     */
    private Long itemId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.task_start_time
     *
     * @mbg.generated
     */
    private LocalDateTime taskStartTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_employ_task.task_complete_time
     *
     * @mbg.generated
     */
    private LocalDateTime taskCompleteTime;

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

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.order_no
     *
     * @return the value of hm_employ_task.order_no
     *
     * @mbg.generated
     */
    public String getOrderNo() {
        return orderNo;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.employ_clock_id
     *
     * @return the value of hm_employ_task.employ_clock_id
     *
     * @mbg.generated
     */
    public Long getEmployClockId() {
        return employClockId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_employ_task.employ_clock_id
     *
     * @param employClockId the value for hm_employ_task.employ_clock_id
     *
     * @mbg.generated
     */
    public void setEmployClockId(Long employClockId) {
        this.employClockId = employClockId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.employ_relation_id
     *
     * @return the value of hm_employ_task.employ_relation_id
     *
     * @mbg.generated
     */
    public Long getEmployRelationId() {
        return employRelationId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_employ_task.employ_relation_id
     *
     * @param employRelationId the value for hm_employ_task.employ_relation_id
     *
     * @mbg.generated
     */
    public void setEmployRelationId(Long employRelationId) {
        this.employRelationId = employRelationId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.category_id
     *
     * @return the value of hm_employ_task.category_id
     *
     * @mbg.generated
     */
    public Long getCategoryId() {
        return categoryId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_employ_task.category_id
     *
     * @param categoryId the value for hm_employ_task.category_id
     *
     * @mbg.generated
     */
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.item_id
     *
     * @return the value of hm_employ_task.item_id
     *
     * @mbg.generated
     */
    public Long getItemId() {
        return itemId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_employ_task.item_id
     *
     * @param itemId the value for hm_employ_task.item_id
     *
     * @mbg.generated
     */
    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.task_start_time
     *
     * @return the value of hm_employ_task.task_start_time
     *
     * @mbg.generated
     */
    public LocalDateTime getTaskStartTime() {
        return taskStartTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_employ_task.task_start_time
     *
     * @param taskStartTime the value for hm_employ_task.task_start_time
     *
     * @mbg.generated
     */
    public void setTaskStartTime(LocalDateTime taskStartTime) {
        this.taskStartTime = taskStartTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.task_complete_time
     *
     * @return the value of hm_employ_task.task_complete_time
     *
     * @mbg.generated
     */
    public LocalDateTime getTaskCompleteTime() {
        return taskCompleteTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_employ_task.task_complete_time
     *
     * @param taskCompleteTime the value for hm_employ_task.task_complete_time
     *
     * @mbg.generated
     */
    public void setTaskCompleteTime(LocalDateTime taskCompleteTime) {
        this.taskCompleteTime = taskCompleteTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.daily_cost
     *
     * @return the value of hm_employ_task.daily_cost
     *
     * @mbg.generated
     */
    public Integer getTaskType() {
        return taskType;
    }

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.incomplete_reason
     *
     * @return the value of hm_employ_task.incomplete_reason
     *
     * @mbg.generated
     */
    public String getIncompleteReason() {
        return incompleteReason;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_employ_task.create_time
     *
     * @return the value of hm_employ_task.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 hm_employ_task.create_time
     *
     * @param createTime the value for hm_employ_task.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 hm_employ_task.update_time
     *
     * @return the value of hm_employ_task.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 hm_employ_task.update_time
     *
     * @param updateTime the value for hm_employ_task.update_time
     *
     * @mbg.generated
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task
     *
     * @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(", orderNo=").append(orderNo);
        sb.append(", employClockId=").append(employClockId);
        sb.append(", employRelationId=").append(employRelationId);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", itemId=").append(itemId);
        sb.append(", taskStartTime=").append(taskStartTime);
        sb.append(", taskCompleteTime=").append(taskCompleteTime);
        sb.append(", dailyCost=").append(taskType);
        sb.append(", delay=").append(delay);
        sb.append(", state=").append(state);
        sb.append(", incompleteReason=").append(incompleteReason);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HmEmployTask other = (HmEmployTask) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getEmployClockId() == null ? other.getEmployClockId() == null : this.getEmployClockId().equals(other.getEmployClockId()))
            && (this.getEmployRelationId() == null ? other.getEmployRelationId() == null : this.getEmployRelationId().equals(other.getEmployRelationId()))
            && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
            && (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
            && (this.getTaskStartTime() == null ? other.getTaskStartTime() == null : this.getTaskStartTime().equals(other.getTaskStartTime()))
            && (this.getTaskCompleteTime() == null ? other.getTaskCompleteTime() == null : this.getTaskCompleteTime().equals(other.getTaskCompleteTime()))
            && (this.getTaskType() == null ? other.getTaskType() == null : this.getTaskType().equals(other.getTaskType()))
            && (this.getDelay() == null ? other.getDelay() == null : this.getDelay().equals(other.getDelay()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getIncompleteReason() == null ? other.getIncompleteReason() == null : this.getIncompleteReason().equals(other.getIncompleteReason()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getEmployClockId() == null) ? 0 : getEmployClockId().hashCode());
        result = prime * result + ((getEmployRelationId() == null) ? 0 : getEmployRelationId().hashCode());
        result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
        result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
        result = prime * result + ((getTaskStartTime() == null) ? 0 : getTaskStartTime().hashCode());
        result = prime * result + ((getTaskCompleteTime() == null) ? 0 : getTaskCompleteTime().hashCode());
        result = prime * result + ((getTaskType() == null) ? 0 : getTaskType().hashCode());
        result = prime * result + ((getDelay() == null) ? 0 : getDelay().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getIncompleteReason() == null) ? 0 : getIncompleteReason().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table hm_employ_task
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "BIGINT", false),
        orderNo("order_no", "orderNo", "VARCHAR", false),
        employClockId("employ_clock_id", "employClockId", "BIGINT", false),
        employRelationId("employ_relation_id", "employRelationId", "BIGINT", false),
        categoryId("category_id", "categoryId", "BIGINT", false),
        itemId("item_id", "itemId", "BIGINT", false),
        taskStartTime("task_start_time", "taskStartTime", "TIMESTAMP", false),
        taskCompleteTime("task_complete_time", "taskCompleteTime", "TIMESTAMP", false),
        taskType("task_type", "taskType", "INTEGER", false),
        delay("delay", "delay", "BIT", false),
        state("state", "state", "INTEGER", true),
        incompleteReason("incomplete_reason", "incompleteReason", "VARCHAR", false),
        createTime("create_time", "createTime", "TIMESTAMP", false),
        updateTime("update_time", "updateTime", "TIMESTAMP", false),
        remark("remark", "remark", "VARCHAR", false);

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

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

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

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

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

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

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

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

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

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

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

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

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

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