SpringBoot 微信小程序 二手汽车交易系统 二手手机交易系统

二手汽车交易系统 二手手机交易系统 功能介绍

微信小程序: 微信授权登录 主页图片轮播 新品推荐 优惠券 猜您喜欢 分类展示 商品详情 加入购物车 立即购买 购物车 结算提交订单 我的订单(待付款 待发货 待收货 待评价) 收货地址管理 我的优惠券 我的积分

后台管理: 登录 验证码 首页统计图

系统管理: 系统用户管理 角色管理 菜单管理 部门管理 日志管理 系统监控管理 地图管理 文件管理

商城(汽车或手机)管理: 汽车信息管理 分类管理 库存管理 商城设置 轮播图管理 积分管理 订单管理 营销(优惠券)管理 我的帮助 评论管理

微信管理: 接口管理

角色:微信用户 超级管理员 系统管理员 商城管理员

使用技术

  • SpringBoot框架

  • Mybaits

  • Mysql数据库

  • shiro(权限)

  • 微信小程序

  • html(freemarker)后台管理

功能展示








文件管理FileController.java

package com.mall.modules.system.controller;import java.io.File;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.bean.Rest;
import com.mall.common.constant.Constants;
import com.mall.common.utils.JsonUtils;
import com.mall.common.utils.PropertiesUtil;
import com.mall.common.utils.idwork.DistributedIdWorker;
import com.mall.modules.common.BaseController;
import com.mall.modules.oss.OssFactory;
import com.mall.modules.system.entity.SysUploadFile;
import com.mall.modules.system.service.ISysConfigService;
import com.mall.modules.system.service.ISysUploadFileService;
import com.mall.modules.system.vo.ConfigStorageVo;@Controller
@RequestMapping("/system/sysfile")
public class FileController extends BaseController {@Autowiredprivate ISysUploadFileService uploadFileService;@Autowiredprivate ISysConfigService configService;/*** 列表页*/@RequiresPermissions("listFile")@RequestMapping("/list")public String list() {return "system/sysfile/list";}@RequiresPermissions("listFile")@PostMapping("/listPage")@ResponseBodypublic Rest listPage(String search, Integer start, Integer length) {Integer pageIndex = start / length + 1;Rest resultMap = new Rest();Page<SysUploadFile> page = getPage(pageIndex, length);// 查询分页QueryWrapper<SysUploadFile> ew = new QueryWrapper<SysUploadFile>();if (StringUtils.isNotBlank(search)) {ew.like("roleName", search);}ew.orderByDesc("createTime");IPage<SysUploadFile> pageData = uploadFileService.page(page, ew);resultMap.put("iTotalDisplayRecords", pageData.getTotal());resultMap.put("iTotalRecords", pageData.getTotal());resultMap.put("aaData", pageData.getRecords());return resultMap;}@RequiresPermissions("addFile")@PostMapping("/upload")@ResponseBodypublic Rest uploadImageFile(MultipartFile file) throws Exception {try {if (file.isEmpty()) {return Rest.failure("请选择文件!");} else {SysUploadFile fileResult = Objects.requireNonNull(OssFactory.init()).uploadFile(file, true);fileResult.setFileId(DistributedIdWorker.nextId());fileResult.setGroupId(0L);uploadFileService.save(fileResult);return Rest.ok("上传成功");}} catch (Exception e) {logger.error("文件上传失败", e);return Rest.failure("服务器异常请联系管理员!");}}@RequiresPermissions("deleteFile")@PostMapping("/delete")@ResponseBodypublic Rest delete(String id) {String[] idArry = id.split(",");List<SysUploadFile> files = (List<SysUploadFile>) uploadFileService.listByIds(Arrays.asList(idArry));for (SysUploadFile file : files) {Objects.requireNonNull(OssFactory.init(file.getOssType())).delete(file.getFilePath());}uploadFileService.removeByIds(Arrays.asList(idArry));return Rest.ok("删除文件成功");}@GetMapping(value = "/setStorage")public String setConfig(Model model) {String json = configService.selectAll();ConfigStorageVo configStorageVo = JsonUtils.jsonToBean(json, ConfigStorageVo.class);String workDir = PropertiesUtil.getString(Constants.WORK_DIR_KEY);model.addAttribute("workDir", workDir.endsWith(File.separator) ? workDir : workDir + File.separator);model.addAttribute("storageConfig", configStorageVo);return "system/sysfile/config";}}

运行

创建数据库, 然后修改数据库连接相关信息。

启动 Springboot 类的main方法

访问地址:http://localhost:8080/

超级管理员账号:admin 密码:123456

SpringBoot 微信小程序 二手汽车交易系统 二手手机交易系统相关推荐

  1. 微信小程序之校园二手交易系统app毕业设计ssm

