package com.slodon.b2b2c.goods.pojo;

import com.slodon.b2b2c.core.config.DomainUrlUtil;

import java.util.Date;

public class GoodsAnnex {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.annex_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Long annexId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.goods_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Long goodsId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.annex_name
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private String annexName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.annex_path
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private String annexPath;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.sort
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Integer sort;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.store_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Long storeId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.create_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Long createId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.create_time
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Date createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column goods_annex.status
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    private Integer status;

    private String annexUrl;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.annex_id
     *
     * @return the value of goods_annex.annex_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Long getAnnexId() {
        return annexId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.annex_id
     *
     * @param annexId the value for goods_annex.annex_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setAnnexId(Long annexId) {
        this.annexId = annexId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.goods_id
     *
     * @return the value of goods_annex.goods_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Long getGoodsId() {
        return goodsId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.goods_id
     *
     * @param goodsId the value for goods_annex.goods_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.annex_name
     *
     * @return the value of goods_annex.annex_name
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public String getAnnexName() {
        return annexName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.annex_name
     *
     * @param annexName the value for goods_annex.annex_name
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setAnnexName(String annexName) {
        this.annexName = annexName == null ? null : annexName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.annex_path
     *
     * @return the value of goods_annex.annex_path
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public String getAnnexPath() {
        return annexPath;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.annex_path
     *
     * @param annexPath the value for goods_annex.annex_path
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setAnnexPath(String annexPath) {
        this.annexPath = annexPath == null ? null : annexPath.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.sort
     *
     * @return the value of goods_annex.sort
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.sort
     *
     * @param sort the value for goods_annex.sort
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.store_id
     *
     * @return the value of goods_annex.store_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Long getStoreId() {
        return storeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.store_id
     *
     * @param storeId the value for goods_annex.store_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.create_id
     *
     * @return the value of goods_annex.create_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Long getCreateId() {
        return createId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.create_id
     *
     * @param createId the value for goods_annex.create_id
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.create_time
     *
     * @return the value of goods_annex.create_time
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.create_time
     *
     * @param createTime the value for goods_annex.create_time
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column goods_annex.status
     *
     * @return the value of goods_annex.status
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column goods_annex.status
     *
     * @param status the value for goods_annex.status
     *
     * @mbg.generated Fri Sep 23 15:28:45 CST 2022
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAnnexUrl() {
        return DomainUrlUtil.SLD_IMAGE_RESOURCES + annexPath;
    }
}