1.技术介绍
java+springmvc+spring+Mybatis+mysql+jsp
开发工具:eclipse或IDEA
2.主要功能说明:
用户登录、汽车首页浏览、个人信息、我的订单、收藏、地址管理、下单、支付、用户管理、商品管理、订单管理、活动管理
3.部分代码展示:

/车辆商品管理
@Controller
@RequestMapping("/admin/goods")
public class GoodsController {@Autowiredprivate GoodsService goodsService;@RequestMapping("/showjson")@ResponseBodypublic Msg getAllGoods(@RequestParam(value = "page", defaultValue = "1") Integer pn, HttpServletResponse response, Model model, HttpSession session) {Admin admin = (Admin) session.getAttribute("admin");if (admin == null) {return Msg.fail("请先登录");}//一页显示几个数据PageHelper.startPage(pn, 10);List<Goods> employees = goodsService.selectByExample(new GoodsExample());//显示几个页号PageInfo page = new PageInfo(employees, 5);model.addAttribute("pageInfo", page);return Msg.success("查询成功!").add("pageInfo", page);}@RequestMapping("/show")public String goodsManage(@RequestParam(value = "page",defaultValue = "1") Integer pn, HttpServletResponse response, Model model, HttpSession session) throws IOException {Admin admin = (Admin) session.getAttribute("admin");if (admin == null) {return "redirect:/admin/login";}List<Category> categoryList = cateService.selectByExample(new CategoryExample());model.addAttribute("categoryList",categoryList);return "adminAllGoods";}@RequestMapping("/add")public String showAdd(@ModelAttribute("succeseMsg") String msg, Model model, HttpSession session) {Admin admin = (Admin) session.getAttribute("admin");if (admin == null) {return "redirect:/admin/login";}if(!msg.equals("")) {model.addAttribute("msg", msg);}List<Category> categoryList = cateService.selectByExample(new CategoryExample());model.addAttribute("categoryList",categoryList);//还需要查询分类传给addGoods页面return "addGoods";}@RequestMapping(value = "/update", method = RequestMethod.POST)@ResponseBodypublic Msg updateGoods(Goods goods, HttpSession session) {Admin admin = (Admin) session.getAttribute("admin");if (admin == null) {return Msg.fail("请先登录");}/* goods.setGoodsid(goodsid);*/goodsService.updateGoodsById(goods);return Msg.success("更新成功!");}@RequestMapping(value = "/delete/{goodsid}", method = RequestMethod.DELETE)@ResponseBodypublic Msg deleteGoods(@PathVariable("goodsid")Integer goodsid) {goodsService.deleteGoodsById(goodsid);return Msg.success("删除成功!");}@RequestMapping("/addGoodsSuccess")public String addGoods(Goods goods,@RequestParam MultipartFile[] fileToUpload,HttpServletRequest request,HttpServletResponse response,RedirectAttributes redirectAttributes) throws IOException {/*goods.setCategory(1);*/goods.setUptime(new Date());goods.setActivityid(1);goodsService.addGoods(goods);for(MultipartFile multipartFile:fileToUpload){if (multipartFile != null){String realPath = request.getSession().getServletContext().getRealPath("/");String realPath1 = request.getContextPath();System.out.println(realPath);System.out.println(realPath1);//图片路径=项目在本地磁盘的路径\shop\target\shop\shopimageString imageName = multipartFile.getOriginalFilename();System.out.println(multipartFile.getOriginalFilename());//  String imagePath = realPath.substring(0,realPath.indexOf("shop")) + "shopimage" + imageName;String imagePath = realPath + "shopimage\\" + imageName;//负载均衡时使用的图片路径
//                String imagePath = "D:\\Code\\Apache-Tomcat-v8.0\\webapps\\shopimage\\" + imageName;
//                String imagePath = UUID.randomUUID().toString().replace("-", "") + multipartFile.getOriginalFilename();//把图片路径存入数据库中goodsService.addImagePath(new ImagePath(null, goods.getGoodsid(),imageName));//存图片multipartFile.transferTo(new File(imagePath));}}redirectAttributes.addFlashAttribute("succeseMsg","商品添加成功!");return "redirect:/admin/goods/add";}@RequestMapping("/addCategory")public String addcategory(@ModelAttribute("succeseMsg") String msg, Model model, HttpSession session) {Admin admin = (Admin) session.getAttribute("admin");if (admin == null) {return "redirect:/admin/login";}CategoryExample categoryExample = new CategoryExample();categoryExample.or();List<Category> categoryList;categoryList = cateService.selectByExample(categoryExample);model.addAttribute("categoryList", categoryList);if (!msg.equals("")) {model.addAttribute("msg", msg);}return "addCategory";}@Autowiredprivate CateService cateService;@RequestMapping("/addCategoryResult")public String addCategoryResult(Category category,Model addCategoryResult,RedirectAttributes redirectAttributes){List<Category> categoryList=new ArrayList<Category>();CategoryExample categoryExample=new CategoryExample();categoryExample.or().andCatenameEqualTo(category.getCatename());categoryList=cateService.selectByExample(categoryExample);if (!categoryList.isEmpty()){redirectAttributes.addAttribute("succeseMsg","分类已存在");return "redirect:/admin/goods/addCategory";}else {cateService.insertSelective(category);redirectAttributes.addFlashAttribute("succeseMsg","分类添加成功!");return "redirect:/admin/goods/addCategory";}}@RequestMapping("/saveCate")@ResponseBodypublic Msg saveCate(Category category){CategoryExample categoryExample=new CategoryExample();categoryExample.or().andCatenameEqualTo(category.getCatename());List<Category> categoryList=cateService.selectByExample(categoryExample);if (categoryList.isEmpty()){cateService.updateByPrimaryKeySelective(category);return Msg.success("更新成功");}else return Msg.success("名称已经存在");}@RequestMapping("/deleteCate")@ResponseBodypublic Msg deleteCate(Category category){cateService.deleteByPrimaryKey(category.getCateid());return Msg.success("删除成功");}
}

4.系统演示地址:
链接:https://pan.baidu.com/s/1j_e-xlOoe1-gZq4uUoFo-A
提取码:ndds

SSM_jsp实现汽车销售管理系统相关推荐

