ssm+vue神马物流管理系统源码和论文

ssm+vue神马物流管理系统源码和论文163

 开发工具:idea 或eclipse
 数据库mysql5.7+
 数据库链接工具:navcat,小海豚等
  技术:ssm

摘  要

本神马物流管理系统设计目标是实现神马物流的信息化管理,提高管理效率,使得神马物流管理作规范化、科学化、高效化。

本文重点阐述了神马物流管理系统的开发过程,以实际运用为开发背景,基于SSM+Vue框架,运用了Java编程语言和MYSQL数据库进行开发,充分保证系统的安全性和稳定性。本系统界面良好,操作简单方便,通过系统概述、系统分析、系统设计、数据库设计、系统测试这几个部分,详细的说明了系统的开发过程,最后并对整个开发过程进行了总结,实现了神马物流相关信息管理的重要功能。

本神马物流管理系统运行效果稳定,操作方便、快捷,界面友好,是一个功能全面、实用性好、安全性高,并具有良好的可扩展性、可维护性的神马物流管理平台

关键词:物流管理,Java编程语言,Vue框架,MYSQL数据库

Abstract

The design goal of the Shenma logistics management system is to realize the information management of Shenma logistics, improve management efficiency, and make Shenma logistics management standardized, scientific and efficient.

This article focuses on the development process of Shenma logistics management system, based on the actual application of the development background, based on the SSM+Vue framework, using the Java programming language and MYSQL database for development, to fully ensure the security and stability of the system. The system has a good interface, simple and convenient operation. Through the system overview, system analysis, system design, database design, system testing, the development process of the system is explained in detail. Finally, the whole development process is summarized and realized An important function of Shenma logistics related information management.

The Shenma logistics management system has stable operation effect, convenient and fast operation, and friendly interface. It is a Shenma logistics management platform with comprehensive functions, good practicability, high safety, and good scalability and maintainability.

Key words:Logistics management, Java programming language, Vue framework, MYSQL database

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.CheliangjiaotongleixingEntity;
import com.entity.view.CheliangjiaotongleixingView;

import com.service.CheliangjiaotongleixingService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 车辆交通类型
 * 后端接口
 * @author 
 * @email 
 * @date 2021-04-12 13:47:09
 */
