作者主页:夜未央5788

简介:Java领域优质创作者、Java项目、学习资料、技术互助

文末获取源码

ssm超市进销存管理系统

项目介绍

超市进销存管理系统,主要分为管理员与员工两种角色:
管理员主要功能模块有:
进货管理:进货信息、退货信息;
商品信息管理:商品信息、商品类别;
库存管理:库存信息、库存预警、临期产品;
销售管理:销售信息、销售统计、顾客退货办理;
客户信息管理:客户信息;
供应商信息管理:供应商信息;
员工信息管理:员工信息;

员工主要功能有:
进货管理:进货信息、退货信息;
商品信息管理:商品信息、商品类别;
库存管理:库存信息、库存预警、临期产品;
销售管理:销售信息、顾客退货办理;
客户信息管理:客户信息;
供应商信息管理:供应商信息;

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA。注:该项目暂不支持Eclipse或者MyEclipse;
3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可
4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
5.是否Maven项目: 是;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven项目

6.数据库:MySql 5.7版本;

技术栈

1. 后端:Spring SpringMVC MyBatis

2. 前端:JSP+bootstrap+jQuery

使用说明

1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;

2. 将项目中db.properties与spring-mybatis.xml配置文件中的数据库配置改为自己的配置

3. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;

若为maven项目,导入成功后请执行maven clean;maven install命令,配置tomcat,然后运行;

4. 运行项目,在浏览器中输入localhost:8080/chaoshi 登录

注意事项

项目路径必须为localhost:8080/chaoshi,前端代码中已写死,否则会报错;

运行截图

相关代码

进货管理

