——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明






基于javaweb的SSM物流快递管理系统(java+ssm+js+jsp+mysql)
项目介绍
仓库管理员角色包含以下功能: 仓库管理员操作,入库操作,员工查看,揽收快件,新建员工等功能。
快递员角色包含以下功能: 员工操作,员工登录,操作成功等功能。
用户角色包含以下功能: 发快递成功,发送快递,查看快递等功能。
管理员角色包含以下功能: 管理员查看全局快递信息等功能。
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可 4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.数据库:MySql 5.7版本;
技术栈
- 后端:Spring+SpringMVC+Mybatis 2. 前端:HTML+CSS+JavaScript+jsp
使用说明
- 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; 4. 运行项目,输入localhost:8080/ 登录
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| <label for="fromlocation">寄发城市</label> <input type="text" class="cityinput" id="fromlocation" placeholder="请输入寄发地"> <label for="fromlocation">寄发详细地址</label> <input type="text" class="cityinput" name="fromdetal" id="fromdetal" style="width: 300px;" placeholder="请输入详细地址"><br><span id="fromlabel" style="color: red;"></span> <br><span id="fromlabel1" style="color: red;"></span> <br> <label for="fromlocation">寄发人</label> <input type="text" class="cityinput" name="fromname" id="fromname" placeholder="请输入寄发人"> <label for="fromlocation">寄发人电话</label> <input type="text" class="cityinput" name="phone" id="fromphone" style="width: 300px;" placeholder="请输入寄发人电话"> </div> <div class="demo" style="text-align: center;"> <span style="">寄<br> <br>收 </span> </div> <div class="demo"> <input type="hidden" name="tolocation" id="rtolocation"> <label for="tolocation">收件城市</label> <input type="text" class="cityinput" id="tolocation" placeholder="请输入目的地"> <label for="fromlocation">收件人详细地址</label> <input type="text" class="cityinput" name="todetal" id="todetal" style="width: 300px;" placeholder="请输入详细地址"><br><span id="tolabel" style="color: red;"></span> <br><span id="tolabel1" style="color: red;"></span> <br> <label for="fromlocation">收件人</label> <input type="text" class="cityinput" name="toname" id="toname" placeholder="请输入收件人"> <label for="fromlocation">收件人电话</label> <input type="text" class="cityinput" name="tophone" id="tophone" style="width: 300px;" placeholder="请输入收件人电话"> </div> </form> <div class="demo"> <center> <button onclick="fmsub()" style="color: #fff; background-color: #4B95FF; border-color: #2a75fe; border-radius: 5px; height: 45px; width: 100%">发送快递</button> </center> </div>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| return logMapper.insert(record); }
@Override public int insertSelective(Log record) { return logMapper.insertSelective(record); }
@Override public Log selectByPrimaryKey(Integer logid) { return logMapper.selectByPrimaryKey(logid); }
@Override public int updateByPrimaryKeySelective(Log record) { return logMapper.updateByPrimaryKeySelective(record); }
@Override public int updateByPrimaryKey(Log record) { return logMapper.updateByPrimaryKey(record); }
@Override public List<Log> selectlog(String expressid) { return logMapper.selectlog(expressid); }
} package com.dzx.express.biz.impl;
@Service(value="UserBiz") public class UserBizImpl implements UserBiz{ @Autowired UserMapper userMapper; @Override public int deleteByPrimaryKey(String id) { return userMapper.deleteByPrimaryKey(id); }
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| pattern="yyyy-MM-dd HH:mm:ss" /> </td> <td> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:orderout(id='${order.id }')">发出</a> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:orderin(id='${order.id }')">入库</a> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:order(id='${order.id }')">揽收</a> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:removeorder(id='${order.id }')">删除</a> </td> </tr> </c:forEach> </tbody> </table> </body> <script type="text/javascript"> function orderout(id){ $.ajax({ type : "post", url : "orderout.do", data : { "expid" : id }, async : true, dataType : 'text', success : function(data) { alert("出库成功!"); location.reload(true); }, error : function(data) { alert("出错!请联系管理员"); } }); } function orderin(id){ $.ajax({ type : "post", url : "orderin.do", data : { "expid" : id }, async : true, dataType : 'text', success : function(data) { alert("入库成功!"); location.reload(true); }, error : function(data) { alert("出错!请联系管理员"); } });
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>寄发快递</title> <link rel="stylesheet" href="css/cityselect.css"> <style type="text/css"> .demo { width: 670px; margin: 100px auto; }
.demo input { padding: 12px 18px; } </style>
</head> <body style="background-image: url(image/background.jpg);-moz-background-size:100% 100%; background-size:100% 100%;"> <div style="background-color: rgba(246,246,246,0.9);"> <h3 style="text-align: center; margin-top: 15px;">请认真填写快递单:</h3> <form id="fm1" action="addorder.do" method="post"> <div class="demo"> <input type="hidden" name="fromlocation" id="rfromlocation"> <label for="fromlocation">寄发城市</label> <input type="text" class="cityinput" id="fromlocation" placeholder="请输入寄发地"> <label for="fromlocation">寄发详细地址</label> <input type="text" class="cityinput" name="fromdetal" id="fromdetal" style="width: 300px;" placeholder="请输入详细地址"><br><span id="fromlabel" style="color: red;"></span> <br><span id="fromlabel1" style="color: red;"></span> <br> <label for="fromlocation">寄发人</label> <input type="text" class="cityinput" name="fromname" id="fromname" placeholder="请输入寄发人"> <label for="fromlocation">寄发人电话</label> <input type="text" class="cityinput" name="phone" id="fromphone" style="width: 300px;" placeholder="请输入寄发人电话"> </div> <div class="demo" style="text-align: center;"> <span style="">寄<br> <br>收 </span> </div> <div class="demo"> <input type="hidden" name="tolocation" id="rtolocation"> <label for="tolocation">收件城市</label> <input type="text" class="cityinput" id="tolocation"
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| </td> <td> ${order.type } </td> <td> <fmt:formatDate value="${order.posttime }" pattern="yyyy-MM-dd HH:mm:ss" /> </td> <td> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:orderout(id='${order.id }')">发出</a> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:orderin(id='${order.id }')">入库</a> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:order(id='${order.id }')">揽收</a> <a class="btn btn-danger delete" style="background-color: red;" href="javascript:removeorder(id='${order.id }')">删除</a> </td> </tr> </c:forEach> </tbody> </table> </body> <script type="text/javascript"> function orderout(id){ $.ajax({ type : "post", url : "orderout.do", data : { "expid" : id }, async : true, dataType : 'text', success : function(data) { alert("出库成功!"); location.reload(true); }, error : function(data) { alert("出错!请联系管理员"); } }); } function orderin(id){ $.ajax({ type : "post", url : "orderin.do", data : { "expid" : id },
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=471122532008200rf
https://javayms.pages.dev?id=471122532008200rf