SSM+mysql实现的汽车销售管理系统(角色权限分离,功能:采购申请、仓储入库、车辆出库、车辆入库、登录、客户管理、汽车销售柱状统计、销售统计、组织结构管理)
博客目录
- SSM汽车销售管理系统
- 实现功能截图
- 系统功能
- 使用技术
- 代码
- 写在最后
SSM汽车销售管理系统
本系统是解决了汽车销售领域品类针对性管理的问题,通过组织角色权限分离,采购入库出库等业务设计,很好的满足了企业销售的场景需求。
实现功能截图
登录
主页
可视化图表统计
采购申请
仓储仓库
车辆入库出库
客户管理
汽车品牌赠品管理
组织权限管理
系统功能
本汽车销售管理系统实现了以下功能:
1、登录注册
2、仓储管理
3、汽车出入库管理
4、汽车品牌管理
5、赠品管理
6、客户管理
7、可视化图表统计
8、组织权限管理
使用技术
数据库:mysql
开发工具:Eclipse(Myeclispe、Idea也可以)
知识点:SSM
本系统采用MVC的思想:将项目包分为entity/dao/service/control层,代码结构清晰
代码
实体类层
CardetailEntity.java
package com.svse.entity;import java.io.Serializable;public class CardetailEntity implements Serializable {private int detailid;private String detailname;private int sortid;private String detailguige;private String detailtime;private String detailremark;private int detailflag;private String flag;public String getFlag() {return flag;}public void setFlag(String flag) {this.flag = flag;}private CarsortEntity sort=new CarsortEntity();public int getDetailid() {return detailid;}public void setDetailid(int detailid) {this.detailid = detailid;}public String getDetailname() {return detailname;}public void setDetailname(String detailname) {this.detailname = detailname;}public int getSortid() {return sortid;}public void setSortid(int sortid) {this.sortid = sortid;}public String getDetailguige() {return detailguige;}public void setDetailguige(String detailguige) {this.detailguige = detailguige;}public String getDetailtime() {return detailtime;}public void setDetailtime(String detailtime) {this.detailtime = detailtime;}public String getDetailremark() {return detailremark;}public void setDetailremark(String detailremark) {this.detailremark = detailremark;}public int getDetailflag() {return detailflag;}public void setDetailflag(int detailflag) {this.detailflag = detailflag;}public CarsortEntity getSort() {return sort;}public void setSort(CarsortEntity sort) {this.sort = sort;}}
CustomEntity.java
package com.svse.entity;import java.io.Serializable;public class CustomEntity implements Serializable {private int customid;private int mid;private String customname;private String customtel;private String mname;private String mrealname;public String getMrealname() {return mrealname;}public void setMrealname(String mrealname) {this.mrealname = mrealname;}public String getMname() {return mname;}public void setMname(String mname) {this.mname = mname;}public int getCustomid() {return customid;}public void setCustomid(int customid) {this.customid = customid;}public int getMid() {return mid;}public void setMid(int mid) {this.mid = mid;}public String getCustomname() {return customname;}public void setCustomname(String customname) {this.customname = customname;}public String getCustomtel() {return customtel;}public void setCustomtel(String customtel) {this.customtel = customtel;}}
dao层
CardetailDAOI.java
package com.svse.dao;import java.util.List;import com.svse.entity.CardetailEntity;public interface CardetailDAOI {// 添加public void add(CardetailEntity cardetail);// 修改public void upp(CardetailEntity cardetail);// 全查询public List<CardetailEntity> alldetail(int begin,int pages);public List<CardetailEntity> all();// 查询单个public CardetailEntity one(int detailid);//所有记录public int count();public List<CardetailEntity> allbysort(int sortid);
}
CustomDAOI.java
package com.svse.dao;import java.util.List;import com.svse.entity.CustomEntity;public interface CustomDAOI {//添加public void add(CustomEntity custom);//全查询public List<CustomEntity> all(int mid);public List<CustomEntity> all1(int offset, int limit);//所有记录public int count();//判断重复public int repeat(CustomEntity custom);public List<CustomEntity> limit1(int offset, int limit, int pid);public int count1(int pid);//权限public List<CustomEntity> limit2(int offset, int limit, int mid);public List<CustomEntity> alllimit(int mid);public int count2(int mid);public List<CustomEntity> getall();}
service层
CardetailImpl.java
package com.svse.impl;import java.util.List;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import com.svse.dao.CardetailDAOI;
import com.svse.entity.CardetailEntity;
import com.svse.service.CardetailService;@Service
public class CardetailImpl implements CardetailService{@Autowiredprivate CardetailDAOI daoi;@Overridepublic void addCardetail(CardetailEntity cardetail) {this.daoi.add(cardetail);}@Overridepublic void uppCardetail(CardetailEntity cardetail) {this.daoi.upp(cardetail);}@Overridepublic List<CardetailEntity> getAllCardetail(int begin, int pages) {List<CardetailEntity> ar=this.daoi.alldetail(begin, pages);for (CardetailEntity d : ar) {if(d.getDetailflag()==1){d.setFlag("正常");}else{d.setFlag("停产");}}return ar;}@Overridepublic CardetailEntity getOneCardetail(int detailid) {return this.daoi.one(detailid);}@Overridepublic int Count() {return this.daoi.count();}@Overridepublic List<CardetailEntity> getAllCardetail() {return this.daoi.all();}@Overridepublic List<CardetailEntity> getAllBySort(int sortid) {return this.daoi.allbysort(sortid);}}
CustomImpl.java
package com.svse.impl;import java.util.List;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import com.svse.dao.CustomDAOI;
import com.svse.entity.CustomEntity;
import com.svse.service.CustomService;
@Service
public class CustomImpl implements CustomService {@Autowiredprivate CustomDAOI daoi;@Overridepublic void addCustom(CustomEntity custom) {this.daoi.add(custom);}@Overridepublic List<CustomEntity> getAlls(int mid) {return this.daoi.all(mid);}@Overridepublic List<CustomEntity> getAll(int offset, int limit) {return this.daoi.all1(offset,limit);}@Overridepublic int count() {return this.daoi.count();}@Overridepublic int repeat(CustomEntity custom) {return this.daoi.repeat(custom);}@Overridepublic List<CustomEntity> getLimit1(int offset, int limit, int pid) {return this.daoi.limit1(offset,limit,pid);}@Overridepublic List<CustomEntity> getLimit2(int offset, int limit, int mid) {return this.daoi.limit2(offset,limit,mid);}@Overridepublic int count1(int pid) {return this.daoi.count1(pid);}@Overridepublic int count2(int mid) {return this.daoi.count2(mid);}@Overridepublic List<CustomEntity> getAll(int mid) {return this.daoi.alllimit(mid);}@Overridepublic List<CustomEntity> getAll() {return this.daoi.getall();}}
controller层
CardetailControl.java
package com.svse.control;import java.util.ArrayList;
import java.util.List;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;import com.svse.entity.CardetailEntity;
import com.svse.entity.CarsortEntity;
import com.svse.service.CardetailService;
import com.svse.service.CarsortService;import net.sf.json.JSONObject;@Controller
@RequestMapping("cardetail.do")
public class CardetailControl {@Autowiredprivate CardetailService cdserv;@Autowiredprivate CarsortService sserv;// 添加@RequestMapping(params = "method=add")@ResponseBodypublic int addsort(CardetailEntity detail) {this.cdserv.addCardetail(detail);return 1;}// 弹窗修改@RequestMapping(params = "method=upp")@ResponseBodypublic int uppsort(CardetailEntity detail) {this.cdserv.uppCardetail(detail);return 1;}// 全查询@RequestMapping(params="method=all")@ResponseBodypublic JSONObject all(int limit,int offset){//共有多少条int count=this.cdserv.Count();//分页查询List<CardetailEntity> ar=this.cdserv.getAllCardetail(offset, limit);JSONObject obj=new JSONObject();obj.put("rows", ar);obj.put("total", count);return obj;}//全查询@RequestMapping(params="method=alls")@ResponseBodypublic List<CardetailEntity> all(){List<CardetailEntity> ar=this.cdserv.getAllCardetail();return ar;}//根据品牌查询系列@RequestMapping(params="method=allsort")@ResponseBodypublic List<CardetailEntity> all(int sortid){List<CardetailEntity> ar=this.cdserv.getAllBySort(sortid);
// if(ar.size()==0){// CardetailEntity car=new CardetailEntity();
// car.setDetailid(0);
// car.setDetailname("--该品牌下无产品--");
// car.setDetailguige("");
// ar.add(car);
// }return ar;}// 查询单个@RequestMapping(params = "method=one")@ResponseBodypublic List getOnesort(int detailid) {List ar = new ArrayList();CardetailEntity detail = this.cdserv.getOneCardetail(detailid);detail.setSortid(detail.getSort().getSortid());List<CarsortEntity> ars=this.sserv.getAllCarsort();ar.add(detail);for (CarsortEntity c : ars) {ar.add(c);}return ar;}}
CustomControl.java
package com.svse.control;import java.util.List;import javax.servlet.http.HttpSession;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;import com.svse.entity.ActionsEntity;
import com.svse.entity.CustomEntity;
import com.svse.entity.MasterEntity;
import com.svse.service.CustomService;
import com.svse.util.MyPages;import net.sf.json.JSONObject;@Controller
@RequestMapping("custom.do")
public class CustomControl {@Autowiredprivate CustomService cserv;// 添加@RequestMapping(params = "method=add")@ResponseBodypublic int addcustom(CustomEntity custom, HttpSession session) {MasterEntity m = (MasterEntity) session.getAttribute("master");custom.setMid(m.getMid());this.cserv.addCustom(custom);return 1;}// 全查询@RequestMapping(params = "method=all")@ResponseBodypublic JSONObject all(int limit, int offset) {// 共有多少条int count = this.cserv.count();// 分页查询List<CustomEntity> ar = this.cserv.getAll(offset, limit);JSONObject obj = new JSONObject();obj.put("rows", ar);obj.put("total", count);return obj;}// 全查询@RequestMapping(params = "method=limit1")@ResponseBodypublic JSONObject limit1(int limit, int offset, int pid) {// 共有多少条int count = this.cserv.count1(pid);// 分页查询List<CustomEntity> ar = this.cserv.getLimit1(offset, limit, pid);JSONObject obj = new JSONObject();obj.put("rows", ar);obj.put("total", count);return obj;}// 全查询@RequestMapping(params = "method=limit2")@ResponseBodypublic JSONObject limit2(int limit, int offset, int mid) {// 共有多少条int count = this.cserv.count2(mid);// 分页查询List<CustomEntity> ar = this.cserv.getLimit2(offset, limit, mid);JSONObject obj = new JSONObject();obj.put("rows", ar);obj.put("total", count);return obj;}@RequestMapping(params = "method=allcustom")@ResponseBodypublic List<CustomEntity> getAll(HttpSession session,int gid) {MasterEntity m = (MasterEntity) session.getAttribute("master");List<CustomEntity> ar;if(gid==1){ar = this.cserv.getAll();}else{ar = this.cserv.getAlls(m.getMid());}return ar;}@RequestMapping(params = "method=limitcustom")@ResponseBodypublic List<CustomEntity> getAll(int mid) {List<CustomEntity> ar = this.cserv.getAll(mid);return ar;}// 判断重复@RequestMapping(params = "method=repeat")@ResponseBodypublic int repeat(String customtel) {CustomEntity custom = new CustomEntity();custom.setCustomtel(customtel);int t = this.cserv.repeat(custom);if (t > 0) {// 重复return 1;} else {return 2;}}}
写在最后
如果运行代码中遇到问题,或者需要完整源码和报告,可以加博主V交流:Code2Life2
觉得有用,别忘了一键三连哈!
SSM+mysql实现的汽车销售管理系统(角色权限分离,功能:采购申请、仓储入库、车辆出库、车辆入库、登录、客户管理、汽车销售柱状统计、销售统计、组织结构管理)相关推荐
- 基于SSM+MYSQL+Vue的宾馆管理系统
项目运行截图 管理员登录 房间管理 住宿信息 换房 退房管理 住宿统计 新增房间 技术描述 开发工具: Idea/Eclipse 数据库: mysql Jar包仓库: Maven 前段框架: vue/ ...
- 基于SSM+MySQL+Bootstrap的酒店管理系统
客房预订 收益统计图 客房新增 商品新增 商品新增 客房预订 散客登记 团队登记 旅客信息 接待对象 客房预订 技术描述 开发工具: Idea/Eclipse 数据库: mysql Jar包仓库: M ...
- SSM+Mysql实现的大学校园兼职系统(功能包含注册登录,发布兼职、个人中心、论坛交流、系统公告、查看兼职信息、查看用户信息、私聊等)
博客目录 SSM+Mysql实现的大学校园兼职系统 实现功能截图 系统功能 使用技术 代码 完整源码 SSM+Mysql实现的大学校园兼职系统 本系统是一个在线的大学校园兼职系统,商家可以在上面发布自 ...
- 数字化仓储管理系统:实现物料入库、出库、库存的高效管理
建设背景 物料管理,是对仓库及仓库内的物料所进行的管理,是企业为了充分利用所具有的仓储资源.提供高效的仓储服务所进行的计划.组织.控制和协调的过程.物料管理作为连接生产者和消费的纽带,在整个物流和企业 ...
- MySQL小的出库入库_根据出库、入库表,实现对库存的信息查询
数据库:mysql 要求:多个仓库.多个产品 表:1.入库凭证表 t_rkpz 2.入库明细表 t_rkpzmx 3.出库凭证表 t_ckpz 4.出库凭证表 t_ckpzmx 说明:两对主从表 [( ...
- 仓库管理系统、WMS、仓储管理、入库、出库、移库、调拨、报损、盘点、采购、退货、业务管理、销售、财务记账、应收、应付、库存清单、库存预警、库存容量、库存台账、库位管理、产品管理、承运商、供应商、权限
仓库管理系统.WMS.仓储管理.入库.出库.移库.调拨.报损.盘点.采购.退货.业务管理.销售.财务记账.应收.应付.库存清单.库存预警.库存容量.库存台账.库位管理.产品管理.承运商.供应商.权限 ...
- ssm+mysql企业退休人员服务管理系统-计算机毕业设计源码28000
摘 要 随着社会的发展,社会的各行各业都在利用信息化时代的优势.计算机的优势和普及使得各种信息管理系统的开发成为必需. 企业退休人员服务管理系统,主要的模块包括主页.个人资料.用户管理(管理员.工作 ...
- SSM+MySQL 爱豆科技人事管理系统计算机毕业设计源码48859
摘 要 随着互联网大趋势的到来,社会的方方面面,各行各业都在考虑利用互联网作为媒介将自己的信息更及时有效地推广出去,而其中最好的方式就是建立网络管理系统,并对其进行信息管理.由于现在网络的发达,爱豆 ...
- jsp+ssm+mysql实现的毕业设计管理系统项目
今天给大家演示的是一款由jsp+ssm(spring+springMVC+mybaits)+mysql实现的毕业设计管理系统项目.本系统分为三个角色:管理员.教师.学生.管理员主要的功能有:导师管理, ...
最新文章
- C语言中的void指针
- Persist Security Info 参数的作用
- Node.js CLI 工具最佳实践
- tl r402路由器设置_tplink wr847n无线路由器如何设置 tplink wr847n无线路由器设置方法【详解】...
- 超越JAX-RS规范:Apache CXF搜索扩展
- java代码隐藏面消除算法,java常面的几种排序算法
- 论“天才球员”有多重要!
- python api接口10060_Python web抓取[错误10060]
- 计算机组成原理课设模板,计算机组成原理课程设计报告模板(2011).doc
- Java暑期实训——简易计算器
- chrome哪个版本最好用_我拥有哪个版本的Chrome?
- 计算机房电脑装软件,机房轻松批量安装软件
- 服务器和交换机物理连接_「网络安全」网络设备篇(6)——四层交换机
- 在电脑中怎样画思维导图
- 笔记-知识产权与标准化知识-中华人民共和国政府采购法
- Hi3516全系统类型烧录教程
- JS input[type=file]读取本地文件(读取json文件)
- windows server 2003安装组件提示插入cd
- java酷炫代码_Java8 中有趣酷炫的小技巧
- mysql授权用户grant all_Mysql授权GRANT ALL PRIVILEGES