package com.jzdsh.auto.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseVinLibrary<M extends BaseVinLibrary<M>> extends Model<M> implements IBean {

	/**
	 * 表名
	 */
	public static final String TableName = "vin_library";

	/**
	 * select fields from tablename 根据查询字段自动构建select 语句
	 */
	public static String SelectFrom(String fields){
		return String.format("select %s from %s ",fields,TableName);
	}



	/**
	 * 修理厂采购车型库
	 */
	public M setId(java.lang.Long id) {
		set("id", id);
		return (M)this;
	}
	
	/**
	 * 修理厂采购车型库
	 */
	public java.lang.Long getId() {
		return getLong("id");
	}

	/**
	 * 力洋ID
	 */
	public M setLiyangId(java.lang.String liyangId) {
		set("liyang_id", liyangId);
		return (M)this;
	}
	
	/**
	 * 力洋ID
	 */
	public java.lang.String getLiyangId() {
		return getStr("liyang_id");
	}

	/**
	 * 品牌
	 */
	public M setBrand(java.lang.String brand) {
		set("brand", brand);
		return (M)this;
	}
	
	/**
	 * 品牌
	 */
	public java.lang.String getBrand() {
		return getStr("brand");
	}

	/**
	 * 车型
	 */
	public M setCarType(java.lang.String carType) {
		set("car_type", carType);
		return (M)this;
	}
	
	/**
	 * 车型
	 */
	public java.lang.String getCarType() {
		return getStr("car_type");
	}

	/**
	 * 销售名称
	 */
	public M setSaleName(java.lang.String saleName) {
		set("sale_name", saleName);
		return (M)this;
	}
	
	/**
	 * 销售名称
	 */
	public java.lang.String getSaleName() {
		return getStr("sale_name");
	}

	/**
	 * 年款
	 */
	public M setYear(java.lang.String year) {
		set("year", year);
		return (M)this;
	}
	
	/**
	 * 年款
	 */
	public java.lang.String getYear() {
		return getStr("year");
	}

	/**
	 * 创建时间
	 */
	public M setCreateDate(java.util.Date createDate) {
		set("create_date", createDate);
		return (M)this;
	}
	
	/**
	 * 创建时间
	 */
	public java.util.Date getCreateDate() {
		return get("create_date");
	}

	/**
	 * 品牌首字母
	 */
	public M setFirstLetter(java.lang.String firstLetter) {
		set("first_letter", firstLetter);
		return (M)this;
	}
	
	/**
	 * 品牌首字母
	 */
	public java.lang.String getFirstLetter() {
		return getStr("first_letter");
	}

}