@RestController
@RequestMapping("/cheliangjiaotongleixing")
public class CheliangjiaotongleixingController {
    @Autowired
    private CheliangjiaotongleixingService cheliangjiaotongleixingService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,CheliangjiaotongleixingEntity cheliangjiaotongleixing, 
		HttpServletRequest request){

        EntityWrapper<CheliangjiaotongleixingEntity> ew = new EntityWrapper<CheliangjiaotongleixingEntity>();
		PageUtils page = cheliangjiaotongleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheliangjiaotongleixing), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,CheliangjiaotongleixingEntity cheliangjiaotongleixing, HttpServletRequest request){
        EntityWrapper<CheliangjiaotongleixingEntity> ew = new EntityWrapper<CheliangjiaotongleixingEntity>();
		PageUtils page = cheliangjiaotongleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheliangjiaotongleixing), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( CheliangjiaotongleixingEntity cheliangjiaotongleixing){
       	EntityWrapper<CheliangjiaotongleixingEntity> ew = new EntityWrapper<CheliangjiaotongleixingEntity>();
      	ew.allEq(MPUtil.allEQMapPre( cheliangjiaotongleixing, "cheliangjiaotongleixing")); 
        return R.ok().put("data", cheliangjiaotongleixingService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(CheliangjiaotongleixingEntity cheliangjiaotongleixing){
        EntityWrapper< CheliangjiaotongleixingEntity> ew = new EntityWrapper< CheliangjiaotongleixingEntity>();
 		ew.allEq(MPUtil.allEQMapPre( cheliangjiaotongleixing, "cheliangjiaotongleixing")); 
		CheliangjiaotongleixingView cheliangjiaotongleixingView =  cheliangjiaotongleixingService.selectView(ew);
		return R.ok("查询车辆交通类型成功").put("data", cheliangjiaotongleixingView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        CheliangjiaotongleixingEntity cheliangjiaotongleixing = cheliangjiaotongleixingService.selectById(id);
        return R.ok().put("data", cheliangjiaotongleixing);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        CheliangjiaotongleixingEntity cheliangjiaotongleixing = cheliangjiaotongleixingService.selectById(id);
        return R.ok().put("data", cheliangjiaotongleixing);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody CheliangjiaotongleixingEntity cheliangjiaotongleixing, HttpServletRequest request){
    	cheliangjiaotongleixing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(cheliangjiaotongleixing);

        cheliangjiaotongleixingService.insert(cheliangjiaotongleixing);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody CheliangjiaotongleixingEntity cheliangjiaotongleixing, HttpServletRequest request){
    	cheliangjiaotongleixing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(cheliangjiaotongleixing);

        cheliangjiaotongleixingService.insert(cheliangjiaotongleixing);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody CheliangjiaotongleixingEntity cheliangjiaotongleixing, HttpServletRequest request){
        //ValidatorUtils.validateEntity(cheliangjiaotongleixing);
        cheliangjiaotongleixingService.updateById(cheliangjiaotongleixing);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        cheliangjiaotongleixingService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<CheliangjiaotongleixingEntity> wrapper = new EntityWrapper<CheliangjiaotongleixingEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = cheliangjiaotongleixingService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}
package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.CheliangjiaotongguanliEntity;
import com.entity.view.CheliangjiaotongguanliView;

import com.service.CheliangjiaotongguanliService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 车辆交通管理
 * 后端接口
 * @author 
 * @email 
 * @date 2021-04-12 13:47:09
 */
@RestController
@RequestMapping("/cheliangjiaotongguanli")
public class CheliangjiaotongguanliController {
    @Autowired
    private CheliangjiaotongguanliService cheliangjiaotongguanliService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,CheliangjiaotongguanliEntity cheliangjiaotongguanli, 
		HttpServletRequest request){

        EntityWrapper<CheliangjiaotongguanliEntity> ew = new EntityWrapper<CheliangjiaotongguanliEntity>();
		PageUtils page = cheliangjiaotongguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheliangjiaotongguanli), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,CheliangjiaotongguanliEntity cheliangjiaotongguanli, HttpServletRequest request){
        EntityWrapper<CheliangjiaotongguanliEntity> ew = new EntityWrapper<CheliangjiaotongguanliEntity>();
		PageUtils page = cheliangjiaotongguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, cheliangjiaotongguanli), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( CheliangjiaotongguanliEntity cheliangjiaotongguanli){
       	EntityWrapper<CheliangjiaotongguanliEntity> ew = new EntityWrapper<CheliangjiaotongguanliEntity>();
      	ew.allEq(MPUtil.allEQMapPre( cheliangjiaotongguanli, "cheliangjiaotongguanli")); 
        return R.ok().put("data", cheliangjiaotongguanliService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(CheliangjiaotongguanliEntity cheliangjiaotongguanli){
        EntityWrapper< CheliangjiaotongguanliEntity> ew = new EntityWrapper< CheliangjiaotongguanliEntity>();
 		ew.allEq(MPUtil.allEQMapPre( cheliangjiaotongguanli, "cheliangjiaotongguanli")); 
		CheliangjiaotongguanliView cheliangjiaotongguanliView =  cheliangjiaotongguanliService.selectView(ew);
		return R.ok("查询车辆交通管理成功").put("data", cheliangjiaotongguanliView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        CheliangjiaotongguanliEntity cheliangjiaotongguanli = cheliangjiaotongguanliService.selectById(id);
        return R.ok().put("data", cheliangjiaotongguanli);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        CheliangjiaotongguanliEntity cheliangjiaotongguanli = cheliangjiaotongguanliService.selectById(id);
        return R.ok().put("data", cheliangjiaotongguanli);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody CheliangjiaotongguanliEntity cheliangjiaotongguanli, HttpServletRequest request){
    	cheliangjiaotongguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(cheliangjiaotongguanli);

        cheliangjiaotongguanliService.insert(cheliangjiaotongguanli);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody CheliangjiaotongguanliEntity cheliangjiaotongguanli, HttpServletRequest request){
    	cheliangjiaotongguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(cheliangjiaotongguanli);

        cheliangjiaotongguanliService.insert(cheliangjiaotongguanli);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody CheliangjiaotongguanliEntity cheliangjiaotongguanli, HttpServletRequest request){
        //ValidatorUtils.validateEntity(cheliangjiaotongguanli);
        cheliangjiaotongguanliService.updateById(cheliangjiaotongguanli);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        cheliangjiaotongguanliService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<CheliangjiaotongguanliEntity> wrapper = new EntityWrapper<CheliangjiaotongguanliEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = cheliangjiaotongguanliService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}

猜你喜欢

转载自blog.csdn.net/weixin_46437112/article/details/132757458