package com.goafanti.common.model;

import com.goafanti.common.utils.StringUtils;

public class JtCollectSearch {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jt_collect_search.id
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jt_collect_search.from_table
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    private String fromTable;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jt_collect_search.row_id
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    private String rowId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jt_collect_search.title
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    private String title;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jt_collect_search.keyword
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    private String keyword;
    
    private String summary;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jt_collect_search.id
     *
     * @return the value of jt_collect_search.id
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jt_collect_search.id
     *
     * @param id the value for jt_collect_search.id
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jt_collect_search.from_table
     *
     * @return the value of jt_collect_search.from_table
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public String getFromTable() {
        return fromTable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jt_collect_search.from_table
     *
     * @param fromTable the value for jt_collect_search.from_table
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public void setFromTable(String fromTable) {
        this.fromTable = fromTable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jt_collect_search.row_id
     *
     * @return the value of jt_collect_search.row_id
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public String getRowId() {
        return rowId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jt_collect_search.row_id
     *
     * @param rowId the value for jt_collect_search.row_id
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public void setRowId(String rowId) {
        this.rowId = rowId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jt_collect_search.title
     *
     * @return the value of jt_collect_search.title
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jt_collect_search.title
     *
     * @param title the value for jt_collect_search.title
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jt_collect_search.keyword
     *
     * @return the value of jt_collect_search.keyword
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public String getKeyword() {
    	if (StringUtils.isBlank(keyword)) {
			return "暂无";
		}
        return keyword;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jt_collect_search.keyword
     *
     * @param keyword the value for jt_collect_search.keyword
     *
     * @mbg.generated Mon Sep 10 14:08:59 CST 2018
     */
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

	public String getSummary() {
		if (StringUtils.isBlank(summary)) {
			return "暂无";
		}
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}
    
    
}