zoukankan      html  css  js  c++  java
  • shop--2.项目系统搭建

    用户信息与微信账号和本地账号的关联(通过用户信息的id关联起来的)

    商品类别与店铺信息通过商品类别下的shop_id关联

    实体类

    private Integer areaId;
        private String areaName;
        private Integer priority;
        private Date createDate;
        private Date lastEditDate;
    

      

     

    private Long userId;
        private String userName;
        private String photo;
        private String email;
        private String gender;
    

      

     

    private Long weChatUserId;
        private String openId;
        private Date createTime;
        private PersonInfo personInfo;
    

      

     

    注意这里添加了一个外键约束

    private Long localUserId;
        private String userName;
        private String password;
        private Date createTime;
        private Date lastEditTime;
        private PersonInfo personInfo;
    

      

    private Long lineId;
        private String lineName;
        private String lineLink;
        private String lineImg;
        private Integer prioirty;
        //0不可用 1可用
        private Integer status;
        private Date createTime;
        private Date lastEditTime;
    

      

    private Long shopCategoryId;
        private String shopCategoryName;
        private String shopCategoryDesc;
        private String shopCategoryImg;
        private Integer priority;
        private Date createTime;
        private Date lastEditTime;
        private ShopCategory parent;
    

      

    这里的外键是与自己的id相连接

    private Long shopId;
        private String shopName;
        private String shopDesc;
        private String shopAddr;
        private String phone;
        private String shopImg;
        private Integer priority;
        private Date createTime;
        private Date lastEditTime;
        //-1不可用 0审核中 1 可用
        private Integer status;
        //超级管理员给店铺的建议
        private String advice;
    
        private Area area;
        private PersonInfo owner;
        private ShopCategory shopCategory;
    

      

    商品类别的

    private Long productCategoryId;
        private Long shopId;
        private String productCategoryName;
        private Integer priority;
        private Date createTime;
    

     

    商品图片

    private Long productImgId;
        private String imgAddr;
        private String imgDesc;
        private Integer priority;
        private Date createTime;
        private Long productId;
    

     

     

    private static final long serialVersionUID = -349433539553804024L;
    private Long productId;
    private String productName;
    private String productDesc;
    // 简略图
    private String imgAddr;
    //原价
    private String normalPrice;
    //折扣价
    private String promotionPrice;
    private Integer priority;
    private Date createTime;
    private Date lastEditTime;
    //0 下架 1 可用
    private Integer status;

    //商品详情图片列表
    private List<ProductImg> productImgList;
    //商品类别
    private ProductCategory productCategory;
    //属于哪一个店铺
    private Shop shop;

     

     

  • 相关阅读:
    20170620_javaweb_小结
    win7电脑关机时间长怎么办
    hadoop环境搭建之关于NAT模式静态IP的设置 ---VMware12+CentOs7
    初识bigdata时的一些技能小贴士
    mysql 免安装版 + sqlyog 安装 步骤 --- 发的有点晚
    Python开发之IDE选择
    Python解释器换源
    Anaconda安装与使用
    安装Python环境
    Python和其他编程语言
  • 原文地址:https://www.cnblogs.com/SkyeAngel/p/8855379.html
Copyright © 2011-2022 走看看