    微信小程序之校园二手交易系统app毕业设计ssm

  2. SpringBoot微信小程序授权登录

    SpringBoot微信小程序授权登录 一.appId 1.1.自己是管理者:微信公众平台,申请或登录自己的微信小程序,在开发者管理中即可看到 2.2.自己是开发者:让管理员将自己加入到小程序开发者管 ...

  3. 基于SpringBoot+微信小程序的壁纸小程序

    基于SpringBoot+微信小程序的壁纸小程序 ✌全网粉丝20W+,csdn特邀作者.博客专家.CSDN新星计划导师.java领域优质创作者,博客之星.掘金/华为云/阿里云/InfoQ等平台优质作者 ...

  4. 微信小程序二手汽车拍卖系统丨可以android studio运行

    <微信小程序二手汽车拍卖系统+后台管理系统|前后分离VUE>该项目含有源码.论文等资料.配套开发软件.软件安装教程.项目发布教程等 本系统包含微信小程序前台和Java做的后台管理系统,该后 ...

  5. 基于springboot微信小程序支付功能实现

    基于springboot微信小程序支付功能实现 简单的封装微信小程序支付功能,支付工具类所依赖的fastjson.lombok.wagegger, 1.添加maven依赖: 版本号可根据自己项目的实际 ...

  6. (附源码)基于springboot微信小程序的长沙县图书馆图书导览系统 毕业设计 170900

    基于springboot微信小程序的长沙县图书馆图书导览系统 摘  要 随着我国经济迅速发展,人们对手机的需求越来越大,各种手机软件也都在被广泛应用,但是对于手机进行数据信息管理,对于手机的各种软件也 ...

  7. springboot+微信小程序老年人健康保障管理系统毕业设计源码302303

    基于springboot微信小程序的老年人健康保障管理系统 摘  要 随着我国经济迅速发展,人们对手机的需求越来越大,各种手机软件也都在被广泛应用,但是对于手机进行数据信息管理,对于手机的各种软件也是 ...

  8. 精品微信小程序二手汽车拍卖系统+后台管理系统|前后分离VUE

    <微信小程序二手汽车拍卖系统+后台管理系统|前后分离VUE>该项目含有源码.论文等资料.配套开发软件.软件安装教程.项目发布教程等 本系统包含微信小程序前台和Java做的后台管理系统,该后 ...

  9. 基于SpringBoot+微信小程序的失物招领小程序

    基于SpringBoot+微信小程序的失物招领小程序 ✌全网粉丝20W+,csdn特邀作者.博客专家.CSDN新星计划导师.java领域优质创作者,博客之星.掘金/华为云/阿里云/InfoQ等平台优质 ...

最新文章

  1. 分布式任务调度平台XXL-JOB本地配置可能遇到的问题和解决方案
  2. Android开发常用开源框架:图片处理
  3. mysql 1045错误ODBC_MySQL ERROR 1045 (28000) 错误的解决办法
  4. 转载 从算法上解读自动驾驶是如何实现的?
  5. VS2008中OGRE1.7.4下配置Hydrax-v0.5.1插件
  6. (转) windows 下ORA-12514:TNS 监听问题
  7. 做个简单的Java学生考勤系统04--签到功能的开发
  8. Xcode打包IPA包
  9. Lync Server 服务器版本升级
  10. 09.第十章.项目沟通和干系人管理
  11. 一名高级软件测试工程师,需要具备哪些能力
  12. css3直线运动_纯css3动画--边框线条动画
  13. 对学术不怎么热爱,只想当大学老师而去读博可以么?
  14. 2021.1.15——星露谷作物计算器的小改进
  15. SQL/PL SQL
  16. 科技爱好者周刊(第 202 期):三个有启发的学习方法
  17. tcping : ping ip地址+端口号
  18. Mysql命令行导出远程mysql数据库到虚拟机本地的mysql中
  19. mysql企业备份工具(MEB)之mysqlbackup安装及使用
  20. Linux CFS调度算法关键知识点

热门文章

  1. 一个读取C#特性Description方法(zhuan)
  2. 爱征信,就是爱自己 | 征信真的能“洗白”吗?
  3. 计算机硕士研究生 下一代互联网技术与应用,清华大学出版社-图书详情-《计算机网络与下一代互联网》...
  4. CSS按钮样式,带代码传送门
  5. Android 之onFinishInflate
  6. 目标检测YOLO实战应用案例100讲-基于深度学习的无人机目标检测算法轻量化研究
  7. Jasper报表制作
  8. 在 Microsoft Office Word 中如何删除括号和括号内的文字
  9. video视频自适应缩放显示
  10. 国内保险业供给侧改革进行时,中国平安如何应对转型压力?