Logistics management system based on ssm (idea+spring+springmvc+mybatis+jsp)

1. System introduction

This project is developed usingidea tools, jsp+spring+spring-mvc+mybatis+jquery< /span> development tool. navicatTechnically written, the database uses mysql,

The system is divided into 3 roles: administrator, user, and driver.

Get address:xystgl · master · code theft_java_bishe / java system · GitCode

2. Module Introduction

administrator

1. Login

2. Administrator information management

3. Vehicle source management

4. Complaint management

5. Address management

6. Driver management

7. Invoice management

8. Order management

9. Car repair management

10. Logistics site management

11. User management

user

1. Log in and register

2. Personal information management

3. Complaint management

4. Address management

5. Order management

driver

1. Login

2. Order management

3. Repair report management

4. Personal information management

Project Introduction
Difficulty level: ✩✩✩
User type: 3 roles (administrator, user, driver)
Design pattern: MVC
Project architecture: B/S architecture
Development language: Java language
Front-end technology: HTML , CSS, JS, JQuery, etc.
Back-end technology: JSP, ssm framework
Running environment: Windows 7 or 10, JDK1.8
Running tools: This system is developed using idea and only supports idea running. It does not support MyEclipse and eclipse running. Because the skeletons of the three are different, forcibly importing and opening the running tool may cause unknown errors.
Database: MySQL5.5/5.7/8.0 version
Running server: Tomcat7.0/8.0/8.5/9.0 and other versions
Whether it is based on Maven environment: No
Whether it uses a framework: Yes
Number of database tables: 10 tables
JSP page Quantity: more than 30 pieces
Whether there is pagination: There is pagination
 

Related screenshots

Related code

Log in

<%@ page language="java" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>物流管理系统</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/plugins/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/plugins/simple-line-icons.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/plugins/animate.min.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/plugins/fullcalendar.min.css"/>
    <link href="${ctx}/static/css/style.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="${ctx}/static/js/html5shiv.min.js"></script>
    <script src="${ctx}/static/js/respond.min.js"></script>
    <![endif]-->
</head>
<body id="mimin" class="dashboard form-signin-wrapper">
<div class="container">
    <form class="form-signin" id="login" method="post">
        <div class="panel periodic-login">
            <div class="panel-body text-center">
                <p class="atomic-mass">物流管理系统</p>
                <i class="icons icon-arrow-down"></i>
                <div class="form-group form-animate-text" style="margin-top:40px;">
                    <input type="text" class="form-text" name="loginname">
                    <span class="bar"></span>
                    <label>账号</label>
                </div>
                <div class="form-group form-animate-text" style="margin-top:40px;">
                    <input type="password" class="form-text" name="password">
                    <span class="bar"></span>
                    <label>密码</label>
                </div>
                <div class="form-group form-animate-text" style="margin-top:15px; text-align: left">
                    <input type="radio" name="juese" value="0" checked> 管理员
                    <input type="radio" name="juese" value="1"> 司机
                    <input type="radio" name="juese" value="2"> 用户
                </div>
                <a href="${ctx}/user/page/reg">去注册</a>
                <input type="button" class="btn col-md-12" value="登 录" onclick="login()"/>
            </div>
        </div>
    </form>
</div>
<script src="${ctx}/static/js/jquery.min.js"></script>
<script src="${ctx}/static/js/jquery.ui.min.js"></script>
<script src="${ctx}/static/js/bootstrap.min.js"></script>
<!-- plugins -->
<script src="${ctx}/static/js/plugins/jquery.nicescroll.js"></script>
<!-- custom -->
<script src="${ctx}/static/js/main.js"></script>
<script src="${ctx}/static/js/common.js"></script>
<script>
    function login() {
        $.ajax({
            url: projectName + "/adminLogin",
            contentType: "application/json;charset=utf-8",
            dataType: "json",
            data: $('#login').serialize(),
            success: function (data) {
                if (data.code == 'success') {
                    alert(data.msg);
                    window.location.href = projectName + "/index";
                } else {
                    alert(data.msg);
                }
            },
            error: function () {
                alert("请求失败,请稍后再试!");
            }
        });
    };
</script>
</body>
</html>
 @RequestMapping(value = "/adminLogin")
    @ResponseBody
    public String login(HttpSession session, String loginname, String password, Integer juese, ModelMap modelMap) {
        if(juese == 0){
            Admin admin = adminService.login(loginname, password);
            if(admin != null){
                setSession(admin.getId(), admin.getLoginname(), UserLevel.ADMIN);
                return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_SUCCESS));
            } else {
                return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_FAILURE));
            }
        }else if(juese == 1){
            Drivers drivers = driversService.login(loginname, password);
            if(drivers != null){
                setSession(drivers.getId(), drivers.getLoginname(), UserLevel.USER);
                return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_SUCCESS));
            } else {
                return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_FAILURE));
            }
        }else if(juese == 2){
            Users users = usersService.login(loginname, password);
            if(users != null){
                setSession(users.getId(), users.getLoginname(), UserLevel.STAFF);
                return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_SUCCESS));
            } else {
                return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_FAILURE));
            }
        }
        return FastjsonUtil.serialize(new ResponseVo(ResponseType.LOGON_FAILURE));
    }

Not open source! ! ! ! ! !
Many of the data in the project screenshots are used for testing. You need to add appropriate data pictures by yourself.

Like and follow friends who are interested. Students can study it! ! ! ! !
Thanks = v =

Guess you like

Origin blog.csdn.net/qq_43485489/article/details/126489491