首页>代码>SSM增删改查入门实战-点餐后台管理系统>/orderManage/src/main/java/com/order/beans/Product.java
package com.order.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 +
                '}';
    }
}
最近下载更多
xiaoaitx  LV8 1月1日
微信网友_6802139027345408  LV2 2023年12月31日
houhanlin33  LV3 2023年12月28日
0o0o0o  LV2 2023年6月12日
6389181  LV7 2023年6月1日
苏拉德666  LV4 2023年5月15日
LCL10086  LV3 2022年12月29日
hihhhh  LV6 2022年12月25日
短巷拥猫  LV12 2022年12月10日
renyuan  LV9 2022年12月7日
最近浏览更多
currety 4月10日
暂无贡献等级
哪里的完整版  LV8 3月1日
xiaoaitx  LV8 1月1日
今天的我也很辛苦 2024年12月25日
暂无贡献等级
taoshen95  LV16 2024年12月21日
897258976  LV8 2024年8月29日
柳咪华沙  LV7 2024年6月28日
暂无贡献等级
3049594659 2024年6月24日
暂无贡献等级
TY0165  LV20 2024年6月19日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友