package com.hbh.controller;import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hbh.entity.Ckin;
import com.hbh.service.imp.CkinServiceImp;/*** @Author Binvor* @Date 2019年3月27日下午3:28:51* @Des 进货管理*/
@Controller
@RequestMapping("/staff/flatform/ckin")
public class CkinController {@AutowiredCkinServiceImp ckinServiceImp;
//  获取所有进货信息@RequestMapping("getall")public String getlist(ModelMap model,@RequestParam(defaultValue="1",required=true,value="pn") Integer pn) {PageHelper.startPage(pn, 4);List<Ckin> ckin= ckinServiceImp.getall();PageInfo<Ckin> pageInfo=new PageInfo<Ckin>(ckin);model.addAttribute("pageInfo", pageInfo);return "getall_ckin";}
//  根据id查询单个信息@RequestMapping("/getckin")  public String getbyid(String inid,HttpServletRequest request,Model model){  request.setAttribute("ckin", ckinServiceImp.getbyid(inid));model.addAttribute("ckin",ckinServiceImp.getbyid(inid));  return "getckin";  }
//    根据条件查询/* @RequestMapping("/getwhere")  public String getwhere(String  id,String pname,String  type ,HttpServletRequest request,Model model){  request.setAttribute(" duct", ckinServiceImp.getbywhere( id, pname,  type));model.addAttribute(" duct",ckinServiceImp.getbywhere( id, pname,  type));  return "getlist";  }*/@RequestMapping("edit")public String edit(Ckin ckin,HttpServletRequest request,Model model){model.addAttribute("ckin", ckinServiceImp.getbyid(ckin.getInid()));return "editckin";} @RequestMapping("update")public String update(Ckin ckin,HttpServletRequest request,Model model){  if(ckinServiceImp.update(ckin)) {ckin=ckinServiceImp.getbyid(ckin.getInid());model.addAttribute("ckin", ckin);return "redirect:getall"; }return null;} @RequestMapping("/delete")  public String deletete(String inid,HttpServletRequest request,Model model){  ckinServiceImp.delete(inid);return "redirect:getall";  }
//  跳转到增加页面@RequestMapping("/toadd")  public String toadd (){  return "addckin";} @RequestMapping("/insert")
//    先判断数据库有没有,有就更新,没有就新增public String insert (Ckin  ckin,HttpServletRequest request,Model model){  if(null==ckinServiceImp.getbyid(ckin.getInid())) {ckinServiceImp.insert(ckin);         }else {ckinServiceImp.update(ckin);}return "redirect:getall";} @InitBinderprotected void init(HttpServletRequest request, ServletRequestDataBinder binder) {SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");dateFormat.setLenient(false);binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));}//    按条件获取所有进货信息@RequestMapping("getbyparams")public String getbyparams(HttpServletRequest request,Model model,@RequestParam(value="proid",required=false)String proid,@RequestParam(value="inid",required=false)String inid,@RequestParam(value="pname",required=false)String pname,@RequestParam(value="indate",required=false)String indate,@RequestParam(defaultValue="1",required=true,value="pn") Integer pn) {PageHelper.startPage(pn, 100);List<Ckin> ckin= ckinServiceImp.getbyparams(proid, inid, pname, indate);PageInfo<Ckin> pageInfo=new PageInfo<Ckin>(ckin);model.addAttribute("pageInfo", pageInfo);return "getckinbyparams";}}

CkretireController

package com.hbh.controller;import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hbh.entity.Ckin;
import com.hbh.entity.Ckretire;
import com.hbh.service.imp.CkinServiceImp;
import com.hbh.service.imp.CkretireServiceImp;/*** @Author Binvor* @Date 2019年3月28日上午9:42:09* @Des */
@Controller
@RequestMapping("/staff/flatform/ckretire")
public class CkretireController {@AutowiredCkretireServiceImp ckretireServiceImp;@AutowiredCkinServiceImp ckinServiceImp;//   获取所有退货信息@RequestMapping("getall")public String getlist(ModelMap model,@RequestParam(defaultValue="1",required=true,value="pn") Integer pn) {PageHelper.startPage(pn, 4);List<Ckretire> ckretire= ckretireServiceImp.getall();PageInfo<Ckretire> pageInfo=new PageInfo<Ckretire>(ckretire);model.addAttribute("pageInfo", pageInfo);return "getall_ckretire";}
//  根据id查询单个信息@RequestMapping("/getckretire")  public String getbyid(String inid,HttpServletRequest request,Model model){  request.setAttribute("ckretire", ckretireServiceImp.getbyid(inid));model.addAttribute("ckretire",ckretireServiceImp.getbyid(inid));  return "getckretire";  }
//    根据条件查询/* @RequestMapping("/getwhere")  public String getwhere(String  id,String pname,String  type ,HttpServletRequest request,Model model){  request.setAttribute(" duct", ckretireServiceImp.getbywhere( id, pname,  type));model.addAttribute(" duct",ckretireServiceImp.getbywhere( id, pname,  type));  return "getlist";  }*/@RequestMapping("edit")public String edit(Ckretire ckretire,HttpServletRequest request,Model model){model.addAttribute("ckretire", ckretireServiceImp.getbyid(ckretire.getInid()));return "editckretire";} @RequestMapping("update")public String update(Ckretire ckretire,HttpServletRequest request,Model model){  if(ckretireServiceImp.update(ckretire)) {ckretire=ckretireServiceImp.getbyid(ckretire.getInid());model.addAttribute("ckretire", ckretire);return "redirect:getall"; }return null;} @RequestMapping("/delete")  public String deletete(String inid,HttpServletRequest request,Model model){  ckretireServiceImp.delete(inid);return "redirect:getall";  }
//  跳转到增加页面@RequestMapping("/toadd")  public String toadd (){  return "addckretire";} @RequestMapping("/insert")
//    先判断数据库有没有,有就更新,没有就新增public String insert (Ckretire  ckretire,HttpServletRequest request,Model model){  if(null==ckretireServiceImp.getbyid(ckretire.getInid())) {ckretireServiceImp.insert(ckretire);         }else {ckretireServiceImp.update(ckretire);}return "redirect:getall";} @InitBinderprotected void init(HttpServletRequest request, ServletRequestDataBinder binder) {SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");dateFormat.setLenient(false);binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));}//    按条件获取所有进货信息@RequestMapping("getbyparams")public String getbyparams(HttpServletRequest request,Model model,@RequestParam(value="proid",required=false)String proid,@RequestParam(value="inid",required=false)String inid,@RequestParam(value="pname",required=false)String pname,@RequestParam(value="retdate",required=false)String retdate,@RequestParam(defaultValue="1",required=true,value="pn") Integer pn) {PageHelper.startPage(pn, 100);List<Ckretire> ckin= ckretireServiceImp.getbyparams(proid, inid, pname, retdate);PageInfo<Ckretire> pageInfo=new PageInfo<Ckretire>(ckin);model.addAttribute("pageInfo", pageInfo);return "getckretirebyparams";}//  根据id查询单个信息@RequestMapping("/getckret")  @ResponseBodypublic Ckin ckretire(String inid,HttpServletRequest request,Model model){  Ckin ckretire=new Ckin();ckretire= ckinServiceImp.getbyid(inid);return ckretire;  }}

CustomController

package com.hbh.controller;import java.util.List;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hbh.entity.Custom;
import com.hbh.entity.Product;
import com.hbh.entity.Type;
import com.hbh.entity.Custom;
import com.hbh.service.imp.CustomServiceImp;
import com.hbh.service.imp.CustomServiceImp;/*** @Author Binvor* @Date 2019年3月25日下午2:30:11* @Des  客户类别控制器*/
@Controller
@RequestMapping("/staff/flatform/custom")
public class CustomController {@AutowiredCustomServiceImp customServiceImp;//  跳转到增加页面@RequestMapping("/toadd")  public String toaddCustom(){  return "addcus";}
//  跳转到修改页面@RequestMapping("/toupdate")  public String editProduct(Custom custom,HttpServletRequest request,Model model){model.addAttribute("custom", customServiceImp.getByid(custom.getCusid()));return "editcus";}
//  先判断数据库有没有,有就更新,没有就新增@RequestMapping("/insert")  public String insert(Custom custom,HttpServletRequest request,Model model){  if(null==customServiceImp.getByid(custom.getCusid())) {customServiceImp.insert(custom);         }else {customServiceImp.update(custom);}return "redirect:getall";}
//    删除@RequestMapping("/delete")public String delete(String cusid) {customServiceImp.delete(cusid);return "redirect:getall";}
//    修改@RequestMapping("/update")public String update(Custom custom,HttpServletRequest request,Model model){if(customServiceImp.update(custom)) {custom=customServiceImp.getByid(custom.getCusid());model.addAttribute("custom", custom);return "redirect:getall"; }return null;}//    查询所有@RequestMapping("/getall")public String getall_cus(ModelMap model,@RequestParam(defaultValue="1",required=true,value="pn") Integer pn) {PageHelper.startPage(pn, 4);List<Custom> Customs= customServiceImp.getlist();PageInfo<Custom> pageInfo=new PageInfo<Custom>(Customs);model.addAttribute("pageInfo", pageInfo);return "getall_cus";}
//  查询单个@RequestMapping("/getbyid")public String getbyid(String cusid,HttpServletRequest request,Model model) {request.setAttribute("custom", customServiceImp.getByid(cusid));model.addAttribute("custom",customServiceImp.getByid(cusid));  return "getall"; }//根据条件查询@RequestMapping("getbyparams")public String getbyparams(@RequestParam(value="cusid",required=false)String cusid,@RequestParam(value="cusname",required=false)String cusname,@RequestParam(defaultValue="1",required=true,value="pn") Integer pn,HttpServletRequest request,Model model) {PageHelper.startPage(pn, 100);List<Custom> customs= customServiceImp.getbyparams(cusid, cusname);PageInfo<Custom> pageInfo=new PageInfo<Custom>(customs);model.addAttribute("pageInfo", pageInfo);return "getcustombyparams";}
}

如果也想学习本系统,下面领取。关注并回复:009ssm

Java项目:ssm超市进销存管理系统相关推荐

