首页>代码>Spring Boot+SpringMVC+Mybatis+jsp餐厅后台管理>/springboot_jsptest/src/main/java/com/zl/beans/Product.java
package com.zl.beans;

import java.util.List;

public class Product {
    private Integer id;
    private String pid;//商品编号
    private String pname;//商品名称
    private int fid;//所属种类
    private double mprice;//市场价
    private double vprice;//会员价
    private int repertory;//商品库存
    private String content;//商品详情

    //关联属性,作为一方,差多方
    private List<Product> chiledren;
    //作为多方,查一方
    private Product parent;

    public Product() {
    }

    public int getRepertory() {
        return repertory;
    }

    public void setRepertory(int repertory) {
        this.repertory = repertory;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    public double getMprice() {
        return mprice;
    }

    public void setMprice(double mprice) {
        this.mprice = mprice;
    }

    public double getVprice() {
        return vprice;
    }

    public void setVprice(double vprice) {
        this.vprice = vprice;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Product> getChiledren() {
        return chiledren;
    }

    public void setChiledren(List<Product> chiledren) {
        this.chiledren = chiledren;
    }

    public Product getParent() {
        return parent;
    }

    public void setParent(Product parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", pid='" + pid + '\'' +
                ", pname='" + pname + '\'' +
                ", fid=" + fid +
                ", mprice=" + mprice +
                ", vprice=" + vprice +
                ", repertory=" + repertory +
                ", content='" + content + '\'' +
                ", chiledren=" + chiledren +
                ", parent=" + parent +
                '}';
    }
}
最近下载更多
蓝羊羊  LV20 2月15日
zolscy  LV24 2024年11月28日
rain112  LV31 2024年6月13日
一勺枣糕  LV3 2024年1月11日
zhaobing_g  LV3 2024年1月3日
微信网友_6602457430806528  LV6 2023年9月21日
jlmarket  LV22 2023年6月18日
Ji123455  LV8 2023年5月24日
disenga  LV1 2023年4月4日
计算机暴龙战士  LV19 2023年4月2日
最近浏览更多
linyuuuu 3月1日
暂无贡献等级
哪里的完整版  LV8 2月26日
蓝羊羊  LV20 2月15日
zolscy  LV24 2024年11月28日
citybird  LV4 2024年11月20日
今夜风很大  LV1 2024年11月11日
krispeng  LV14 2024年10月3日
xinxin23383  LV7 2024年9月13日
TY0165  LV20 2024年6月19日
adminadminsqwqe  LV8 2024年6月14日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友