当前位置:   article > 正文

基于SSM的校园驿站管理系统_大学校园快递管理系统的设计与实现 代码演示加问论文

大学校园快递管理系统的设计与实现 代码演示加问论文

末尾获取源码
开发语言:Java
Java开发工具:JDK1.8
后端框架:SSM
前端:采用JSP技术开发
数据库:MySQL5.7和Navicat管理工具结合
服务器:Tomcat8.5
开发软件:IDEA / Eclipse
是否Maven项目:是


目录

一、项目简介

二、论文截图

三、系统项目截图

3.1管理员

3.2员工功能实现

3.3用户功能实现

四、核心代码

4.1登录相关

4.2文件上传

4.3封装

4.4sql语句


一、项目简介

互联网发展至今,无论是其理论还是技术都已经成熟,而且它广泛参与在社会中的方方面面。它让信息都可以通过网络传播,搭配信息管理工具可以很好地为人们提供服务。针对校园快递信息管理混乱,出错率高,信息安全性差,劳动强度大,费时费力等问题,采用校园驿站管理系统可以有效管理,使信息管理能够更加科学和规范。

校园驿站管理系统在Eclipse环境中,使用Java语言进行编码,使用Mysql创建数据表保存本系统产生的数据。系统可以提供信息显示和相应服务,其管理员管理快递仓库信息,管理待发货信息,管理已收快递,管理物流以及留言信息,管理员工和用户资料。员工更改物流信息,管理快递仓库信息,管理待发货信息,管理已收快递,发布留言信息。用户签收快递,查看系统公告,发布留言,查看已收快递信息,查看快递物流信息。

总之,校园驿站管理系统集中管理信息,有着保密性强,效率高,存储空间大,成本低等诸多优点。它可以降低信息管理成本,实现信息管理计算机化。


二、论文截图



三、系统项目截图

3.1管理员

管理员进入指定功能操作区之后可以管理快递仓库信息。其页面见下图。管理员在页面内增删改查快递仓库信息,查看各个快递的状态信息。

管理员进入指定功能操作区之后可以管理待发货信息。其页面见下图。管理员在页面内增删改查待发货快递信息。

 

管理员进入指定功能操作区之后可以管理已收快递信息。其页面见下图。管理员在页面内查询已收快递,修改,删除已收快递信息。 

管理员进入指定功能操作区之后可以管理物流信息。其页面见下图。管理员在页面内更改物流信息,批量删除物流信息。

 

管理员进入指定功能操作区之后可以管理留言。其页面见下图。管理员批量删除留言,针对留言内容进行留言回复。

 

3.2员工功能实现

员工进入指定功能操作区之后可以更改物流信息。其页面见下图。员工对各个快递的物流信息随时进行更新。

员工进入指定功能操作区之后可以查询已收快递。其页面见下图。员工根据快递类型,还有快递名称可以查询已收快递信息,查询出来的信息包括了快递的收件人以及收件时间等信息。

 

员工进入指定功能操作区之后可以管理待发货快递信息。其页面见下图。员工在页面内只能新增,修改,查询待发货快递信息。

 

3.3用户功能实现

 用户进入指定功能操作区之后可以签收快递。其页面见下图。用户点击签收按钮即可快速签收快递。

用户进入指定功能操作区之后可以查看公告。其页面见下图。公告信息太多时,可以使用公告查询功能快速获取指定的公告。

 

用户进入指定功能操作区之后可以发布留言。其页面见下图。用户查看之前的留言和回复,也能点击留言按钮发布新的留言。

 


四、核心代码