  1. java项目-第153期ssm超市进销存管理系统-ssm毕业设计-计算机毕业设计

    java项目-第153期ssm超市进销存管理系统-ssm毕业设计-计算机毕业设计 [源码请到资源专栏下载] 今天分享的项目是<ssm超市进销存管理系统> 该项目分为3个角色,管理员.用户. ...

  2. Java编写的超市进销存管理系统 功能非常齐全,代码可直接运行

    今天为大家分享一个java语言的超市进销存管理系统,目前系统已经完成了初步功能,后续会进一步完善.整个系统界面漂亮,有完整得源码,希望大家可以喜欢.喜欢的帮忙点赞和关注.一起编程.一起进步 开发环境 ...

  3. [附源码]java毕业设计校园超市进销存管理系统

    项目运行 环境配置: Jdk1.8 + Tomcat7.0 + Mysql + HBuilderX(Webstorm也行)+ Eclispe(IntelliJ IDEA,Eclispe,MyEclis ...

  4. Java、JSP超市进销存管理系统

    技术:Java.JSP等 摘要:在当今社会,科技已经深入到人们生活的方方面面,各种管理系统大大方便了人们的生活及工作,各种传统管理模式都已经开始适应时代,进行了改革与创新,为了更好的发展,纷纷开发适合 ...

  5. 基于javaweb的超市进销存管理系统(java+ssm+jsp+bootstrap+jquery+mysql)

    基于javaweb的超市进销存管理系统(java+ssm+jsp+bootstrap+jquery+mysql) 运行环境 Java≥8.MySQL≥5.7.Tomcat≥8 开发工具 eclipse ...

  6. 基于Spring+SpringMVC+MyBatis超市进销存管理系统

    基于SSM超市进销存管理系统 一.系统介绍 二.功能展示 1.进货信息 2.退货信息 3.商品信息 4.商品类别 5.库存信息 6.库存预警 7.临期商品 8.销售信息 9.客户退货信息 10.客户信 ...

  7. 【Java项目:基于java+ssm生鲜超市进销存管理系统——计算机毕业设计

    目前超市越来越多,越来越普及,如何高效的管理经营超市才是成功的关键,其中对于中小型超市来说,在降低成本的前提下使用最有效的管理方式是非常重要的,所以开发中小型超市管理系统既考虑了成本相对较低又非常实用 ...

  8. 计算机毕业设计之java+ssm生鲜超市进销存管理系统

    项目介绍 目前超市越来越多,越来越普及,如何高效的管理经营超市才是成功的关键,其中对于中小型超市来说,在降低成本的前提下使用最有效的管理方式是非常重要的,所以开发中小型超市管理系统既考虑了成本相对较低 ...

  9. java生鲜超市进销存管理系统SSM框架

    目前超市越来越多,越来越普及,如何高效的管理经营超市才是成功的关键,其中对于中小型超市来说,在降低成本的前提下使用最有效的管理方式是非常重要的,所以开发中小型超市管理系统既考虑了成本相对较低又非常实用 ...

最新文章

  1. RDKit | 化合物库的相似性分析
  2. 设备树下字符设备驱动
  3. Event ID 5553 failure trying to synch sitexxxx for ContentDB xx WebApp xx. Exception message ...
  4. leetcode-剑指 Offer 44. 数字序列中某一位的数字
  5. 案例:规则引擎Drools解决汽水问题
  6. python 数据挖掘论文_基于python的WEB数据挖掘技术实现与研究
  7. 傲腾会是NAND的接班人么?
  8. Linux基础知识以及常见面试问题
  9. 计算某天是星期几-泽勒算法
  10. GCC Manual
  11. matlab图论软件包,MATLAB_bgl_toolbox 图论通用工具箱总汇:GraphTheory for St 247万源代码下载- www.pudn.com...
  12. SCI、EI和IEEE有什么区别
  13. C++实现小写转大写
  14. 【排序算法】快速排序的分析改进
  15. zimbra 证书过期--zimbra使用
  16. 开游戏服务器要选择什么样的?
  17. 这应该是最全面的MySQL知识点总结啦
  18. 考研调剂信息爬取,以“小木虫”为例
  19. android xposed如何写,安卓Hook系列教程(一):xposed模块开发环境搭建
  20. asp.net监听输入框值的即时变化onpropertychange、oninput

热门文章

  1. utools,一款提高办公效率软件
  2. 【炼丹术士的从零开始的安卓开发】Day1 项目结构与一些控件的学习
  3. 学习进度安排表(13/12/2——13/12/8)
  4. Linux基础命令详解
  5. 流浪宠物救助网站前端页面_基于SSM(spring+spring mvc+mybatis)开发流浪宠物(猫狗)救助系统,项目为maven项目,后台可配置化,系统可学习性高。...
  6. 印度批准苹果和三星1430亿美元的智能手机制造计划
  7. 联想笔记本不显示电量百分比 lenovobatterygaugepackage.dll
  8. Target-Action
  9. AcrelCloud-1000电力运维云平台,开启电力系统“无人值班、少人值守”新模式
  10. 广州python就业培训机构