package com.yutou.jianr_mg.Data;

import java.util.ArrayList;
import java.util.List;

public class ZsShipType {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.id
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	private Integer id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.name
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	private String name;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.shortname
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	private String shortname;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column zs_ship_type.mark
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	private String mark;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.id
	 * @return  the value of zs_ship_type.id
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.id
	 * @param id  the value for zs_ship_type.id
	 * @mbg.generated  Sun May 06 16:48:05 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 zs_ship_type.name
	 * @return  the value of zs_ship_type.name
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.name
	 * @param name  the value for zs_ship_type.name
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.shortname
	 * @return  the value of zs_ship_type.shortname
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public String getShortname() {
		return shortname;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.shortname
	 * @param shortname  the value for zs_ship_type.shortname
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public void setShortname(String shortname) {
		this.shortname = shortname;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column zs_ship_type.mark
	 * @return  the value of zs_ship_type.mark
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public String getMark() {
		return mark;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column zs_ship_type.mark
	 * @param mark  the value for zs_ship_type.mark
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public void setMark(String mark) {
		this.mark = mark;
	}

	public static List<String> toStringList(List<ZsShipType> array){
		List<String> list=new ArrayList<>();
		for (ZsShipType zsShipType : array) {
			list.add(zsShipType.getName());
		}
		return list;
	}
}