4.1登录相关

  1. package com.controller;
  2. import java.util.Arrays;
  3. import java.util.Calendar;
  4. import java.util.Date;
  5. import java.util.Map;
  6. import javax.servlet.http.HttpServletRequest;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.stereotype.Controller;
  9. import org.springframework.web.bind.annotation.GetMapping;
  10. import org.springframework.web.bind.annotation.PathVariable;
  11. import org.springframework.web.bind.annotation.PostMapping;
  12. import org.springframework.web.bind.annotation.RequestBody;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.web.bind.annotation.RequestParam;
  15. import org.springframework.web.bind.annotation.ResponseBody;
  16. import org.springframework.web.bind.annotation.RestController;
  17. import com.annotation.IgnoreAuth;
  18. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  19. import com.entity.TokenEntity;
  20. import com.entity.UserEntity;
  21. import com.service.TokenService;
  22. import com.service.UserService;
  23. import com.utils.CommonUtil;
  24. import com.utils.MD5Util;
  25. import com.utils.MPUtil;
  26. import com.utils.PageUtils;
  27. import com.utils.R;
  28. import com.utils.ValidatorUtils;
  29. /**
  30. * 登录相关
  31. */
  32. @RequestMapping("users")
  33. @RestController
  34. public class UserController{
  35. @Autowired
  36. private UserService userService;
  37. @Autowired
  38. private TokenService tokenService;
  39. /**
  40. * 登录
  41. */
  42. @IgnoreAuth
  43. @PostMapping(value = "/login")
  44. public R login(String username, String password, String captcha, HttpServletRequest request) {
  45. UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
  46. if(user==null || !user.getPassword().equals(password)) {
  47. return R.error("账号或密码不正确");
  48. }
  49. String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
  50. return R.ok().put("token", token);
  51. }
  52. /**
  53. * 注册
  54. */
  55. @IgnoreAuth
  56. @PostMapping(value = "/register")
  57. public R register(@RequestBody UserEntity user){
  58. // ValidatorUtils.validateEntity(user);
  59. if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
  60. return R.error("用户已存在");
  61. }
  62. userService.insert(user);
  63. return R.ok();
  64. }
  65. /**
  66. * 退出
  67. */
  68. @GetMapping(value = "logout")
  69. public R logout(HttpServletRequest request) {
  70. request.getSession().invalidate();
  71. return R.ok("退出成功");
  72. }
  73. /**
  74. * 密码重置
  75. */
  76. @IgnoreAuth
  77. @RequestMapping(value = "/resetPass")
  78. public R resetPass(String username, HttpServletRequest request){
  79. UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
  80. if(user==null) {
  81. return R.error("账号不存在");
  82. }
  83. user.setPassword("123456");
  84. userService.update(user,null);
  85. return R.ok("密码已重置为:123456");
  86. }
  87. /**
  88. * 列表
  89. */
  90. @RequestMapping("/page")
  91. public R page(@RequestParam Map<String, Object> params,UserEntity user){
  92. EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
  93. PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
  94. return R.ok().put("data", page);
  95. }
  96. /**
  97. * 列表
  98. */
  99. @RequestMapping("/list")
  100. public R list( UserEntity user){
  101. EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();
  102. ew.allEq(MPUtil.allEQMapPre( user, "user"));
  103. return R.ok().put("data", userService.selectListView(ew));
  104. }
  105. /**
  106. * 信息
  107. */
  108. @RequestMapping("/info/{id}")
  109. public R info(@PathVariable("id") String id){
  110. UserEntity user = userService.selectById(id);
  111. return R.ok().put("data", user);
  112. }
  113. /**
  114. * 获取用户的session用户信息
  115. */
  116. @RequestMapping("/session")
  117. public R getCurrUser(HttpServletRequest request){
  118. Long id = (Long)request.getSession().getAttribute("userId");
  119. UserEntity user = userService.selectById(id);
  120. return R.ok().put("data", user);
  121. }
  122. /**
  123. * 保存
  124. */
  125. @PostMapping("/save")
  126. public R save(@RequestBody UserEntity user){
  127. // ValidatorUtils.validateEntity(user);
  128. if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
  129. return R.error("用户已存在");
  130. }
  131. userService.insert(user);
  132. return R.ok();
  133. }
  134. /**
  135. * 修改
  136. */
  137. @RequestMapping("/update")
  138. public R update(@RequestBody UserEntity user){
  139. // ValidatorUtils.validateEntity(user);
  140. userService.updateById(user);//全部更新
  141. return R.ok();
  142. }
  143. /**
  144. * 删除
  145. */
  146. @RequestMapping("/delete")
  147. public R delete(@RequestBody Long[] ids){
  148. userService.deleteBatchIds(Arrays.asList(ids));
  149. return R.ok();
  150. }
  151. }

