ssm+vue物流管理系统源码和论文202
开发工具:idea 或eclipse
数据库mysql5.7+
数据库链接工具:navcat,小海豚等
技术:ssm
摘 要
本物流管理系统设计目标是实现物流的信息化管理,提高管理效率,使得物流管理作规范化、科学化、高效化。
本文重点阐述了物流管理系统的开发过程,以实际运用为开发背景,基于SSM框架,运用了Java编程语言和MYSQL数据库进行开发,充分保证系统的安全性和稳定性。本系统界面良好,操作简单方便,通过系统概述、系统分析、系统设计、数据库设计、系统测试这几个部分,详细的说明了系统的开发过程,最后并对整个开发过程进行了总结,实现了物流相关信息管理的重要功能。
本物流管理系统运行效果稳定,操作方便、快捷,界面友好,是一个功能全面、实用性好、安全性高,并具有良好的可扩展性、可维护性的物流管理平台。
关键词:物流管理,Java编程语言,SSM框架,MYSQL数据库
Abstract
The design goal of this logistics management system is to realize the information management of logistics, improve management efficiency, and make logistics management standardized, scientific and efficient.
This article focuses on the development process of the logistics management system, based on the actual application of the development background, based on the SSM 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 logistics-related information management.
The logistics management system has stable operation effect, convenient and fast operation, and friendly interface. It is a logistics management platform with comprehensive functions, good practicability, high safety, and good scalability and maintainability.
Key words:Logistics management, Java programming language, SSM 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.PeisongyuanbaoxiaoEntity;
import com.entity.view.PeisongyuanbaoxiaoView;
import com.service.PeisongyuanbaoxiaoService;
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 20:16:54
*/
@RestController
@RequestMapping("/peisongyuanbaoxiao")
public class PeisongyuanbaoxiaoController {
@Autowired
private PeisongyuanbaoxiaoService peisongyuanbaoxiaoService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,PeisongyuanbaoxiaoEntity peisongyuanbaoxiao,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("peisongyuan")) {
peisongyuanbaoxiao.setPeisongyuangonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<PeisongyuanbaoxiaoEntity> ew = new EntityWrapper<PeisongyuanbaoxiaoEntity>();
PageUtils page = peisongyuanbaoxiaoService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, peisongyuanbaoxiao), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,PeisongyuanbaoxiaoEntity peisongyuanbaoxiao, HttpServletRequest request){
EntityWrapper<PeisongyuanbaoxiaoEntity> ew = new EntityWrapper<PeisongyuanbaoxiaoEntity>();
PageUtils page = peisongyuanbaoxiaoService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, peisongyuanbaoxiao), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( PeisongyuanbaoxiaoEntity peisongyuanbaoxiao){
EntityWrapper<PeisongyuanbaoxiaoEntity> ew = new EntityWrapper<PeisongyuanbaoxiaoEntity>();
ew.allEq(MPUtil.allEQMapPre( peisongyuanbaoxiao, "peisongyuanbaoxiao"));
return R.ok().put("data", peisongyuanbaoxiaoService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(PeisongyuanbaoxiaoEntity peisongyuanbaoxiao){
EntityWrapper< PeisongyuanbaoxiaoEntity> ew = new EntityWrapper< PeisongyuanbaoxiaoEntity>();
ew.allEq(MPUtil.allEQMapPre( peisongyuanbaoxiao, "peisongyuanbaoxiao"));
PeisongyuanbaoxiaoView peisongyuanbaoxiaoView = peisongyuanbaoxiaoService.selectView(ew);
return R.ok("查询配送员报销成功").put("data", peisongyuanbaoxiaoView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
PeisongyuanbaoxiaoEntity peisongyuanbaoxiao = peisongyuanbaoxiaoService.selectById(id);
return R.ok().put("data", peisongyuanbaoxiao);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
PeisongyuanbaoxiaoEntity peisongyuanbaoxiao = peisongyuanbaoxiaoService.selectById(id);
return R.ok().put("data", peisongyuanbaoxiao);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody PeisongyuanbaoxiaoEntity peisongyuanbaoxiao, HttpServletRequest request){
peisongyuanbaoxiao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(peisongyuanbaoxiao);
peisongyuanbaoxiaoService.insert(peisongyuanbaoxiao);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody PeisongyuanbaoxiaoEntity peisongyuanbaoxiao, HttpServletRequest request){
peisongyuanbaoxiao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(peisongyuanbaoxiao);
peisongyuanbaoxiaoService.insert(peisongyuanbaoxiao);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody PeisongyuanbaoxiaoEntity peisongyuanbaoxiao, HttpServletRequest request){
//ValidatorUtils.validateEntity(peisongyuanbaoxiao);
peisongyuanbaoxiaoService.updateById(peisongyuanbaoxiao);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
peisongyuanbaoxiaoService.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<PeisongyuanbaoxiaoEntity> wrapper = new EntityWrapper<PeisongyuanbaoxiaoEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("peisongyuan")) {
wrapper.eq("peisongyuangonghao", (String)request.getSession().getAttribute("username"));
}
int count = peisongyuanbaoxiaoService.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.JiesuanEntity;
import com.entity.view.JiesuanView;
import com.service.JiesuanService;
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 20:16:54
*/
@RestController
@RequestMapping("/jiesuan")
public class JiesuanController {
@Autowired
private JiesuanService jiesuanService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,JiesuanEntity jiesuan,
HttpServletRequest request){
EntityWrapper<JiesuanEntity> ew = new EntityWrapper<JiesuanEntity>();
PageUtils page = jiesuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiesuan), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,JiesuanEntity jiesuan, HttpServletRequest request){
EntityWrapper<JiesuanEntity> ew = new EntityWrapper<JiesuanEntity>();
PageUtils page = jiesuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiesuan), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( JiesuanEntity jiesuan){
EntityWrapper<JiesuanEntity> ew = new EntityWrapper<JiesuanEntity>();
ew.allEq(MPUtil.allEQMapPre( jiesuan, "jiesuan"));
return R.ok().put("data", jiesuanService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(JiesuanEntity jiesuan){
EntityWrapper< JiesuanEntity> ew = new EntityWrapper< JiesuanEntity>();
ew.allEq(MPUtil.allEQMapPre( jiesuan, "jiesuan"));
JiesuanView jiesuanView = jiesuanService.selectView(ew);
return R.ok("查询结算成功").put("data", jiesuanView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
JiesuanEntity jiesuan = jiesuanService.selectById(id);
return R.ok().put("data", jiesuan);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
JiesuanEntity jiesuan = jiesuanService.selectById(id);
return R.ok().put("data", jiesuan);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody JiesuanEntity jiesuan, HttpServletRequest request){
jiesuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jiesuan);
jiesuanService.insert(jiesuan);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody JiesuanEntity jiesuan, HttpServletRequest request){
jiesuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(jiesuan);
jiesuanService.insert(jiesuan);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody JiesuanEntity jiesuan, HttpServletRequest request){
//ValidatorUtils.validateEntity(jiesuan);
jiesuanService.updateById(jiesuan);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
jiesuanService.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<JiesuanEntity> wrapper = new EntityWrapper<JiesuanEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = jiesuanService.selectCount(wrapper);
return R.ok().put("count", count);
}
}