package pwc.taxtech.atms.entity;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * This class was generated by MyBatis Generator.
 * This class corresponds to the database table organization_accounting_rate
 *
 * @mbg.generated do_not_delete_during_merge
 */
public class OrganizationAccountingRate extends BaseEntity implements Serializable {
    /**
     * Database Column Remarks:
     *   唯一编号
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * Database Column Remarks:
     *   机构编号
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.organization_id
     *
     * @mbg.generated
     */
    private String organizationId;

    /**
     * Database Column Remarks:
     *   期间,与滴滴联调传yyyy-MM-dd转为yyyyMMdd
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.period
     *
     * @mbg.generated
     */
    private Integer period;

    /**
     * Database Column Remarks:
     *   数据日期
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.date
     *
     * @mbg.generated
     */
    private Date date;

    /**
     * Database Column Remarks:
     *   来源
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.source
     *
     * @mbg.generated
     */
    private String source;

    /**
     * Database Column Remarks:
     *   汇率类型
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.convertion_type
     *
     * @mbg.generated
     */
    private String convertionType;

    /**
     * Database Column Remarks:
     *   货币自
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.currency_from
     *
     * @mbg.generated
     */
    private String currencyFrom;

    /**
     * Database Column Remarks:
     *   货币至
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.currency_to
     *
     * @mbg.generated
     */
    private String currencyTo;

    /**
     * Database Column Remarks:
     *   期间始
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.start_date
     *
     * @mbg.generated
     */
    private Date startDate;

    /**
     * Database Column Remarks:
     *   期间止.2015-05-02
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.end_date
     *
     * @mbg.generated
     */
    private Date endDate;

    /**
     * Database Column Remarks:
     *   入账汇率.6.66
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.rate
     *
     * @mbg.generated
     */
    private Float rate;

    /**
     * Database Column Remarks:
     *   创建时间
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.create_time
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * Database Column Remarks:
     *   更新时间
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.update_time
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * Database Column Remarks:
     *   同步用于标记不同分页的数据,避免重复删除
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column organization_accounting_rate.task_id
     *
     * @mbg.generated
     */
    private String taskId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table organization_accounting_rate
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.organization_id
     *
     * @param organizationId the value for organization_accounting_rate.organization_id
     *
     * @mbg.generated
     */
    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId == null ? null : organizationId.trim();
    }

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.date
     *
     * @return the value of organization_accounting_rate.date
     *
     * @mbg.generated
     */
    public Date getDate() {
        return date;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.date
     *
     * @param date the value for organization_accounting_rate.date
     *
     * @mbg.generated
     */
    public void setDate(Date date) {
        this.date = date;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.source
     *
     * @param source the value for organization_accounting_rate.source
     *
     * @mbg.generated
     */
    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.convertion_type
     *
     * @return the value of organization_accounting_rate.convertion_type
     *
     * @mbg.generated
     */
    public String getConvertionType() {
        return convertionType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.convertion_type
     *
     * @param convertionType the value for organization_accounting_rate.convertion_type
     *
     * @mbg.generated
     */
    public void setConvertionType(String convertionType) {
        this.convertionType = convertionType == null ? null : convertionType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.currency_from
     *
     * @return the value of organization_accounting_rate.currency_from
     *
     * @mbg.generated
     */
    public String getCurrencyFrom() {
        return currencyFrom;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.currency_from
     *
     * @param currencyFrom the value for organization_accounting_rate.currency_from
     *
     * @mbg.generated
     */
    public void setCurrencyFrom(String currencyFrom) {
        this.currencyFrom = currencyFrom == null ? null : currencyFrom.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.currency_to
     *
     * @return the value of organization_accounting_rate.currency_to
     *
     * @mbg.generated
     */
    public String getCurrencyTo() {
        return currencyTo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.currency_to
     *
     * @param currencyTo the value for organization_accounting_rate.currency_to
     *
     * @mbg.generated
     */
    public void setCurrencyTo(String currencyTo) {
        this.currencyTo = currencyTo == null ? null : currencyTo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.start_date
     *
     * @return the value of organization_accounting_rate.start_date
     *
     * @mbg.generated
     */
    public Date getStartDate() {
        return startDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.start_date
     *
     * @param startDate the value for organization_accounting_rate.start_date
     *
     * @mbg.generated
     */
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.end_date
     *
     * @return the value of organization_accounting_rate.end_date
     *
     * @mbg.generated
     */
    public Date getEndDate() {
        return endDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.end_date
     *
     * @param endDate the value for organization_accounting_rate.end_date
     *
     * @mbg.generated
     */
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.rate
     *
     * @return the value of organization_accounting_rate.rate
     *
     * @mbg.generated
     */
    public Float getRate() {
        return rate;
    }

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column organization_accounting_rate.task_id
     *
     * @return the value of organization_accounting_rate.task_id
     *
     * @mbg.generated
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column organization_accounting_rate.task_id
     *
     * @param taskId the value for organization_accounting_rate.task_id
     *
     * @mbg.generated
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public OrganizationAccountingRate(){}

    public OrganizationAccountingRate(Long id,String orgId){
        this.id = id;
        this.organizationId = orgId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table organization_accounting_rate
     *
     * @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(", organizationId=").append(organizationId);
        sb.append(", period=").append(period);
        sb.append(", date=").append(date);
        sb.append(", source=").append(source);
        sb.append(", convertionType=").append(convertionType);
        sb.append(", currencyFrom=").append(currencyFrom);
        sb.append(", currencyTo=").append(currencyTo);
        sb.append(", startDate=").append(startDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", rate=").append(rate);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", taskId=").append(taskId);
        sb.append("]");
        return sb.toString();
    }
}