项目描述
临近学期结束,还是毕业设计,你还在做java程序网络编程,期末作业,老师的作业要求觉得大了吗?不知道毕业设计该怎么办?网页功能的数量是否太多?没有合适的类型或系统?等等。这里根据疫情当下,你想解决的问题,今天给大家介绍一篇基于JavaWeb的物流管理系统的设计与实现。
功能需求
现在的物流企业对物流的管理还是不是统一化和集体化,都是各个负责各自模块,不能将信息全程贯通,我们要做的就是将货物的生产开始一直到货物销售到消费者的手中,这一系列的过程我们要全程把控,对每个模块之前的数据都要进行存储和分析。系统一共有管理系统登录时可以分为管理员和员工用户。
员工模块:员工用户主要实现的是客户管理、订单管理、仓储管理、货物调度管理等功能模块。
管理模块:管理员主要实现订单查询模块、财务管理模块、员工管理修改密码等功能模块。
具备以下功能:
针对系统管理员为平台的监管用户,管控生鲜采购物流整个流程和信息,主要针对系统物流订单信息、员工管理、物流财务管理、个人信息维护,正常登录确保系统的安全性.
![在这里插入图片描述](https://img-blog.csdnimg.cn/99e555ddfdea4313bcb0b93636f25051.png)
系统目的为了实时管控生鲜采购物流信息,确保能够快速精准的物资运送,为物流企业员工开发是货物运输客户信息维护、物资订单管理、物资存储仓储管理、货物调度管理等功能模块。
![在这里插入图片描述](https://img-blog.csdnimg.cn/eec80f34a7ae4d279ae0afe8d9cf1282.png)
系统功能模块框架图
![在这里插入图片描述](https://img-blog.csdnimg.cn/f10406a36d5f4dd7a61635f31c728be8.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/c81bc6924d0246bf81a4dc75223d5008.png)
部分效果图
![在这里插入图片描述](https://img-blog.csdnimg.cn/8efba0ff81424cbabd0b002f3d242750.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/a0f2d1a892234d02a8ab8c6fc56419ea.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/27d66fd2a24849c8aa0f947bdfebdac9.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/acb58fdca2964391ab4dc90be297dc1a.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/06d1f77618e244b482f11254133f23cc.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/ebcf265ce2824c21ab361ecce5dce379.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/8aba89261d124030afb9f3bb09793a4c.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/cb993dc0053541cca57bd15c566a1126.png)
数据库设计
系统中用到了15张表,针对每个表都进行了设计,下面对部分核心表进行汇总罗列展示。
(1)客户信息表
![在这里插入图片描述](https://img-blog.csdnimg.cn/66dbde2803bd44c996a83250ca26686a.png)
(2)订单信息表
![在这里插入图片描述](https://img-blog.csdnimg.cn/6d783a6dd2804a4aa346842c915e5299.png)
(3)车辆信息表
![在这里插入图片描述](https://img-blog.csdnimg.cn/fc9a2ede2512433bb1ba8dcf923b6cff.png)
(4)用户信息表
![在这里插入图片描述](https://img-blog.csdnimg.cn/2b2f79d73cfd4a8f96005bb424deb1e4.png)
(5)调度信息表
![在这里插入图片描述](https://img-blog.csdnimg.cn/fa8dba961aa043149ca5243a2c039466.png)
(6)仓库信息表
![在这里插入图片描述](https://img-blog.csdnimg.cn/9166e8469226419ea71d7d86dc9a3d94.png)
部分代码
public String chelianglist() {
HttpServletRequest request = ServletActionContext.getRequest();
int currentpage = 1;
int pagesize =20;
if(request.getParameter("pageNum")!=null){
currentpage = Integer.parseInt(request.getParameter("pageNum"));
pagesize = Integer.parseInt(request.getParameter("numPerPage"));
}
String where = " where chelianglock=0 order by id desc ";
String where2 = " where chelianglock=0 ";
int total = cheliangDao.selectBeanCount( where2);
request.setAttribute("list", cheliangDao.selectBeanList((currentpage - 1) * pagesize, pagesize, where));
request.setAttribute("totalCount", total);
request.setAttribute("ps", pagesize);
request.setAttribute("pn", currentpage);
request.setAttribute("url", "diaodumethod!chelianglist");
this.setUrl("cheliang/chelianglist.jsp");
return SUCCESS;
}
public void cheliangdelete() throws IOException {
HttpServletRequest request = ServletActionContext.getRequest();
Cheliang bean = cheliangDao.selectBean(" where id= "+request.getParameter("id"));
bean.setChepai(bean.getChepai()+"_delete");
bean.setChelianglock(1);
cheliangDao.updateBean(bean);
HttpServletResponse response = ServletActionContext.getResponse();
response.setCharacterEncoding("utf-8");
PrintWriter out = response.getWriter();
out.print(Util.tiaozhuan2("操作成功", "diaodumethod!chelianglist","chelianglist"));
out.flush();
out.close();
}
public String cheliangadd() {
this.setUrl("cheliang/cheliangadd.jsp");
return SUCCESS;
}
public void cheliangadd2() throws IOException {
HttpServletRequest request = ServletActionContext.getRequest();
String chengyungongsi = request.getParameter("chengyungongsi");
String chepai = request.getParameter("chepai");
String chexing = request.getParameter("chexing");
String guihao = request.getParameter("guihao");
Cheliang bean = cheliangDao.selectBean(" where chepai= '"+chepai+"'");
if(bean==null){
bean = new Cheliang();
bean.setChengyungongsi(chengyungongsi);
bean.setChepai(chepai);
bean.setChexing(chexing);
bean.setCreatetime(new Date());
bean.setGuihao(guihao);
bean.setDiaoduzhuangtai("未调度");
cheliangDao.insertBean(bean);
HttpServletResponse resp = ServletActionContext.getResponse();
resp.setCharacterEncoding("utf-8");
PrintWriter out = resp.getWriter();
out.print(Util.tiaozhuan("操作成功", "diaodumethod!chelianglist","chelianglist"));
out.flush();
out.close();
}else{
HttpServletResponse resp = ServletActionContext.getResponse();
resp.setCharacterEncoding("utf-8");
PrintWriter out = resp.getWriter();
out.print(Util.tiaozhuan("操作失败,该车牌号已经存在", "diaodumethod!chelianglist","chelianglist"));
out.flush();
out.close();
}
}
public String cheliangupdate() {
HttpServletRequest request = ServletActionContext.getRequest();
Cheliang bean = cheliangDao.selectBean(" where id= "+request.getParameter("id"));
request.setAttribute("bean", bean);
this.setUrl("cheliang/cheliangupdate.jsp");
return SUCCESS;
}
public void cheliangupdate2() throws IOException {
HttpServletRequest request = ServletActionContext.getRequest();
Cheliang bean = cheliangDao.selectBean(" where id= "+request.getParameter("id"));
String chengyungongsi = request.getParameter("chengyungongsi");
String chexing = request.getParameter("chexing");
String guihao = request.getParameter("guihao");
bean.setChengyungongsi(chengyungongsi);
bean.setChexing(chexing);
bean.setGuihao(guihao);
cheliangDao.updateBean(bean);
HttpServletResponse response = ServletActionContext.getResponse();
response.setCharacterEncoding("utf-8");
PrintWriter out = response.getWriter();
out.print(Util.tiaozhuan("操作成功", "diaodumethod!chelianglist","chelianglist"));
out.flush();
out.close();
}
安装部署需求
eclipse运行启动
系统部署
系统开发后,在生产环境配置项目运行环境,具体步骤如下:
安装linux或者windows10操作系统;
安装JDK1.8并配置环境变量;
安装MySQL5.7版本以上版本数据库,创建数据库并执行脚本创建表;
在eclipse中运行打包;
本项目用到的技术和框架
1.开发语言:Java
2.开发模式:B/S
3.数据库:MySQL
4.框架:jsp+SSH
本项目中的关键点
此系统的开发采用java语言开发,基于B/S结构,这些开发环境使系统更加完善。使用到的工具和技术都是开源免费的。
环境工具
开发工具 Eclipse
语言 JDK1.8 、jsp、CSS、SSH
硬件:笔记本电脑;
软件:Tomcat8.0 Web服务器、Navicat数据库客户端、MySQL;
操作系统:Windows 10;
其它软件:截图工具、常用浏览器;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)