package com.goafanti.common.model;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

import com.goafanti.common.constant.AFTConstants;

public class DemandFollowDetail {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column demand_follow_detail.id
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	private String id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column demand_follow_detail.demand_follow_id
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	private String demandFollowId;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column demand_follow_detail.remarks
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	private String remarks;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column demand_follow_detail.result
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	private Integer result;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column demand_follow_detail.create_time
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	private Date createTime;

	
	
	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column demand_follow_detail.id
	 * @return  the value of demand_follow_detail.id
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 *
	 */
	public String getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column demand_follow_detail.id
	 * @param id  the value for demand_follow_detail.id
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column demand_follow_detail.demand_follow_id
	 * @return  the value of demand_follow_detail.demand_follow_id
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public String getDemandFollowId() {
		return demandFollowId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column demand_follow_detail.demand_follow_id
	 * @param demandFollowId  the value for demand_follow_detail.demand_follow_id
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setDemandFollowId(String demandFollowId) {
		this.demandFollowId = demandFollowId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column demand_follow_detail.remarks
	 * @return  the value of demand_follow_detail.remarks
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public String getRemarks() {
		return remarks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column demand_follow_detail.remarks
	 * @param remarks  the value for demand_follow_detail.remarks
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column demand_follow_detail.result
	 * @return  the value of demand_follow_detail.result
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public Integer getResult() {
		return result;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column demand_follow_detail.result
	 * @param result  the value for demand_follow_detail.result
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setResult(Integer result) {
		this.result = result;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column demand_follow_detail.create_time
	 * @return  the value of demand_follow_detail.create_time
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column demand_follow_detail.create_time
	 * @param createTime  the value for demand_follow_detail.create_time
	 * @mbg.generated  Thu Mar 22 14:44:52 CST 2018
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTimeFormattedDate(){
		if (null==getCreateTime()) {
			return null;
		}else {
			return DateFormatUtils.format(getCreateTime(), AFTConstants.YYYYMMDD);
		}
		
	}

	
	
}