ssm+vue Shenma logistics management system source code and papers

ssm+vue Shenma logistics management system source code and paper 163

 Development tools: idea or eclipse
 database mysql5.7+
 database link tools: navcat, little dolphin and other
  technologies: ssm

Summary

The design goal of this 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 the Shenma logistics management system. It takes practical application as the development background, is based on the SSM+Vue framework, and uses the Java programming language and MYSQL database for development to fully ensure the security and stability of the system. This system has a good interface and is simple and convenient to operate. Through the system overview, system analysis, system design, database design, and system testing, the system development process is explained in detail. Finally, the entire development process is summarized and realized. An important function of Shenma logistics-related information management .

This Shenma logistics management system operates stably, is easy and fast to operate, and has a friendly interface. It is a Shenma logistics management platform with comprehensive functions, good practicability, high security, and good scalability and maintainability .

Keywords: Logistics management , Java programming language, Vue framework , MYSQL database

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);
	}
	


}

Guess you like

Origin blog.csdn.net/weixin_46437112/article/details/132757458