package org.linlinjava.jz.db.domain;

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

public class ContractSubTemplate {
	
	private Integer isNeedClock;
	private String tel;
	
    public Integer getIsNeedClock() {
		return isNeedClock;
	}

	public void setIsNeedClock(Integer isNeedClock) {
		this.isNeedClock = isNeedClock;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.service_start_time
     *
     * @mbg.generated
     */
    private LocalDateTime serviceStartTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.service_end_time
     *
     * @mbg.generated
     */
    private LocalDateTime serviceEndTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.month_rest_days
     *
     * @mbg.generated
     */

    private String dayWorkTime;
    private Integer monthRestDays;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.monthly_salary
     *
     * @mbg.generated
     */
    private Long monthlySalary;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.day_salary
     *
     * @mbg.generated
     */
    private Long daySalary;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.hourly_salary
     *
     * @mbg.generated
     */
    private Long hourlySalary;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.off_multiple
     *
     * @mbg.generated
     */
    private Float offMultiple;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column contract_sub_template.worker_multiple
     *
     * @mbg.generated
     */
    private Float workerMultiple;

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.service_address
     *
     * @return the value of contract_sub_template.service_address
     *
     * @mbg.generated
     */
    public String getServiceAddress() {
        return serviceAddress;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.service_term
     *
     * @return the value of contract_sub_template.service_term
     *
     * @mbg.generated
     */
    public String getServiceTerm() {
        return serviceTerm;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.service_start_time
     *
     * @return the value of contract_sub_template.service_start_time
     *
     * @mbg.generated
     */
    public LocalDateTime getServiceStartTime() {
        return serviceStartTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column contract_sub_template.service_start_time
     *
     * @param serviceStartTime the value for contract_sub_template.service_start_time
     *
     * @mbg.generated
     */
    public void setServiceStartTime(LocalDateTime serviceStartTime) {
        this.serviceStartTime = serviceStartTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.service_end_time
     *
     * @return the value of contract_sub_template.service_end_time
     *
     * @mbg.generated
     */
    public LocalDateTime getServiceEndTime() {
        return serviceEndTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column contract_sub_template.service_end_time
     *
     * @param serviceEndTime the value for contract_sub_template.service_end_time
     *
     * @mbg.generated
     */
    public void setServiceEndTime(LocalDateTime serviceEndTime) {
        this.serviceEndTime = serviceEndTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.month_rest_days
     *
     * @return the value of contract_sub_template.month_rest_days
     *
     * @mbg.generated
     */
    public Integer getMonthRestDays() {
        return monthRestDays;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.off_day
     *
     * @return the value of contract_sub_template.off_day
     *
     * @mbg.generated
     */
    public String getOffDay() {
        return offDay;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.monthly_salary
     *
     * @return the value of contract_sub_template.monthly_salary
     *
     * @mbg.generated
     */
    public Long getMonthlySalary() {
        return monthlySalary;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.day_salary
     *
     * @return the value of contract_sub_template.day_salary
     *
     * @mbg.generated
     */
    public Long getDaySalary() {
        return daySalary;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.hourly_salary
     *
     * @return the value of contract_sub_template.hourly_salary
     *
     * @mbg.generated
     */
    public Long getHourlySalary() {
        return hourlySalary;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.off_multiple
     *
     * @return the value of contract_sub_template.off_multiple
     *
     * @mbg.generated
     */
    public Float getOffMultiple() {
        return offMultiple;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column contract_sub_template.off_multiple
     *
     * @param offMultiple the value for contract_sub_template.off_multiple
     *
     * @mbg.generated
     */
    public void setOffMultiple(Float offMultiple) {
        this.offMultiple = offMultiple;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column contract_sub_template.worker_multiple
     *
     * @return the value of contract_sub_template.worker_multiple
     *
     * @mbg.generated
     */
    public Float getWorkerMultiple() {
        return workerMultiple;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column contract_sub_template.worker_multiple
     *
     * @param workerMultiple the value for contract_sub_template.worker_multiple
     *
     * @mbg.generated
     */
    public void setWorkerMultiple(Float workerMultiple) {
        this.workerMultiple = workerMultiple;
    }

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table contract_sub_template
     *
     * @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(", subContractNo=").append(subContractNo);
        sb.append(", serviceAddress=").append(serviceAddress);
        sb.append(", serviceTerm=").append(serviceTerm);
        sb.append(", serviceStartTime=").append(serviceStartTime);
        sb.append(", serviceEndTime=").append(serviceEndTime);
        sb.append(", monthRestDays=").append(monthRestDays);
        sb.append(", offDay=").append(offDay);
        sb.append(", monthlySalary=").append(monthlySalary);
        sb.append(", daySalary=").append(daySalary);
        sb.append(", hourlySalary=").append(hourlySalary);
        sb.append(", offMultiple=").append(offMultiple);
        sb.append(", workerMultiple=").append(workerMultiple);
        sb.append(", payday=").append(payday);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table contract_sub_template
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ContractSubTemplate other = (ContractSubTemplate) 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.getSubContractNo() == null ? other.getSubContractNo() == null : this.getSubContractNo().equals(other.getSubContractNo()))
            && (this.getServiceAddress() == null ? other.getServiceAddress() == null : this.getServiceAddress().equals(other.getServiceAddress()))
            && (this.getServiceTerm() == null ? other.getServiceTerm() == null : this.getServiceTerm().equals(other.getServiceTerm()))
            && (this.getServiceStartTime() == null ? other.getServiceStartTime() == null : this.getServiceStartTime().equals(other.getServiceStartTime()))
            && (this.getServiceEndTime() == null ? other.getServiceEndTime() == null : this.getServiceEndTime().equals(other.getServiceEndTime()))
            && (this.getMonthRestDays() == null ? other.getMonthRestDays() == null : this.getMonthRestDays().equals(other.getMonthRestDays()))
            && (this.getOffDay() == null ? other.getOffDay() == null : this.getOffDay().equals(other.getOffDay()))
            && (this.getMonthlySalary() == null ? other.getMonthlySalary() == null : this.getMonthlySalary().equals(other.getMonthlySalary()))
            && (this.getDaySalary() == null ? other.getDaySalary() == null : this.getDaySalary().equals(other.getDaySalary()))
            && (this.getHourlySalary() == null ? other.getHourlySalary() == null : this.getHourlySalary().equals(other.getHourlySalary()))
            && (this.getOffMultiple() == null ? other.getOffMultiple() == null : this.getOffMultiple().equals(other.getOffMultiple()))
            && (this.getWorkerMultiple() == null ? other.getWorkerMultiple() == null : this.getWorkerMultiple().equals(other.getWorkerMultiple()))
            && (this.getPayday() == null ? other.getPayday() == null : this.getPayday().equals(other.getPayday()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table contract_sub_template
     *
     * @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 + ((getSubContractNo() == null) ? 0 : getSubContractNo().hashCode());
        result = prime * result + ((getServiceAddress() == null) ? 0 : getServiceAddress().hashCode());
        result = prime * result + ((getServiceTerm() == null) ? 0 : getServiceTerm().hashCode());
        result = prime * result + ((getServiceStartTime() == null) ? 0 : getServiceStartTime().hashCode());
        result = prime * result + ((getServiceEndTime() == null) ? 0 : getServiceEndTime().hashCode());
        result = prime * result + ((getMonthRestDays() == null) ? 0 : getMonthRestDays().hashCode());
        result = prime * result + ((getOffDay() == null) ? 0 : getOffDay().hashCode());
        result = prime * result + ((getMonthlySalary() == null) ? 0 : getMonthlySalary().hashCode());
        result = prime * result + ((getDaySalary() == null) ? 0 : getDaySalary().hashCode());
        result = prime * result + ((getHourlySalary() == null) ? 0 : getHourlySalary().hashCode());
        result = prime * result + ((getOffMultiple() == null) ? 0 : getOffMultiple().hashCode());
        result = prime * result + ((getWorkerMultiple() == null) ? 0 : getWorkerMultiple().hashCode());
        result = prime * result + ((getPayday() == null) ? 0 : getPayday().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    public String getDayWorkTime() {
        return dayWorkTime;
    }

    public void setDayWorkTime(String dayWorkTime) {
        this.dayWorkTime = dayWorkTime;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table contract_sub_template
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "BIGINT", false),
        orderNo("order_no", "orderNo", "VARCHAR", false),
        subContractNo("sub_contract_no", "subContractNo", "VARCHAR", false),
        serviceAddress("service_address", "serviceAddress", "VARCHAR", false),
        serviceTerm("service_term", "serviceTerm", "VARCHAR", false),
        serviceStartTime("service_start_time", "serviceStartTime", "TIMESTAMP", false),
        serviceEndTime("service_end_time", "serviceEndTime", "TIMESTAMP", false),
        monthRestDays("month_rest_days", "monthRestDays", "INTEGER", false),
        offDay("off_day", "offDay", "VARCHAR", false),
        monthlySalary("monthly_salary", "monthlySalary", "DECIMAL", false),
        daySalary("day_salary", "daySalary", "DECIMAL", false),
        hourlySalary("hourly_salary", "hourlySalary", "DECIMAL", false),
        offMultiple("off_multiple", "offMultiple", "REAL", false),
        workerMultiple("worker_multiple", "workerMultiple", "REAL", false),
        payday("payday", "payday", "INTEGER", false),
        createTime("create_time", "createTime", "TIMESTAMP", false);

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

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

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

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

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

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

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

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

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

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

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

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

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

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