4.2文件上传

  1. package com.controller;
  2. import java.io.File;
  3. import java.io.FileNotFoundException;
  4. import java.io.IOException;
  5. import java.util.Arrays;
  6. import java.util.Date;
  7. import java.util.HashMap;
  8. import java.util.List;
  9. import java.util.Map;
  10. import java.util.Random;
  11. import java.util.UUID;
  12. import org.apache.commons.io.FileUtils;
  13. import org.apache.commons.lang3.StringUtils;
  14. import org.springframework.beans.factory.annotation.Autowired;
  15. import org.springframework.http.HttpHeaders;
  16. import org.springframework.http.HttpStatus;
  17. import org.springframework.http.MediaType;
  18. import org.springframework.http.ResponseEntity;
  19. import org.springframework.util.ResourceUtils;
  20. import org.springframework.web.bind.annotation.PathVariable;
  21. import org.springframework.web.bind.annotation.RequestBody;
  22. import org.springframework.web.bind.annotation.RequestMapping;
  23. import org.springframework.web.bind.annotation.RequestParam;
  24. import org.springframework.web.bind.annotation.RestController;
  25. import org.springframework.web.multipart.MultipartFile;
  26. import com.annotation.IgnoreAuth;
  27. import com.baomidou.mybatisplus.mapper.EntityWrapper;
  28. import com.entity.ConfigEntity;
  29. import com.entity.EIException;
  30. import com.service.ConfigService;
  31. import com.utils.R;
  32. /**
  33. * 上传文件映射表
  34. */
  35. @RestController
  36. @RequestMapping("file")
  37. @SuppressWarnings({"unchecked","rawtypes"})
  38. public class FileController{
  39. @Autowired
  40. private ConfigService configService;
  41. /**
  42. * 上传文件
  43. */
  44. @RequestMapping("/upload")
  45. public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception {
  46. if (file.isEmpty()) {
  47. throw new EIException("上传文件不能为空");
  48. }
  49. String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
  50. File path = new File(ResourceUtils.getURL("classpath:static").getPath());
  51. if(!path.exists()) {
  52. path = new File("");
  53. }
  54. File upload = new File(path.getAbsolutePath(),"/upload/");
  55. if(!upload.exists()) {
  56. upload.mkdirs();
  57. }
  58. String fileName = new Date().getTime()+"."+fileExt;
  59. File dest = new File(upload.getAbsolutePath()+"/"+fileName);
  60. file.transferTo(dest);
  61. FileUtils.copyFile(dest, new File("C:\\Users\\Desktop\\jiadian\\springbootl7own\\src\\main\\resources\\static\\upload"+"/"+fileName));
  62. if(StringUtils.isNotBlank(type) && type.equals("1")) {
  63. ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
  64. if(configEntity==null) {
  65. configEntity = new ConfigEntity();
  66. configEntity.setName("faceFile");
  67. configEntity.setValue(fileName);
  68. } else {
  69. configEntity.setValue(fileName);
  70. }
  71. configService.insertOrUpdate(configEntity);
  72. }
  73. return R.ok().put("file", fileName);
  74. }
  75. /**
  76. * 下载文件
  77. */
  78. @IgnoreAuth
  79. @RequestMapping("/download")
  80. public ResponseEntity<byte[]> download(@RequestParam String fileName) {
  81. try {
  82. File path = new File(ResourceUtils.getURL("classpath:static").getPath());
  83. if(!path.exists()) {
  84. path = new File("");
  85. }
  86. File upload = new File(path.getAbsolutePath(),"/upload/");
  87. if(!upload.exists()) {
  88. upload.mkdirs();
  89. }
  90. File file = new File(upload.getAbsolutePath()+"/"+fileName);
  91. if(file.exists()){
  92. /*if(!fileService.canRead(file, SessionManager.getSessionUser())){
  93. getResponse().sendError(403);
  94. }*/
  95. HttpHeaders headers = new HttpHeaders();
  96. headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);
  97. headers.setContentDispositionFormData("attachment", fileName);
  98. return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);
  99. }
  100. } catch (IOException e) {
  101. e.printStackTrace();
  102. }
  103. return new ResponseEntity<byte[]>(HttpStatus.INTERNAL_SERVER_ERROR);
  104. }
  105. }

