基于SpringBoot的小程序商城.
安装环境
JAVA 环境
Node.js环境 [https://nodejs.org/en/] 选择14.17
Yarn 打开cmd, 输入npm install -g yarn !!!必须安装完毕nodejs
Mysql 数据库 [https://blog.csdn.net/qq_40303031/article/details/88935262] 一定要把账户和密码记住
redis
Idea 编译器 [https://blog.csdn.net/weixin_44505194/article/details/104452880]
WebStorm OR VScode 编译器 [https://www.jianshu.com/p/d63b5bae9dff]
采用技术及功能
后端:SpringBoot、MybatisPlus、MySQL、Redis、
前端:Vue、Apex、Antd、Axios
报表:Spread.js
平台前端:vue(框架) + vuex(全局缓存) + rue-router(路由) + axios(请求插件) + apex(图表) + antd-ui(ui组件)
平台后台:springboot(框架) + redis(缓存中间件) + shiro(权限中间件) + mybatisplus(orm) + restful风格接口 + mysql(数据库)
开发环境:windows10 or windows7 , vscode or webstorm , idea + lambok
管理员数据统计,管理员设计师审核,商品管理,设计师管理,订单管理,订单评价,公告信息管理,论坛管理,论坛回复,用户与设计师消息通知,用户收货地址管理
用户申请设计师,用户订单添加购物车,订单付款评价,论坛消息回复,收货地址新增修改,修改商品信息
前台启动方式
安装所需文件 yarn install
运行 yarn run dev
示例代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| String openid = JSON.parseObject(res).get("openid").toString(); System.out.println("openid" + openid); Integer count = userInfoService.count(Wrappers.<UserInfo>lambdaQuery().eq(UserInfo::getOpenId, openid)); if (count > 0) { return R.ok(userInfoService.getOne(Wrappers.<UserInfo>lambdaQuery().eq(UserInfo::getOpenId, openid))); } else { user.setOpenId(openid); user.setCreateDate(DateUtil.formatDateTime(new Date())); user.setCode("U-"+new Date().getTime()); user.setType(1); userInfoService.save(user); return R.ok(user); }
|
1 2 3 4 5 6 7 8 9
| if (takeUser == userId) { messageInfoService.update(Wrappers.<MessageInfo>lambdaUpdate().set(MessageInfo::getTaskStatus, 1) .eq(MessageInfo::getTakeUser, takeUser).eq(MessageInfo::getSendUser, sendUser)); } else { messageInfoService.update(Wrappers.<MessageInfo>lambdaUpdate().set(MessageInfo::getTaskStatus, 1) .eq(MessageInfo::getTakeUser, sendUser).eq(MessageInfo::getSendUser, takeUser)); } return R.ok(messageInfoService.getMessageDetail(takeUser, sendUser));
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| SELECT DATE_FORMAT( spo.days, '%m-%d' ) AS days, COUNT( oi.`code` ) AS count, IFNULL( SUM( oi.price ), 0 ) AS orderPrice FROM ( SELECT DATE_SUB( curdate(), INTERVAL + 0 DAY ) days UNION SELECT DATE_SUB( curdate(), INTERVAL + 1 DAY ) UNION SELECT DATE_SUB( curdate(), INTERVAL + 2 DAY ) UNION SELECT DATE_SUB( curdate(), INTERVAL + 3 DAY ) UNION SELECT DATE_SUB( curdate(), INTERVAL + 4 DAY ) UNION SELECT DATE_SUB( curdate(), INTERVAL + 5 DAY ) UNION SELECT DATE_SUB( curdate(), INTERVAL + 6 DAY )) spo LEFT JOIN order_info oi ON ( DATE_FORMAT( oi.create_date, '%Y-%m-%d' ) = DATE_FORMAT( spo.days, '%Y-%m-%d' )) GROUP BY days ORDER BY days ASC
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| SELECT COUNT( 1 ) AS orderNum, IFNULL( SUM( oi.price ), 0 ) AS orderPrice, ui.avatar, ui.user_name, si.tag, si.introduction FROM order_info oi LEFT JOIN commodity_info ci ON ( ci.id = oi.commodity_id ) LEFT JOIN shop_info si ON ( si.id = ci.shop_id ) LEFT JOIN user_info ui ON ( ui.id = si.user_id ) WHERE 1 = 1 GROUP BY si.id
|
1 2 3 4 5 6 7 8 9 10 11 12 13
| SELECT COUNT( oi.commodity_id ) AS orderNum, IFNULL( SUM( oi.price ), 0 ) AS orderPrice, ci.`name` FROM order_info oi LEFT JOIN commodity_info ci ON ( ci.id = oi.commodity_id ) WHERE 1 = 1 AND DATE_FORMAT( oi.create_date, '%Y-%m' ) = DATE_FORMAT( NOW(), '%Y-%m' ) GROUP BY oi.commodity_id
|
默认后台账户密码
[管理员]
admin
1234qwer
项目截图
暂无
演示视频
项目视频:基于Spring小程序商城
获取方式
Email: fan1ke2ke@gmail.com
WeChat: Storm_Berserker
因为要恰饭资源非免费,伸手党勿扰,谢谢理解
接JAVAWEB毕设,纯原创,价格公道,诚信第一
More info: 悲伤的橘子树