  1. 【论文写作】汽车销售管理系统的设计与开发引言参考

    1 引言 汽车工业经历了一百多年的发展,对国家经济的发展和腾飞以及对人类社会的文明带来了巨大影响.汽车工业已成为许多国家的支柱产业,随着人们生活水平以及汽车性能的不断提高,人们对汽车的消费和需求也越来 ...

  2. asp.net师电子化信息库的设计与实现(源代码+论文)ASP.NET汽车销售管理系统的设计与开发(源代码+论文)

    asp.net师电子化信息库的设计与实现(源代码+论文)ASP.NET汽车销售管理系统的设计与开发(源代码+论文) 随着人们生活水平的不断提高,人们对汽车的消费和需求也越来越旺盛.很多汽车销售公司的业 ...

  3. 汽车销售管理系统数据库的设计与实现

    目录 1.设计任务 1.1系统开发的背景 1.2系统开发的意义 1.3系统所应用的模块 2.需求分析 2.1功能分析 2.2数据流图 2.3数据字典 3.概念结构设计 4.逻辑结构设计 5.物理结构设 ...

  4. 汽车销售软件制作C语言,汽车销售管理系统 C语言版.doc

    . . 西安郵電大學 C语言课程设计报告 题 目:汽车销售管理系统 院系名称: 专业名称: 班 级: 学生姓名: 学号(8位): 指导教师: 设计起止时间: 设计目的 1. 对c语言基本知识的巩固和综 ...

  5. 汽车销售管理系统 c语言版 课程设计,汽车销售管理系统c语言版.docx

    Document serial number[NL89WT-NY98YT-NC8CB-NNUUT-NUT108] Document serial number[NL89WT-NY98YT-NC8CB- ...

  6. 汽车销售管理系统 c语言版 课程设计,汽车销售管理系统C语言版.doc

    实用文档 文案大全 西安郵電大學 C语言课程设计报告 题 目:汽车销售管理系统 院系名称: 专业名称: 班 级: 学生姓名: 学号(8位): 指导教师: 设计起止时间: 设计目的 1. 对c语言基本知 ...

  7. Java、JSP汽车销售管理系统的设计与实现

    技术:Java.JSP等 摘要: 汽车工业的迅速兴起,给人们的日常生活以及各个国家的经济的发展带来了相当大的影响.以往人们不得不行走于各个商店之间,来采购自己中意的物品,但是随时代生活节奏的变快,越来 ...

  8. python基础课程设计项目_python基础课程设计《汽车销售管理系统》

    程序使用说明(该博客图片水印为改名前所加故与博客昵称不同) 该程序为汽车销售管理系统,可通过功能7实现对车库文件内(文件CarMessage.txt)车辆车辆的查看:如果有新车将要进入车库则会使用到功 ...

  9. 计算机毕业设计-ssm+vue汽车销售管理系统-汽车商城(前后端分离)java代码

    计算机毕业设计-ssm+vue汽车销售管理系统-汽车商城(前后端分离)java代码 注意:该项目只展示部分功能,如需了解,评论区咨询即可. 1.开发环境 开发语言:Java 设计模式:MVC 架构:B ...

最新文章

  1. Activity如何后台运行?不是缓存,是运行。
  2. python批量合并csv_Python合并多个csv文件
  3. 会python可以从事什么工作-Python入门后,想要从事自由职业可以做哪方面工作?...
  4. 再战FGM!Tensorflow2.0 自定义模型训练实现NLP中的FGM对抗训练 代码实现
  5. linux centos根据工具查找所在软件包命令:yum provides */nslookup
  6. Zuul网关原理及源码解读(草稿版)
  7. 利用ionic3进行上一行和左一行不动,中间移动的功能
  8. 「拨云见日」英特尔揭秘短视频背后的二三事
  9. 苹果将允许iPhone直接使用NFC接受信用卡付款
  10. 每日java制作小工具_制作Java小工具并在命令行中执行
  11. apache maven安装教程
  12. java 代码块 构造函数_Java学习笔记之------构造函数,静态关键字,静态代码块,构造代...
  13. linux连接一加手机,How To Build CyanogenMod Android (oneplus/bacon) On Linux
  14. Java 判断对象是否所有属性为空
  15. 说几句得罪人的大实话
  16. Android中访问sdcard路径的几种方式
  17. memcpy内存拷贝和=直接赋值有什么区别
  18. Apache Spark3.0什么样?一文读懂Apache Spark最新技术发展与展望
  19. layui表单离焦验证
  20. label和velodyne数据通过mayavi在点云图上画3D标注框并可视化

热门文章

  1. Mac上安装flink笔记
  2. Springboot跨域配置报错:When allowCredentials is true, allowedOrigins cannot contain the specia
  3. Centos7系统下部署Gitlab+Jenkins+Docker 实现自动化部署项目
  4. .dat文件写入byte类型数组_Go语言学习基础-读文件、写文件、行过滤器
  5. 1N4148、1N5819、1N4007的区别
  6. 80道前端面试经典选择题
  7. 北京大学|北京大学介绍|北京大学简介
  8. antdvue上传组件onChange状态值为uploading的问题
  9. TabLayout自定义指示器及样式
  10. 世纪大学计算机专业,世纪大学本科计算机专业教学改革研讨会暨年计算机专业核心课程 (21页)-原创力文档...