Java毕业设计-基于ssm框架的物流管理系统项目实战(附源码+论文)
·
大家好!我是程序猿老A,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:Java毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发运行环境
- 开发语言:Java
- 框架:ssm
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
演示视频
物流管理系统
源码下载
https://download.csdn.net/download/m0_46388260/87793223
论文目录
【如需全文或源码请按文末获取联系】

一、项目简介
本物流管理系统管理系统主要包括系统用户管理模块、司机信息模块、车辆信息管理、货物库存管理、货物入库管理、登录模块、和退出模块等多个模块。
二、系统设计
2.1软件功能模块设计

2.2数据库设计

三、系统项目部分截图
3.1首页实现


3.2管理员模块的实现
系统用户管理主要是对新用户的添加和旧用户的删除。新用户的添加主要是指添加用户名称并确定其密码;旧用户的删除也是从下拉菜单中找到对应的用户名称将其删除。不论是新用户添加还是旧用户的删除,这个权限只有管理员具有。
3.3货物库存管理模块的实现
管理员发布新的货物库存,系统显示货物库存,货物库存添加功能主要指对其货物编号、货物名称等一些基本信息的添加、删除和修改。
四、部分核心代码
package com.controller;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.entity.Huowuxinxi;
import com.server.HuowuxinxiServer;
import com.util.PageBean;
import net.sf.json.JSONObject;
import com.util.db;
import java.sql.SQLException;
import java.sql.*;
@Controller
public class HuowuxinxiController {
@Resource
private HuowuxinxiServer huowuxinxiService;
@RequestMapping("addHuowuxinxi.do")
public String addHuowuxinxi(HttpServletRequest request,Huowuxinxi huowuxinxi,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
huowuxinxi.setAddtime(time.toString().substring(0, 19));
huowuxinxiService.add(huowuxinxi);
session.setAttribute("backxx", "添加成功");
session.setAttribute("backurl", request.getHeader("Referer"));
//session.setAttribute("backurl", "huowuxinxiList.do");
return "redirect:postback.jsp";
//return "redirect:huowuxinxiList.do";
}
// 处理编辑
@RequestMapping("doUpdateHuowuxinxi.do")
public String doUpdateHuowuxinxi(int id,ModelMap map,Huowuxinxi huowuxinxi){
huowuxinxi=huowuxinxiService.getById(id);
map.put("huowuxinxi", huowuxinxi);
return "huowuxinxi_updt";
}
// 后台详细
@RequestMapping("huowuxinxiDetail.do")
public String huowuxinxiDetail(int id,ModelMap map,Huowuxinxi huowuxinxi){
huowuxinxi=huowuxinxiService.getById(id);
map.put("huowuxinxi", huowuxinxi);
return "huowuxinxi_detail";
}
// 前台详细
@RequestMapping("hwxxDetail.do")
public String hwxxDetail(int id,ModelMap map,Huowuxinxi huowuxinxi){
huowuxinxi=huowuxinxiService.getById(id);
map.put("huowuxinxi", huowuxinxi);
return "huowuxinxidetail";
}
//
@RequestMapping("updateHuowuxinxi.do")
public String updateHuowuxinxi(int id,ModelMap map,Huowuxinxi huowuxinxi,HttpServletRequest request,HttpSession session){
huowuxinxiService.update(huowuxinxi);
session.setAttribute("backxx", "修改成功");
session.setAttribute("backurl", request.getHeader("Referer"));
return "redirect:postback.jsp";
//String url = request.getHeader("Referer");
//return "redirect:"+url;
//return "redirect:huowuxinxiList.do";
}
// 分页查询
@RequestMapping("huowuxinxiList.do")
public String huowuxinxiList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Huowuxinxi huowuxinxi, String huowubianhao, String huowumingcheng, String jiage, String kucun, String tupian){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 5);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 5);
if(huowubianhao==null||huowubianhao.equals("")){pmap.put("huowubianhao", null);}else{pmap.put("huowubianhao", huowubianhao);}
if(huowumingcheng==null||huowumingcheng.equals("")){pmap.put("huowumingcheng", null);}else{pmap.put("huowumingcheng", huowumingcheng);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(kucun==null||kucun.equals("")){pmap.put("kucun", null);}else{pmap.put("kucun", kucun);}
if(tupian==null||tupian.equals("")){pmap.put("tupian", null);}else{pmap.put("tupian", tupian);}
int total=huowuxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Huowuxinxi> list=huowuxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "huowuxinxi_list";
}
@RequestMapping("huowuxinxiList2.do")
public String huowuxinxiList2(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Huowuxinxi huowuxinxi, String huowubianhao, String huowumingcheng, String jiage, String kucun, String tupian){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 5);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 5);
if(huowubianhao==null||huowubianhao.equals("")){pmap.put("huowubianhao", null);}else{pmap.put("huowubianhao", huowubianhao);}
if(huowumingcheng==null||huowumingcheng.equals("")){pmap.put("huowumingcheng", null);}else{pmap.put("huowumingcheng", huowumingcheng);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(kucun==null||kucun.equals("")){pmap.put("kucun", null);}else{pmap.put("kucun", kucun);}
if(tupian==null||tupian.equals("")){pmap.put("tupian", null);}else{pmap.put("tupian", tupian);}
int total=huowuxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Huowuxinxi> list=huowuxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "huowuxinxi_list2";
}
@RequestMapping("hwxxList.do")
public String hwxxList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Huowuxinxi huowuxinxi, String huowubianhao, String huowumingcheng, String jiage, String kucun, String tupian){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 5);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 5);
if(huowubianhao==null||huowubianhao.equals("")){pmap.put("huowubianhao", null);}else{pmap.put("huowubianhao", huowubianhao);}
if(huowumingcheng==null||huowumingcheng.equals("")){pmap.put("huowumingcheng", null);}else{pmap.put("huowumingcheng", huowumingcheng);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(kucun==null||kucun.equals("")){pmap.put("kucun", null);}else{pmap.put("kucun", kucun);}
if(tupian==null||tupian.equals("")){pmap.put("tupian", null);}else{pmap.put("tupian", tupian);}
int total=huowuxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Huowuxinxi> list=huowuxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "huowuxinxilist";
}
@RequestMapping("deleteHuowuxinxi.do")
public String deleteHuowuxinxi(int id,HttpServletRequest request){
huowuxinxiService.delete(id);
String url = request.getHeader("Referer");
return "redirect:"+url;
//return "redirect:huowuxinxiList.do";
}
@RequestMapping("quchongHuowuxinxi.do")
public void quchongHuowuxinxi(Huowuxinxi huowuxinxi,HttpServletResponse response){
Map<String,Object> map=new HashMap<String,Object>();
map.put("huowubianhao", huowuxinxi.getHuowubianhao());
System.out.println("huowubianhao==="+huowuxinxi.getHuowubianhao());
System.out.println("huowubianhao222==="+huowuxinxiService.quchongHuowuxinxi(map));
JSONObject obj=new JSONObject();
if(huowuxinxiService.quchongHuowuxinxi(map)!=null){
obj.put("info", "ng");
}else{
obj.put("info", "货物编号可以用!");
}
response.setContentType("text/html;charset=utf-8");
PrintWriter out=null;
try {
out=response.getWriter();
out.print(obj);
out.flush();
} catch (IOException e) {
e.printStackTrace();
}finally{
out.close();
}
}
}
获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以下方微❤联系。
更多推荐




所有评论(0)