赞
踩
基于Springboot分布式架构网上商城的设计与实现~
开发语言:Java
数据库:MySQL
技术:SpringBoot+MyBatis
工具:IDEA/Ecilpse、Navicat、Maven
功能清单
首页
用户注册
商品信息
购物车
个人中心
登录页面
后台管理页面
用户管理
商品信息管理
商品分类管理
系统管理
@TableName("cart") public class CartEntity<T> implements Serializable { private static final long serialVersionUID = 1L; public CartEntity() { } public CartEntity(T t) { try { BeanUtils.copyProperties(this, t); } catch (IllegalAccessException | InvocationTargetException e) { // TODO Auto-generated catch block e.printStackTrace(); } } /** * 主键id */ @TableId private Long id; /** * 商品表名 */ private String tablename; /** * 用户id */ private Long userid; /** * 商品id */ private Long goodid; /** * 商品名称 */ private String goodname; /** * 图片 */ private String picture; /** * 购买数量 */ private Integer buynumber; /** * 单价 */ private Float price; /** * 会员价 */ private Float discountprice; @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat private Date addtime; public Date getAddtime() { return addtime; } public void setAddtime(Date addtime) { this.addtime = addtime; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } /** * 设置:商品表名 */ public void setTablename(String tablename) { this.tablename = tablename; } /** * 获取:商品表名 */ public String getTablename() { return tablename; } /** * 设置:用户id */ public void setUserid(Long userid) { this.userid = userid; } /** * 获取:用户id */ public Long getUserid() { return userid; } /** * 设置:商品id */ public void setGoodid(Long goodid) { this.goodid = goodid; } /** * 获取:商品id */ public Long getGoodid() { return goodid; } /** * 设置:商品名称 */ public void setGoodname(String goodname) { this.goodname = goodname; } /** * 获取:商品名称 */ public String getGoodname() { return goodname; } /** * 设置:图片 */ public void setPicture(String picture) { this.picture = picture; } /** * 获取:图片 */ public String getPicture() { return picture; } /** * 设置:购买数量 */ public void setBuynumber(Integer buynumber) { this.buynumber = buynumber; } /** * 获取:购买数量 */ public Integer getBuynumber() { return buynumber; } /** * 设置:单价 */ public void setPrice(Float price) { this.price = price; } /** * 获取:单价 */ public Float getPrice() { return price; } /** * 设置:会员价 */ public void setDiscountprice(Float discountprice) { this.discountprice = discountprice; } /** * 获取:会员价 */ public Float getDiscountprice() { return discountprice; } } @Service("newsService") public class NewsServiceImpl extends ServiceImpl<NewsDao, NewsEntity> implements NewsService { @Override public PageUtils queryPage(Map<String, Object> params) { Page<NewsEntity> page = this.selectPage( new Query<NewsEntity>(params).getPage(), new EntityWrapper<NewsEntity>() ); return new PageUtils(page); } @Override public PageUtils queryPage(Map<String, Object> params, Wrapper<NewsEntity> wrapper) { Page<NewsView> page =new Query<NewsView>(params).getPage(); page.setRecords(baseMapper.selectListView(page,wrapper)); PageUtils pageUtil = new PageUtils(page); return pageUtil; } @Override public List<NewsVO> selectListVO(Wrapper<NewsEntity> wrapper) { return baseMapper.selectListVO(wrapper); } @Override public NewsVO selectVO(Wrapper<NewsEntity> wrapper) { return baseMapper.selectVO(wrapper); } @Override public List<NewsView> selectListView(Wrapper<NewsEntity> wrapper) { return baseMapper.selectListView(wrapper); } @Override public NewsView selectView(Wrapper<NewsEntity> wrapper) { return baseMapper.selectView(wrapper); } }
JAVA毕设帮助,指导,源码分享,调试部署
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。