4.3封装

  1. package com.utils;
  2. import java.util.HashMap;
  3. import java.util.Map;
  4. /**
  5. * 返回数据
  6. */
  7. public class R extends HashMap<String, Object> {
  8. private static final long serialVersionUID = 1L;
  9. public R() {
  10. put("code", 0);
  11. }
  12. public static R error() {
  13. return error(500, "未知异常,请联系管理员");
  14. }
  15. public static R error(String msg) {
  16. return error(500, msg);
  17. }
  18. public static R error(int code, String msg) {
  19. R r = new R();
  20. r.put("code", code);
  21. r.put("msg", msg);
  22. return r;
  23. }
  24. public static R ok(String msg) {
  25. R r = new R();
  26. r.put("msg", msg);
  27. return r;
  28. }
  29. public static R ok(Map<String, Object> map) {
  30. R r = new R();
  31. r.putAll(map);
  32. return r;
  33. }
  34. public static R ok() {
  35. return new R();
  36. }
  37. public R put(String key, Object value) {
  38. super.put(key, value);
  39. return this;
  40. }
  41. }

4.4sql语句

  1. /*
  2. SQLyog Ultimate v11.3 (64 bit)
  3. MySQL - 5.7.32-log : Database - yz-ssmj
  4. *********************************************************************
  5. */
  6. /*!40101 SET NAMES utf8 */;
  7. /*!40101 SET SQL_MODE=''*/;
  8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  12. CREATE DATABASE /*!32312 IF NOT EXISTS*/`yz-ssmj` /*!40100 DEFAULT CHARACTER SET utf8 */;
  13. USE `yz-ssmj`;
  14. /*Table structure for table `cangkuxinxi` */
  15. DROP TABLE IF EXISTS `cangkuxinxi`;
  16. CREATE TABLE `cangkuxinxi` (
  17. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  18. `logistics` varchar(255) DEFAULT NULL COMMENT '物流单号',
  19. `name` varchar(255) DEFAULT NULL COMMENT '快递名称 Search',
  20. `kd_types` tinyint(4) DEFAULT NULL COMMENT '快递类型 Search',
  21. `courier` varchar(255) DEFAULT NULL COMMENT '送件人',
  22. `cmobile` varchar(255) DEFAULT NULL COMMENT '手机号',
  23. `warehouse_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '入库时间',
  24. `recipients` varchar(255) DEFAULT NULL COMMENT '收件人',
  25. `rmobile` varchar(255) DEFAULT NULL COMMENT '手机号',
  26. `consigneeaddress` varchar(255) DEFAULT NULL COMMENT '收件地址',
  27. `express_types` tinyint(4) DEFAULT NULL COMMENT '快递状态 Search',
  28. `notice_content` varchar(255) DEFAULT NULL COMMENT '描述信息',
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='快递仓库信息表';
  31. /*Data for the table `cangkuxinxi` */
  32. insert into `cangkuxinxi`(`id`,`logistics`,`name`,`kd_types`,`courier`,`cmobile`,`warehouse_time`,`recipients`,`rmobile`,`consigneeaddress`,`express_types`,`notice_content`) values (2,'1613972207059','快递1',2,'123','123','2021-02-22 14:16:41','321','321','321123',1,'这里是描述信息\r\n');
  33. insert into `cangkuxinxi`(`id`,`logistics`,`name`,`kd_types`,`courier`,`cmobile`,`warehouse_time`,`recipients`,`rmobile`,`consigneeaddress`,`express_types`,`notice_content`) values (3,'1613972207058','快递2',2,'123','123','2021-02-22 14:16:33','321','321','321123',1,'这里是描述信息\r\n');
  34. insert into `cangkuxinxi`(`id`,`logistics`,`name`,`kd_types`,`courier`,`cmobile`,`warehouse_time`,`recipients`,`rmobile`,`consigneeaddress`,`express_types`,`notice_content`) values (4,'1613980789482','快递33',1,'123','123','2021-02-22 15:59:53','123','123','123',2,'');
  35. insert into `cangkuxinxi`(`id`,`logistics`,`name`,`kd_types`,`courier`,`cmobile`,`warehouse_time`,`recipients`,`rmobile`,`consigneeaddress`,`express_types`,`notice_content`) values (5,'1613980815812','快递44',3,'123','123','2021-02-22 16:00:16','31234','12515','61616',1,'5123\r\n');
  36. /*Table structure for table `config` */
  37. DROP TABLE IF EXISTS `config`;
  38. CREATE TABLE `config` (
  39. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  40. `name` varchar(100) NOT NULL COMMENT '配置参数名称',
  41. `value` varchar(100) DEFAULT NULL COMMENT '配置参数值',
  42. PRIMARY KEY (`id`)
  43. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='配置文件';
  44. /*Data for the table `config` */
  45. insert into `config`(`id`,`name`,`value`) values (1,'picture1','http://localhost:8080/fd-ssmj/upload/1613705295135.jpg');
  46. insert into `config`(`id`,`name`,`value`) values (2,'picture2','http://localhost:8080/fd-ssmj/upload/1613705301525.jpg');
  47. insert into `config`(`id`,`name`,`value`) values (3,'picture3','http://localhost:8080/fd-ssmj/upload/1613799912302.JPG');
  48. insert into `config`(`id`,`name`,`value`) values (4,'picture4','http://localhost:8080/fd-ssmj/upload/1613705325348.jpg');
  49. insert into `config`(`id`,`name`,`value`) values (5,'picture5','http://localhost:8080/fd-ssmj/upload/1613705332544.jpg');
  50. insert into `config`(`id`,`name`,`value`) values (6,'homepage','http://localhost:8080/fd-ssmj/upload/1613705342094.jpg');
  51. /*Table structure for table `dictionary` */
  52. DROP TABLE IF EXISTS `dictionary`;
  53. CREATE TABLE `dictionary` (
  54. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  55. `dic_code` varchar(200) DEFAULT NULL COMMENT '字段',
  56. `dic_name` varchar(200) DEFAULT NULL COMMENT '字段名',
  57. `code_index` tinyint(4) DEFAULT NULL COMMENT '编码',
  58. `index_name` varchar(200) DEFAULT NULL COMMENT '编码名字',
  59. `super_id` int(11) DEFAULT NULL COMMENT '父字段id',
  60. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  61. PRIMARY KEY (`id`)
  62. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='字典表';
  63. /*Data for the table `dictionary` */
  64. insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`create_time`) values (1,'kd_types','快递类型',3,'小件',NULL,'2021-01-25 11:41:54');
  65. insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`create_time`) values (2,'kd_types','快递类型',2,'中件',NULL,'2021-01-25 11:41:54');
  66. insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`create_time`) values (3,'kd_types','快递类型',1,'大件',NULL,'2021-01-25 11:41:54');
  67. insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`create_time`) values (7,'express_types','快递状态',1,'已签收',NULL,'2021-02-22 11:33:04');
  68. insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`create_time`) values (8,'express_types','快递状态',2,'未签收',NULL,'2021-02-22 11:33:05');
  69. /*Table structure for table `fahuoxinxi` */
  70. DROP TABLE IF EXISTS `fahuoxinxi`;
  71. CREATE TABLE `fahuoxinxi` (
  72. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  73. `logistics` varchar(255) DEFAULT NULL COMMENT '物流单号',
  74. `name` varchar(255) DEFAULT NULL COMMENT '快递名称 Search',
  75. `kd_types` tinyint(4) DEFAULT NULL COMMENT '快递类型 Search',
  76. `addresser` varchar(255) DEFAULT NULL COMMENT '发件人',
  77. `yhid` int(11) DEFAULT NULL COMMENT '用户id',
  78. `amobile` varchar(255) DEFAULT NULL COMMENT '手机号',
  79. `consigneeaddress` varchar(255) DEFAULT NULL COMMENT '收件地址',
  80. `recipients` varchar(255) DEFAULT NULL COMMENT '收件人',
  81. `rmobile` varchar(255) DEFAULT NULL COMMENT '手机号',
  82. `shipments_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '发货时间',
  83. `notice_content` varchar(255) DEFAULT NULL COMMENT '描述信息',
  84. `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  85. PRIMARY KEY (`id`)
  86. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='发货表';
  87. /*Data for the table `fahuoxinxi` */
  88. insert into `fahuoxinxi`(`id`,`logistics`,`name`,`kd_types`,`addresser`,`yhid`,`amobile`,`consigneeaddress`,`recipients`,`rmobile`,`shipments_time`,`notice_content`,`update_time`) values (2,'1613977091565','快递11',3,'123',1,'123','123','123','123','2021-02-22 14:58:12','123\r\n',NULL);
  89. insert into `fahuoxinxi`(`id`,`logistics`,`name`,`kd_types`,`addresser`,`yhid`,`amobile`,`consigneeaddress`,`recipients`,`rmobile`,`shipments_time`,`notice_content`,`update_time`) values (3,'1613979260499','快递222',3,'123',2,'123','123','123','123','2021-02-22 15:34:21','123\r\n',NULL);
  90. insert into `fahuoxinxi`(`id`,`logistics`,`name`,`kd_types`,`addresser`,`yhid`,`amobile`,`consigneeaddress`,`recipients`,`rmobile`,`shipments_time`,`notice_content`,`update_time`) values (5,'1613981162336','快递222',3,'123',4,'132','132','132','13','2021-04-06 14:57:42','132\r\n','2021-04-06 15:01:19');
  91. /*Table structure for table `liuyanxinxi` */
  92. DROP TABLE IF EXISTS `liuyanxinxi`;
  93. CREATE TABLE `liuyanxinxi` (
  94. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  95. `note` varchar(255) DEFAULT NULL COMMENT '留言信息',
  96. `yhnote` varchar(11) DEFAULT NULL COMMENT '留言人',
  97. `note_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '留言时间 Search',
  98. `reply` varchar(255) DEFAULT NULL COMMENT '回复',
  99. `glreply` varchar(11) DEFAULT NULL COMMENT '回复人',
  100. `reply_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '回复时间 Search',
  101. PRIMARY KEY (`id`)
  102. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
  103. /*Data for the table `liuyanxinxi` */
  104. insert into `liuyanxinxi`(`id`,`note`,`yhnote`,`note_time`,`reply`,`glreply`,`reply_time`) values (4,'1231111','admin','2021-02-22 17:34:43','只有管理员可以回复','admin','2021-02-22 17:34:43');
  105. insert into `liuyanxinxi`(`id`,`note`,`yhnote`,`note_time`,`reply`,`glreply`,`reply_time`) values (6,'123123','小札','2021-02-22 17:34:43',NULL,NULL,'2021-02-22 17:34:43');
  106. insert into `liuyanxinxi`(`id`,`note`,`yhnote`,`note_time`,`reply`,`glreply`,`reply_time`) values (7,'13132123','admin','2021-02-22 16:01:56','123231231','admin','2021-02-22 16:01:56');
  107. insert into `liuyanxinxi`(`id`,`note`,`yhnote`,`note_time`,`reply`,`glreply`,`reply_time`) values (8,'123123','员工1','2021-02-22 16:02:49',NULL,NULL,NULL);
  108. insert into `liuyanxinxi`(`id`,`note`,`yhnote`,`note_time`,`reply`,`glreply`,`reply_time`) values (9,'32312312','1','2021-02-22 16:06:15',NULL,NULL,NULL);
  109. /*Table structure for table `shoujianxinxi` */
  110. DROP TABLE IF EXISTS `shoujianxinxi`;
  111. CREATE TABLE `shoujianxinxi` (
  112. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  113. `logistics` varchar(255) DEFAULT NULL COMMENT '物流单号',
  114. `name` varchar(255) DEFAULT NULL COMMENT '快递名称 Search',
  115. `kd_types` tinyint(4) DEFAULT NULL COMMENT '快递类型 Search',
  116. `yhid` int(11) DEFAULT NULL COMMENT '签收人',
  117. `recipients` varchar(255) DEFAULT NULL COMMENT '收件人',
  118. `rmobile` varchar(255) DEFAULT NULL COMMENT '手机号',
  119. `consigneeaddress` varchar(255) DEFAULT NULL COMMENT '收件地址',
  120. `addressee_time` timestamp(4) NULL DEFAULT NULL COMMENT '收件时间',
  121. `notice_content` varchar(255) DEFAULT NULL COMMENT '备注信息',
  122. `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  123. PRIMARY KEY (`id`)
  124. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='快递仓库信息表';
  125. /*Data for the table `shoujianxinxi` */
  126. insert into `shoujianxinxi`(`id`,`logistics`,`name`,`kd_types`,`yhid`,`recipients`,`rmobile`,`consigneeaddress`,`addressee_time`,`notice_content`,`update_time`) values (5,'1613972207059','快递1',2,1,'321','321','321123','2021-02-22 15:26:30.1240','暂无备注信息',NULL);
  127. insert into `shoujianxinxi`(`id`,`logistics`,`name`,`kd_types`,`yhid`,`recipients`,`rmobile`,`consigneeaddress`,`addressee_time`,`notice_content`,`update_time`) values (6,'1613980815812','快递44',3,4,'31234qqq','12515qq','61616q','2021-02-22 16:05:27.4170','暂无备注信息',NULL);
  128. /*Table structure for table `token` */
  129. DROP TABLE IF EXISTS `token`;
  130. CREATE TABLE `token` (
  131. `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  132. `userid` int(20) NOT NULL COMMENT '用户id',
  133. `username` varchar(100) NOT NULL COMMENT '用户名',
  134. `tablename` varchar(100) DEFAULT NULL COMMENT '表名',
  135. `role` varchar(100) DEFAULT NULL COMMENT '角色',
  136. `token` varchar(200) NOT NULL COMMENT '密码',
  137. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  138. `expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',
  139. PRIMARY KEY (`id`) USING BTREE
  140. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='token表';
  141. /*Data for the table `token` */
  142. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'admin','users','管理员','rjdgnep0c57qju2y37lpvkjeceqy0y80','2021-01-28 18:04:51','2021-04-06 15:45:20');
  143. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (2,1,'小札','users','用户','774h9xjd9yg9d1zoy2d1wl7x0aj3x0tm','2021-02-03 16:33:33','2021-02-22 16:16:18');
  144. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (3,1,'员工1','users','员工','apzc2ymlaidr1wsldenwbhiyvp7rwqp5','2021-02-22 15:14:58','2021-02-22 17:02:10');
  145. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (4,2,'小站','users','用户','tebjhfvztwgkeau95rxtflfr4jri091z','2021-02-22 15:30:49','2021-02-22 16:30:50');
  146. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (5,3,'333','users','用户','4s41lu4s0oo8pjp28rtjmrowmwz8rycu','2021-02-22 15:44:43','2021-02-22 16:44:43');
  147. insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (6,4,'1','users','用户','a1jjda0tgc4xkh464jduzlqbesztlfbu','2021-02-22 16:03:07','2021-02-22 17:03:07');
  148. /*Table structure for table `users` */
  149. DROP TABLE IF EXISTS `users`;
  150. CREATE TABLE `users` (
  151. `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  152. `username` varchar(100) NOT NULL COMMENT '用户名',
  153. `password` varchar(100) NOT NULL COMMENT '密码',
  154. `role` varchar(100) NOT NULL DEFAULT '管理员' COMMENT '角色',
  155. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  156. PRIMARY KEY (`id`) USING BTREE
  157. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户表';
  158. /*Data for the table `users` */
  159. insert into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'admin','admin','管理员','2021-01-28 18:04:51');
  160. /*Table structure for table `wuliuxinxi` */
  161. DROP TABLE IF EXISTS `wuliuxinxi`;
  162. CREATE TABLE `wuliuxinxi` (
  163. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  164. `logistics` varchar(255) DEFAULT NULL COMMENT '物流单号',
  165. `name` varchar(255) DEFAULT NULL COMMENT '快递名称',
  166. `wuliu` varchar(255) DEFAULT NULL COMMENT '物流信息',
  167. `yhid` int(11) DEFAULT NULL COMMENT '用户id',
  168. PRIMARY KEY (`id`)
  169. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
  170. /*Data for the table `wuliuxinxi` */
  171. insert into `wuliuxinxi`(`id`,`logistics`,`name`,`wuliu`,`yhid`) values (2,'1613977091565','快递11','已到达xxx城市',1);
  172. insert into `wuliuxinxi`(`id`,`logistics`,`name`,`wuliu`,`yhid`) values (3,'1613979260499','快递222','已打包',2);
  173. insert into `wuliuxinxi`(`id`,`logistics`,`name`,`wuliu`,`yhid`) values (5,'1613981162336','快递222','暂无物流信息',4);
  174. insert into `wuliuxinxi`(`id`,`logistics`,`name`,`wuliu`,`yhid`) values (6,'1617692088644','421421','暂无物流信息',1);
  175. /*Table structure for table `xitonggonggao` */
  176. DROP TABLE IF EXISTS `xitonggonggao`;
  177. CREATE TABLE `xitonggonggao` (
  178. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  179. `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  180. `biaoti` varchar(200) DEFAULT NULL COMMENT '标题 Search',
  181. `leixing` varchar(200) DEFAULT NULL COMMENT '类型',
  182. `neirong` longtext COMMENT '内容',
  183. `riqi` datetime DEFAULT NULL COMMENT '日期',
  184. PRIMARY KEY (`id`) USING BTREE
  185. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='系统公告';
  186. /*Data for the table `xitonggonggao` */
  187. insert into `xitonggonggao`(`id`,`addtime`,`biaoti`,`leixing`,`neirong`,`riqi`) values (1,'2021-02-22 17:34:43','公告标题1','日常公告','公告信息','2021-02-22 17:34:43');
  188. insert into `xitonggonggao`(`id`,`addtime`,`biaoti`,`leixing`,`neirong`,`riqi`) values (2,'2021-02-22 17:34:43','公告标题2','紧急公告','公告信息','2021-02-22 17:34:43');
  189. insert into `xitonggonggao`(`id`,`addtime`,`biaoti`,`leixing`,`neirong`,`riqi`) values (3,'2021-02-22 17:34:43','公告标题3','其他公告','公告信息','2021-02-22 17:34:43');
  190. /*Table structure for table `yonghuxinxi` */
  191. DROP TABLE IF EXISTS `yonghuxinxi`;
  192. CREATE TABLE `yonghuxinxi` (
  193. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  194. `name` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户名称 Search',
  195. `account` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '账号',
  196. `password` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '密码',
  197. `img_photo` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '头像',
  198. `role` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '身份',
  199. PRIMARY KEY (`id`)
  200. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  201. /*Data for the table `yonghuxinxi` */
  202. insert into `yonghuxinxi`(`id`,`name`,`account`,`password`,`img_photo`,`role`) values (1,'小札','111','111','http://localhost:8080/yz-ssmj/file/download?fileName=1613980226936.jpg','用户');
  203. insert into `yonghuxinxi`(`id`,`name`,`account`,`password`,`img_photo`,`role`) values (2,'小站','222','222','http://localhost:8080/yz-ssmj/file/download?fileName=1613980368653.jpg','用户');
  204. insert into `yonghuxinxi`(`id`,`name`,`account`,`password`,`img_photo`,`role`) values (4,'1','1','1','http://localhost:8080/yz-ssmj/file/download?fileName=1613980998106.JPG','用户');
  205. /*Table structure for table `yuangongxinxi` */
  206. DROP TABLE IF EXISTS `yuangongxinxi`;
  207. CREATE TABLE `yuangongxinxi` (
  208. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  209. `name` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户名称 Search',
  210. `account` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '账号',
  211. `password` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '密码',
  212. `img_photo` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '头像',
  213. `role` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '身份',
  214. PRIMARY KEY (`id`)
  215. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
  216. /*Data for the table `yuangongxinxi` */
  217. insert into `yuangongxinxi`(`id`,`name`,`account`,`password`,`img_photo`,`role`) values (1,'员工1','111','111','http://localhost:8080/yz-ssmj/file/download?fileName=1613980247357.JPG','员工');
  218. insert into `yuangongxinxi`(`id`,`name`,`account`,`password`,`img_photo`,`role`) values (2,'员工2','222','222','http://localhost:8080/yz-ssmj/file/download?fileName=1613980241202.JPG','员工');
  219. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  220. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  221. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  222. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/155583
推荐阅读
相关标签
  

闽ICP备14008679号