From b9d7dfe6666ec51db69a70afdf82c22a7352d747 Mon Sep 17 00:00:00 2001 From: Yuxianglei <1524982264@qq.com> Date: Tue, 29 Apr 2025 19:16:47 +0800 Subject: [PATCH] Initial commit --- .idea/.gitignore | 3 + .idea/modules.xml | 8 + ...6校园快递一站式服务系统+jsp.iml | 9 + .idea/vcs.xml | 6 + db.sql | 217 +++++ kuaidizhan/pom.xml | 296 +++++++ .../java/com/annotation/APPLoginUser.java | 15 + .../main/java/com/annotation/IgnoreAuth.java | 13 + .../main/java/com/annotation/LoginUser.java | 15 + .../java/com/config/MyMetaObjectHandler.java | 28 + .../main/java/com/entity/ConfigEntity.java | 55 ++ .../src/main/java/com/entity/DaiquEntity.java | 274 +++++++ .../main/java/com/entity/DaiqurenEntity.java | 248 ++++++ .../java/com/entity/DictionaryEntity.java | 226 ++++++ .../src/main/java/com/entity/EIException.java | 52 ++ .../main/java/com/entity/JiedanEntity.java | 328 ++++++++ .../src/main/java/com/entity/TokenEntity.java | 132 +++ .../src/main/java/com/entity/UserEntity.java | 73 ++ .../main/java/com/entity/YijiedanEntity.java | 250 ++++++ .../main/java/com/entity/YonghuEntity.java | 329 ++++++++ .../main/java/com/entity/ZhandianEntity.java | 128 +++ .../java/com/entity/model/DaiquModel.java | 210 +++++ .../java/com/entity/model/DaiqurenModel.java | 188 +++++ .../com/entity/model/DictionaryModel.java | 170 ++++ .../java/com/entity/model/JiedanModel.java | 250 ++++++ .../java/com/entity/model/YijiedanModel.java | 190 +++++ .../java/com/entity/model/YonghuModel.java | 248 ++++++ .../java/com/entity/model/ZhandianModel.java | 88 ++ .../main/java/com/entity/view/DaiquView.java | 315 ++++++++ .../java/com/entity/view/DaiqurenView.java | 67 ++ .../java/com/entity/view/DictionaryView.java | 59 ++ .../main/java/com/entity/view/JiedanView.java | 107 +++ .../java/com/entity/view/YijiedanView.java | 269 +++++++ .../main/java/com/entity/view/YonghuView.java | 67 ++ .../java/com/entity/view/ZhandianView.java | 51 ++ .../src/main/java/com/entity/vo/DaiquVO.java | 235 ++++++ .../main/java/com/entity/vo/DaiqurenVO.java | 210 +++++ .../main/java/com/entity/vo/DictionaryVO.java | 189 +++++ .../src/main/java/com/entity/vo/JiedanVO.java | 275 +++++++ .../main/java/com/entity/vo/YijiedanVO.java | 212 +++++ .../src/main/java/com/entity/vo/YonghuVO.java | 279 +++++++ .../main/java/com/entity/vo/ZhandianVO.java | 95 +++ .../interceptor/AuthorizationInterceptor.java | 88 ++ .../main/java/com/model/enums/TypeEnum.java | 31 + kuaidizhan/src/main/webapp/index.jsp | 125 +++ kuaidizhan/src/main/webapp/jsp/login.jsp | 107 +++ .../main/webapp/jsp/modules/center/info.jsp | 257 ++++++ .../jsp/modules/center/updatePassword.jsp | 246 ++++++ .../jsp/modules/daiqu/add-or-update.jsp | 683 ++++++++++++++++ .../main/webapp/jsp/modules/daiqu/info.jsp | 327 ++++++++ .../main/webapp/jsp/modules/daiqu/list.jsp | 757 ++++++++++++++++++ .../jsp/modules/daiquren/add-or-update.jsp | 487 +++++++++++ .../main/webapp/jsp/modules/daiquren/info.jsp | 245 ++++++ .../main/webapp/jsp/modules/daiquren/list.jsp | 607 ++++++++++++++ .../jsp/modules/dictionary/add-or-update.jsp | 449 +++++++++++ .../webapp/jsp/modules/dictionary/info.jsp | 233 ++++++ .../webapp/jsp/modules/dictionary/list.jsp | 527 ++++++++++++ .../forgetThePassword/forgetThePassword.jsp | 263 ++++++ .../main/webapp/jsp/static/crossBtnControl.js | 26 + .../src/main/webapp/jsp/static/foot.jsp | 13 + .../main/webapp/jsp/static/getRoleButtons.js | 41 + .../src/main/webapp/jsp/static/head.jsp | 25 + .../src/main/webapp/jsp/static/iframeAuto.js | 32 + .../src/main/webapp/jsp/static/logout.jsp | 22 + .../src/main/webapp/jsp/static/myInfo.js | 15 + .../src/main/webapp/jsp/static/setMenu.js | 51 ++ .../src/main/webapp/jsp/static/toLogin.jsp | 5 + .../src/main/webapp/jsp/static/topNav.jsp | 0 .../src/main/webapp/jsp/utils/baseUrl.jsp | 69 ++ kuaidizhan/src/main/webapp/jsp/utils/menu.jsp | 219 +++++ 70 files changed, 12429 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/ssm076校园快递一站式服务系统+jsp.iml create mode 100644 .idea/vcs.xml create mode 100644 db.sql create mode 100644 kuaidizhan/pom.xml create mode 100644 kuaidizhan/src/main/java/com/annotation/APPLoginUser.java create mode 100644 kuaidizhan/src/main/java/com/annotation/IgnoreAuth.java create mode 100644 kuaidizhan/src/main/java/com/annotation/LoginUser.java create mode 100644 kuaidizhan/src/main/java/com/config/MyMetaObjectHandler.java create mode 100644 kuaidizhan/src/main/java/com/entity/ConfigEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/DaiquEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/DaiqurenEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/DictionaryEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/EIException.java create mode 100644 kuaidizhan/src/main/java/com/entity/JiedanEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/TokenEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/UserEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/YijiedanEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/YonghuEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/ZhandianEntity.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/DaiquModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/DaiqurenModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/DictionaryModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/JiedanModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/YijiedanModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/YonghuModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/model/ZhandianModel.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/DaiquView.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/DaiqurenView.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/DictionaryView.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/JiedanView.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/YijiedanView.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/YonghuView.java create mode 100644 kuaidizhan/src/main/java/com/entity/view/ZhandianView.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/DaiquVO.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/DaiqurenVO.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/DictionaryVO.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/JiedanVO.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/YijiedanVO.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/YonghuVO.java create mode 100644 kuaidizhan/src/main/java/com/entity/vo/ZhandianVO.java create mode 100644 kuaidizhan/src/main/java/com/interceptor/AuthorizationInterceptor.java create mode 100644 kuaidizhan/src/main/java/com/model/enums/TypeEnum.java create mode 100644 kuaidizhan/src/main/webapp/index.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/login.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/center/info.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/center/updatePassword.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/daiqu/add-or-update.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/daiqu/info.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/daiqu/list.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/daiquren/add-or-update.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/daiquren/info.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/daiquren/list.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/dictionary/add-or-update.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/dictionary/info.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/dictionary/list.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/modules/forgetThePassword/forgetThePassword.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/static/crossBtnControl.js create mode 100644 kuaidizhan/src/main/webapp/jsp/static/foot.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/static/getRoleButtons.js create mode 100644 kuaidizhan/src/main/webapp/jsp/static/head.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/static/iframeAuto.js create mode 100644 kuaidizhan/src/main/webapp/jsp/static/logout.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/static/myInfo.js create mode 100644 kuaidizhan/src/main/webapp/jsp/static/setMenu.js create mode 100644 kuaidizhan/src/main/webapp/jsp/static/toLogin.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/static/topNav.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/utils/baseUrl.jsp create mode 100644 kuaidizhan/src/main/webapp/jsp/utils/menu.jsp diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..96acda6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/ssm076校园快递一站式服务系统+jsp.iml b/.idea/ssm076校园快递一站式服务系统+jsp.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/ssm076校园快递一站式服务系统+jsp.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/db.sql b/db.sql new file mode 100644 index 0000000..c4ca4e9 --- /dev/null +++ b/db.sql @@ -0,0 +1,217 @@ +/* +SQLyog Ultimate v11.3 (64 bit) +MySQL - 5.7.32-log : Database - kuaidizhan +********************************************************************* +*/ + +/*!40101 SET NAMES utf8 */; + +/*!40101 SET SQL_MODE=''*/; + +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +CREATE DATABASE /*!32312 IF NOT EXISTS*/`kuaidizhan` /*!40100 DEFAULT CHARACTER SET utf8 */; + +USE `kuaidizhan`; + +/*Table structure for table `config` */ + +DROP TABLE IF EXISTS `config`; + +CREATE TABLE `config` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `name` varchar(100) NOT NULL COMMENT '配置参数名称', + `value` varchar(100) DEFAULT NULL COMMENT '配置参数值', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='配置文件'; + +/*Data for the table `config` */ + +insert into `config`(`id`,`name`,`value`) values (1,'picture1','http://localhost:8080/fd-ssmj/upload/1613705295135.jpg'),(2,'picture2','http://localhost:8080/fd-ssmj/upload/1613705301525.jpg'),(3,'picture3','http://localhost:8080/fd-ssmj/upload/1613799912302.JPG'),(4,'picture4','http://localhost:8080/fd-ssmj/upload/1613705325348.jpg'),(5,'picture5','http://localhost:8080/fd-ssmj/upload/1613705332544.jpg'),(6,'homepage','http://localhost:8080/fd-ssmj/upload/1613705342094.jpg'); + +/*Table structure for table `daiqu` */ + +DROP TABLE IF EXISTS `daiqu`; + +CREATE TABLE `daiqu` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `dqname` varchar(200) DEFAULT NULL COMMENT '快递名称 Search111', + `zhandian_id` tinyint(4) DEFAULT NULL COMMENT '站点', + `yonghu_id` tinyint(4) DEFAULT NULL COMMENT '用户', + `kddx_types` tinyint(4) DEFAULT NULL COMMENT '快递大小 Search111', + `dqphone` varchar(200) DEFAULT NULL COMMENT '手机号', + `takecode` varchar(200) DEFAULT NULL COMMENT '取件码', + `kdzt_types` tinyint(4) DEFAULT NULL COMMENT '快递状态', + `pickup_time` datetime DEFAULT NULL COMMENT '取件时间 Search111', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='待取件表'; + +/*Data for the table `daiqu` */ + +insert into `daiqu`(`id`,`dqname`,`zhandian_id`,`yonghu_id`,`kddx_types`,`dqphone`,`takecode`,`kdzt_types`,`pickup_time`) values (6,'快递1',4,3,1,'17787788787','d4334b',2,'2021-03-12 16:15:21'),(7,'快递2',3,3,2,'17787788787','6e185e',2,'2021-03-12 16:17:59'),(11,'快递3',2,2,1,'222222222','b76997',1,NULL); + +/*Table structure for table `daiquren` */ + +DROP TABLE IF EXISTS `daiquren`; + +CREATE TABLE `daiquren` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', + `name` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户名称 Search111', + `username` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '账号', + `password` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '密码', + `sex_types` tinyint(4) DEFAULT NULL COMMENT '性别 Search111', + `img_photo` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '头像', + `phone` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '联系电话', + `role` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '身份', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=latin1; + +/*Data for the table `daiquren` */ + +insert into `daiquren`(`id`,`name`,`username`,`password`,`sex_types`,`img_photo`,`phone`,`role`) values (100,'张三','111','111',1,'http://localhost:8080/kuaidizhan/file/download?fileName=1615534764456.jpg','11111','代取人'),(101,'李四','222','222',2,'http://localhost:8080/kuaidizhan/file/download?fileName=1615534757452.jpg','22222','代取人'); + +/*Table structure for table `dictionary` */ + +DROP TABLE IF EXISTS `dictionary`; + +CREATE TABLE `dictionary` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `dic_code` varchar(200) DEFAULT NULL COMMENT '字段', + `dic_name` varchar(200) DEFAULT NULL COMMENT '字段名', + `code_index` tinyint(4) DEFAULT NULL COMMENT '编码', + `index_name` varchar(200) DEFAULT NULL COMMENT '编码名字', + `super_id` int(11) DEFAULT NULL COMMENT '父字段id', + `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='字典表'; + +/*Data for the table `dictionary` */ + +insert into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`create_time`) values (1,'sex_types','性别',1,'男',NULL,'2021-03-15 11:41:54'),(2,'sex_types','性别',2,'女',NULL,'2021-03-15 11:41:54'),(3,'kddx_types','快递大小',1,'小件',NULL,'2021-03-15 11:41:54'),(4,'kddx_types','快递大小',2,'中件',NULL,'2021-03-15 11:41:54'),(5,'kddx_types','快递大小',3,'大件',NULL,'2021-03-15 11:41:54'),(6,'kdzt_types','快递状态',1,'待取',NULL,'2021-03-15 11:41:54'),(7,'kdzt_types','快递状态',2,'已取',NULL,'2021-03-15 11:41:54'),(8,'kdzt_types','快递状态',3,'已发布订单',NULL,'2021-03-15 11:41:54'),(9,'jdzt_types','快递状态',1,'未接',NULL,'2021-03-15 11:41:54'),(10,'jdzt_types','快递状态',2,'已接',NULL,'2021-03-15 11:41:54'),(11,'kdlx_types','快递类型',1,'取件',NULL,'2021-03-15 11:41:54'),(12,'kdlx_types','快递类型',2,'寄件',NULL,'2021-03-15 11:41:54'),(13,'ddzt_types','订单状态',1,'正在路上',NULL,'2021-03-15 11:41:54'),(14,'ddzt_types','订单状态',2,'已完成',NULL,'2021-03-15 11:41:54'); + +/*Table structure for table `jiedan` */ + +DROP TABLE IF EXISTS `jiedan`; + +CREATE TABLE `jiedan` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `odd` varchar(200) DEFAULT NULL COMMENT '单号', + `daiqukuaidimc` varchar(200) DEFAULT NULL COMMENT '快递名称', + `jdyonghu_id` tinyint(4) DEFAULT NULL COMMENT '发布人', + `initiate_time` timestamp NULL DEFAULT NULL COMMENT '发布时间 Search111', + `addresseename` varchar(200) DEFAULT NULL COMMENT '收件人名称', + `jdphone` varchar(200) DEFAULT NULL COMMENT '电话', + `jdaddressee` varchar(200) DEFAULT NULL COMMENT '地址', + `jdtakecode` varchar(200) DEFAULT NULL COMMENT '(取/寄)件码', + `jdzt_types` tinyint(4) DEFAULT NULL COMMENT '快递状态 Search111', + `kdlx_types` tinyint(4) DEFAULT NULL COMMENT '快递类型 Search111', + `dx` tinyint(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='快递接单表'; + +/*Data for the table `jiedan` */ + +insert into `jiedan`(`id`,`odd`,`daiqukuaidimc`,`jdyonghu_id`,`initiate_time`,`addresseename`,`jdphone`,`jdaddressee`,`jdtakecode`,`jdzt_types`,`kdlx_types`,`dx`) values (10,'1615536950464','快递2',3,'2021-03-12 16:15:50','小王','17787788787','住宿楼栋:603 ,寝室号:603','6e185e',2,1,NULL),(11,'1615537130423','快递3',3,'2021-03-12 16:18:50','小站','222222222','住宿楼栋:321 ,寝室号:321','d070ea',2,2,1); + +/*Table structure for table `token` */ + +DROP TABLE IF EXISTS `token`; + +CREATE TABLE `token` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `userid` int(20) NOT NULL COMMENT '用户id', + `username` varchar(100) NOT NULL COMMENT '用户名', + `tablename` varchar(100) DEFAULT NULL COMMENT '表名', + `role` varchar(100) DEFAULT NULL COMMENT '角色', + `token` varchar(200) NOT NULL COMMENT '密码', + `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间', + `expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='token表'; + +/*Data for the table `token` */ + +insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (5,1,'admin','users','管理员','jdbgo9w6arggzqdo3nrrcljj6q08joaq','2021-03-04 11:02:31','2021-03-12 18:07:43'),(6,100,'111','yonghu','代取人','1jdqizh1vsl6kemi3u19w37m284xgens','2021-03-12 11:03:12','2021-03-12 17:13:26'),(7,1,'111','yonghu','用户','l5eqdbtjj882smoz7d82w7d7g76cu4jc','2021-03-12 11:44:02','2021-03-12 18:09:21'),(8,2,'222','yonghu','用户','1kovxdqfjxyg9ebqf8393mq3dotv5kcd','2021-03-12 14:55:11','2021-03-12 18:09:31'),(9,101,'222','yonghu','代取人','7kslcc46et47qrge50u7oo1ev6brmaic','2021-03-12 15:59:47','2021-03-12 17:13:32'),(10,3,'333','yonghu','用户','j3ggt0jgqd8h8bdohporm11dv37ta5n0','2021-03-12 16:13:53','2021-03-12 17:14:26'); + +/*Table structure for table `users` */ + +DROP TABLE IF EXISTS `users`; + +CREATE TABLE `users` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `username` varchar(100) NOT NULL COMMENT '用户名', + `password` varchar(100) NOT NULL COMMENT '密码', + `role` varchar(100) NOT NULL DEFAULT '管理员' COMMENT '角色', + `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户表'; + +/*Data for the table `users` */ + +insert into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'admin','admin','管理员','2021-03-01 00:00:00'); + +/*Table structure for table `yijiedan` */ + +DROP TABLE IF EXISTS `yijiedan`; + +CREATE TABLE `yijiedan` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `odd` varchar(200) DEFAULT NULL COMMENT '单号', + `yonghu_id` tinyint(4) DEFAULT NULL COMMENT '发布人', + `fbphone` varchar(200) DEFAULT NULL COMMENT '手机号', + `daiquren_id` tinyint(4) DEFAULT NULL COMMENT '接单人', + `jdphone` varchar(200) DEFAULT NULL COMMENT '手机号', + `initiate_time` timestamp NULL DEFAULT NULL COMMENT '接单时间 Search111', + `ddzt_types` tinyint(4) DEFAULT NULL COMMENT '订单状态 Search111', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='已接单表'; + +/*Data for the table `yijiedan` */ + +insert into `yijiedan`(`id`,`odd`,`yonghu_id`,`fbphone`,`daiquren_id`,`jdphone`,`initiate_time`,`ddzt_types`) values (7,'1615536950464',3,'17787788787',100,'11111','2021-03-12 16:16:41',2),(8,'1615537130423',3,'222222222',100,'11111','2021-03-12 16:19:00',2); + +/*Table structure for table `yonghu` */ + +DROP TABLE IF EXISTS `yonghu`; + +CREATE TABLE `yonghu` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', + `studentnumber` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '学号', + `name` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户名称 Search111', + `username` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '账号', + `password` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '密码', + `sex_types` tinyint(4) DEFAULT NULL COMMENT '性别 Search111', + `img_photo` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '头像', + `phone` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '联系电话', + `zhuSuLou` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '住宿楼栋', + `dormitory` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '寝室号', + `role` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '身份', + `yanzheng` int(255) DEFAULT '0' COMMENT '验证', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; + +/*Data for the table `yonghu` */ + +insert into `yonghu`(`id`,`studentnumber`,`name`,`username`,`password`,`sex_types`,`img_photo`,`phone`,`zhuSuLou`,`dormitory`,`role`,`yanzheng`) values (1,'学号1','小札','111','111',1,'http://localhost:8080/kuaidizhan/file/download?fileName=1615469084435.jpg','111111111','123','321','用户',1),(2,'学号2','小站','222','222',2,'http://localhost:8080/kuaidizhan/file/download?fileName=1615469074773.jpg','222222222','123','321','用户',1),(3,'学号3','小王','333','333',2,'http://localhost:8080/kuaidizhan/file/download?fileName=1615536666445.jpg','17787788787','1栋6楼','603','用户',1),(5,'123','123','123','123',NULL,NULL,NULL,NULL,NULL,'用户',0),(6,'123','123','123','123',NULL,NULL,NULL,NULL,NULL,'用户',0); + +/*Table structure for table `zhandian` */ + +DROP TABLE IF EXISTS `zhandian`; + +CREATE TABLE `zhandian` ( + `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `zdname` varchar(200) DEFAULT NULL COMMENT '站点名称 Search111', + `address` varchar(200) DEFAULT NULL COMMENT '站点地址', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='快递站点'; + +/*Data for the table `zhandian` */ + +insert into `zhandian`(`id`,`zdname`,`address`) values (1,'站点3','站点地址3'),(2,'站点2','站点地址2'),(3,'站点1','站点地址1'),(4,'站点4','站点地址4'); + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; diff --git a/kuaidizhan/pom.xml b/kuaidizhan/pom.xml new file mode 100644 index 0000000..6515c48 --- /dev/null +++ b/kuaidizhan/pom.xml @@ -0,0 +1,296 @@ + + 4.0.0 + com.jlwl + kuaidizhan + war + 1.0-SNAPSHOT + + + UTF-8 + 5.0.0.RELEASE + 4.12 + 1.1.0 + 1.2.8 + 2.3 + 5.1.38 + 1.2.17 + 1.7.19 + 1.8.8 + 1.3.1 + 1.2 + + + + + + junit + junit + ${junit.version} + test + + + + + org.springframework + spring-core + ${spring.version} + jar + compile + + + org.springframework + spring-context + ${spring.version} + jar + compile + + + org.springframework + spring-context-support + ${spring.version} + jar + compile + + + org.springframework + spring-tx + ${spring.version} + jar + compile + + + org.springframework + spring-aop + ${spring.version} + jar + compile + + + org.springframework + spring-beans + ${spring.version} + jar + compile + + + org.springframework + spring-jdbc + ${spring.version} + jar + compile + + + + + org.springframework + spring-web + ${spring.version} + jar + compile + + + org.springframework + spring-webmvc + ${spring.version} + jar + compile + + + + + org.aspectj + aspectjweaver + ${aspectjweaver.version} + + + + + commons-fileupload + commons-fileupload + ${fileupload.version} + + + + javax.servlet + jstl + ${jstl.version} + + + + + com.baomidou + mybatis-plus + ${mybaitsplus.version} + + + + + mysql + mysql-connector-java + ${mysql.version} + + + + com.alibaba + druid + ${druid.version} + + + + + com.alibaba + fastjson + ${fastjson.version} + + + + + log4j + log4j + ${log4j.version} + + + org.slf4j + slf4j-api + ${slf4j.version} + + + org.slf4j + slf4j-log4j12 + ${slf4j.version} + + + + org.springframework + spring-test + ${spring.version} + + + + org.apache.commons + commons-lang3 + 3.0 + + + + javax.validation + validation-api + 2.0.1.Final + + + + commons-io + commons-io + 2.5 + + + + cn.hutool + hutool-all + 4.0.12 + + + + org.apache.tomcat.embed + tomcat-embed-core + 9.0.29 + + + + + commons-beanutils + commons-beanutils + 1.8.0 + + + + + com.fasterxml.jackson.core + jackson-annotations + 2.10.1 + + + + com.fasterxml.jackson.core + jackson-databind + 2.10.1 + + + + org.codehaus.jackson + jackson-mapper-asl + 1.9.13 + + + + + javax.servlet.jsp + jsp-api + 2.1 + provided + + + + + com.baidu.aip + java-sdk + 4.4.1 + + + + + org.apache.tomcat.embed + tomcat-embed-jasper + 9.0.27 + provided + + + + + org.hibernate + hibernate-validator + 5.2.4.Final + + + + + + org.apache.poi + poi-scratchpad + 3.11-beta2 + + + org.apache.poi + poi-ooxml + 3.11-beta2 + + + org.apache.poi + poi-ooxml-schemas + 3.11-beta2 + + + org.apache.poi + poi-excelant + 3.11-beta2 + + + + + + + + kuaidizhan + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.7 + 1.7 + + + + + diff --git a/kuaidizhan/src/main/java/com/annotation/APPLoginUser.java b/kuaidizhan/src/main/java/com/annotation/APPLoginUser.java new file mode 100644 index 0000000..21d41b9 --- /dev/null +++ b/kuaidizhan/src/main/java/com/annotation/APPLoginUser.java @@ -0,0 +1,15 @@ +package com.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 登录用户信息 + */ +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface APPLoginUser { + +} diff --git a/kuaidizhan/src/main/java/com/annotation/IgnoreAuth.java b/kuaidizhan/src/main/java/com/annotation/IgnoreAuth.java new file mode 100644 index 0000000..7c3cc55 --- /dev/null +++ b/kuaidizhan/src/main/java/com/annotation/IgnoreAuth.java @@ -0,0 +1,13 @@ +package com.annotation; + +import java.lang.annotation.*; + +/** + * 忽略Token验证 + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface IgnoreAuth { + +} diff --git a/kuaidizhan/src/main/java/com/annotation/LoginUser.java b/kuaidizhan/src/main/java/com/annotation/LoginUser.java new file mode 100644 index 0000000..3d808d3 --- /dev/null +++ b/kuaidizhan/src/main/java/com/annotation/LoginUser.java @@ -0,0 +1,15 @@ +package com.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 登录用户信息 + */ +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) +public @interface LoginUser { + +} diff --git a/kuaidizhan/src/main/java/com/config/MyMetaObjectHandler.java b/kuaidizhan/src/main/java/com/config/MyMetaObjectHandler.java new file mode 100644 index 0000000..2f9e793 --- /dev/null +++ b/kuaidizhan/src/main/java/com/config/MyMetaObjectHandler.java @@ -0,0 +1,28 @@ +package com.config; + +import java.util.Date; + +import org.apache.ibatis.reflection.MetaObject; + +import com.baomidou.mybatisplus.mapper.MetaObjectHandler; + +/** + * 自定义填充处理器 + */ +public class MyMetaObjectHandler extends MetaObjectHandler { + + @Override + public void insertFill(MetaObject metaObject) { + this.setFieldValByName("ctime", new Date(), metaObject); + } + + @Override + public boolean openUpdateFill() { + return false; + } + + @Override + public void updateFill(MetaObject metaObject) { + // 关闭更新填充、这里不执行 + } +} diff --git a/kuaidizhan/src/main/java/com/entity/ConfigEntity.java b/kuaidizhan/src/main/java/com/entity/ConfigEntity.java new file mode 100644 index 0000000..7078bc2 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/ConfigEntity.java @@ -0,0 +1,55 @@ +package com.entity; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; + +/** +* @author yangliyuan +* @version 创建时间:2020年2月7日 下午8:36:05 +* 类说明 : +*/ +@TableName("config") +public class ConfigEntity implements Serializable{ +private static final long serialVersionUID = 1L; + + @TableId(type = IdType.AUTO) + private Long id; + + /** + * key + */ + private String name; + + /** + * value + */ + private String value; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/DaiquEntity.java b/kuaidizhan/src/main/java/com/entity/DaiquEntity.java new file mode 100644 index 0000000..9355aac --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/DaiquEntity.java @@ -0,0 +1,274 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * 待取件表 + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("daiqu") +public class DaiquEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public DaiquEntity() { + + } + + public DaiquEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 快递名称 + */ + @TableField(value = "dqname") + + private String dqname; + + + /** + * 站点 + */ + @TableField(value = "zhandian_id") + + private Integer zhandianId; + + + /** + * 用户 + */ + @TableField(value = "yonghu_id") + + private Integer yonghuId; + + + /** + * 快递大小 + */ + @TableField(value = "kddx_types") + + private Integer kddxTypes; + + + /** + * 手机号 + */ + @TableField(value = "dqphone") + + private String dqphone; + + + /** + * 取件码 + */ + @TableField(value = "takecode") + + private String takecode; + + + /** + * 快递状态 + */ + @TableField(value = "kdzt_types") + + private Integer kdztTypes; + + + /** + * 取件时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy年MM月dd日 HH时mm分") + @DateTimeFormat + @TableField(value = "pickup_time",fill = FieldFill.UPDATE) + + private Date pickupTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:快递名称 + */ + public String getDqname() { + return dqname; + } + + + /** + * 获取:快递名称 + */ + + public void setDqname(String dqname) { + this.dqname = dqname; + } + /** + * 设置:站点 + */ + public Integer getZhandianId() { + return zhandianId; + } + + + /** + * 获取:站点 + */ + + public void setZhandianId(Integer zhandianId) { + this.zhandianId = zhandianId; + } + /** + * 设置:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:快递大小 + */ + public Integer getKddxTypes() { + return kddxTypes; + } + + + /** + * 获取:快递大小 + */ + + public void setKddxTypes(Integer kddxTypes) { + this.kddxTypes = kddxTypes; + } + /** + * 设置:手机号 + */ + public String getDqphone() { + return dqphone; + } + + + /** + * 获取:手机号 + */ + + public void setDqphone(String dqphone) { + this.dqphone = dqphone; + } + /** + * 设置:取件码 + */ + public String getTakecode() { + return takecode; + } + + + /** + * 获取:取件码 + */ + + public void setTakecode(String takecode) { + this.takecode = takecode; + } + /** + * 设置:快递状态 + */ + public Integer getKdztTypes() { + return kdztTypes; + } + + + /** + * 获取:快递状态 + */ + + public void setKdztTypes(Integer kdztTypes) { + this.kdztTypes = kdztTypes; + } + /** + * 设置:取件时间 + */ + public Date getPickupTime() { + return pickupTime; + } + + + /** + * 获取:取件时间 + */ + + public void setPickupTime(Date pickupTime) { + this.pickupTime = pickupTime; + } + + @Override + public String toString() { + return "Daiqu{" + + "id=" + id + + ", dqname=" + dqname + + ", zhandianId=" + zhandianId + + ", yonghuId=" + yonghuId + + ", kddxTypes=" + kddxTypes + + ", dqphone=" + dqphone + + ", takecode=" + takecode + + ", kdztTypes=" + kdztTypes + + ", pickupTime=" + pickupTime + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/DaiqurenEntity.java b/kuaidizhan/src/main/java/com/entity/DaiqurenEntity.java new file mode 100644 index 0000000..d036f8a --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/DaiqurenEntity.java @@ -0,0 +1,248 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("daiquren") +public class DaiqurenEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public DaiqurenEntity() { + + } + + public DaiqurenEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * id + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 用户名称 + */ + @TableField(value = "name") + + private String name; + + + /** + * 账号 + */ + @TableField(value = "username") + + private String username; + + + /** + * 密码 + */ + @TableField(value = "password") + + private String password; + + + /** + * 性别 + */ + @TableField(value = "sex_types") + + private Integer sexTypes; + + + /** + * 头像 + */ + @TableField(value = "img_photo") + + private String imgPhoto; + + + /** + * 联系电话 + */ + @TableField(value = "phone") + + private String phone; + + + /** + * 身份 + */ + @TableField(value = "role") + + private String role; + + + /** + * 设置:id + */ + public Integer getId() { + return id; + } + + + /** + * 获取:id + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:用户名称 + */ + public String getName() { + return name; + } + + + /** + * 获取:用户名称 + */ + + public void setName(String name) { + this.name = name; + } + /** + * 设置:账号 + */ + public String getUsername() { + return username; + } + + + /** + * 获取:账号 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 设置:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 获取:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 设置:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 获取:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 设置:头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + + + /** + * 获取:头像 + */ + + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 设置:联系电话 + */ + public String getPhone() { + return phone; + } + + + /** + * 获取:联系电话 + */ + + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 设置:身份 + */ + public String getRole() { + return role; + } + + + /** + * 获取:身份 + */ + + public void setRole(String role) { + this.role = role; + } + + @Override + public String toString() { + return "Daiquren{" + + "id=" + id + + ", name=" + name + + ", username=" + username + + ", password=" + password + + ", sexTypes=" + sexTypes + + ", imgPhoto=" + imgPhoto + + ", phone=" + phone + + ", role=" + role + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/DictionaryEntity.java b/kuaidizhan/src/main/java/com/entity/DictionaryEntity.java new file mode 100644 index 0000000..2012f48 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/DictionaryEntity.java @@ -0,0 +1,226 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * 字典表 + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("dictionary") +public class DictionaryEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public DictionaryEntity() { + + } + + public DictionaryEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 字段 + */ + @TableField(value = "dic_code") + + private String dicCode; + + + /** + * 字段名 + */ + @TableField(value = "dic_name") + + private String dicName; + + + /** + * 编码 + */ + @TableField(value = "code_index") + + private Integer codeIndex; + + + /** + * 编码名字 + */ + @TableField(value = "index_name") + + private String indexName; + + + /** + * 父字段id + */ + @TableField(value = "super_id") + + private Integer superId; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @TableField(value = "create_time",fill = FieldFill.INSERT) + + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:字段 + */ + public String getDicCode() { + return dicCode; + } + + + /** + * 获取:字段 + */ + + public void setDicCode(String dicCode) { + this.dicCode = dicCode; + } + /** + * 设置:字段名 + */ + public String getDicName() { + return dicName; + } + + + /** + * 获取:字段名 + */ + + public void setDicName(String dicName) { + this.dicName = dicName; + } + /** + * 设置:编码 + */ + public Integer getCodeIndex() { + return codeIndex; + } + + + /** + * 获取:编码 + */ + + public void setCodeIndex(Integer codeIndex) { + this.codeIndex = codeIndex; + } + /** + * 设置:编码名字 + */ + public String getIndexName() { + return indexName; + } + + + /** + * 获取:编码名字 + */ + + public void setIndexName(String indexName) { + this.indexName = indexName; + } + /** + * 设置:父字段id + */ + public Integer getSuperId() { + return superId; + } + + + /** + * 获取:父字段id + */ + + public void setSuperId(Integer superId) { + this.superId = superId; + } + /** + * 设置:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + @Override + public String toString() { + return "Dictionary{" + + "id=" + id + + ", dicCode=" + dicCode + + ", dicName=" + dicName + + ", codeIndex=" + codeIndex + + ", indexName=" + indexName + + ", superId=" + superId + + ", createTime=" + createTime + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/EIException.java b/kuaidizhan/src/main/java/com/entity/EIException.java new file mode 100644 index 0000000..2ebfb56 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/EIException.java @@ -0,0 +1,52 @@ + +package com.entity; + +/** + * 自定义异常 + */ +public class EIException extends RuntimeException { + private static final long serialVersionUID = 1L; + + private String msg; + private int code = 500; + + public EIException(String msg) { + super(msg); + this.msg = msg; + } + + public EIException(String msg, Throwable e) { + super(msg, e); + this.msg = msg; + } + + public EIException(String msg, int code) { + super(msg); + this.msg = msg; + this.code = code; + } + + public EIException(String msg, int code, Throwable e) { + super(msg, e); + this.msg = msg; + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + +} diff --git a/kuaidizhan/src/main/java/com/entity/JiedanEntity.java b/kuaidizhan/src/main/java/com/entity/JiedanEntity.java new file mode 100644 index 0000000..e411285 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/JiedanEntity.java @@ -0,0 +1,328 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * 快递接单表 + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("jiedan") +public class JiedanEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public JiedanEntity() { + + } + + public JiedanEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 单号 + */ + @TableField(value = "odd") + + private String odd; + /** + * 单号 + */ + @TableField(value = "dx") + + private Integer dx; + + + /** + * 快递名称 + */ + @TableField(value = "daiqukuaidimc") + private String daiqukuaidimc; + + public String getDaiqukuaidimc() { + return daiqukuaidimc; + } + + public void setDaiqukuaidimc(String daiqukuaidimc) { + this.daiqukuaidimc = daiqukuaidimc; + } + + /** + * 发布人 + */ + @TableField(value = "jdyonghu_id") + + private Integer jdyonghuId; + + + /** + * 发布时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @TableField(value = "initiate_time",fill = FieldFill.UPDATE) + + private Date initiateTime; + + + /** + * 收件人名称 + */ + @TableField(value = "addresseename") + + private String addresseename; + + + /** + * 电话 + */ + @TableField(value = "jdphone") + + private String jdphone; + + + /** + * 地址 + */ + @TableField(value = "jdaddressee") + + private String jdaddressee; + + + /** + * (取/寄)件码 + */ + @TableField(value = "jdtakecode") + + private String jdtakecode; + + + /** + * 快递状态 + */ + @TableField(value = "jdzt_types") + + private Integer jdztTypes; + + /** + * 快递类型 + */ + @TableField(value = "kdlx_types") + + private Integer kdlxTypes; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:单号 + */ + public String getOdd() { + return odd; + } + + + /** + * 获取:单号 + */ + + public void setOdd(String odd) { + this.odd = odd; + } + + /** + * 设置:发布人 + */ + public Integer getJdyonghuId() { + return jdyonghuId; + } + + + /** + * 获取:发布人 + */ + + public void setJdyonghuId(Integer jdyonghuId) { + this.jdyonghuId = jdyonghuId; + } + /** + * 设置:发布时间 + */ + public Date getInitiateTime() { + return initiateTime; + } + + + + /** + * 获取:发布时间 + */ + + public void setInitiateTime(Date initiateTime) { + this.initiateTime = initiateTime; + } + /** + * 设置:收件人名称 + */ + public String getAddresseename() { + return addresseename; + } + + + /** + * 获取:收件人名称 + */ + + public void setAddresseename(String addresseename) { + this.addresseename = addresseename; + } + /** + * 设置:电话 + */ + public String getJdphone() { + return jdphone; + } + + + /** + * 获取:电话 + */ + + public void setJdphone(String jdphone) { + this.jdphone = jdphone; + } + /** + * 设置:地址 + */ + public String getJdaddressee() { + return jdaddressee; + } + + + /** + * 获取:地址 + */ + + public void setJdaddressee(String jdaddressee) { + this.jdaddressee = jdaddressee; + } + /** + * 设置:(取/寄)件码 + */ + public String getJdtakecode() { + return jdtakecode; + } + + + public Integer getDx() { + return dx; + } + + public void setDx(Integer dx) { + this.dx = dx; + } + + /** + * 获取:(取/寄)件码 + */ + + public void setJdtakecode(String jdtakecode) { + this.jdtakecode = jdtakecode; + } + /** + * 设置:快递状态 + */ + public Integer getJdztTypes() { + return jdztTypes; + } + + + /** + * 获取:快递状态 + */ + + public void setJdztTypes(Integer jdztTypes) { + this.jdztTypes = jdztTypes; + } + /** + * 设置:快递类型 + */ + public Integer getKdlxTypes() { + return kdlxTypes; + } + + + /** + * 获取:快递类型 + */ + + public void setKdlxTypes(Integer kdlxTypes) { + this.kdlxTypes = kdlxTypes; + } + + @Override + public String toString() { + return "Jiedan{" + + "id=" + id + + ", odd=" + odd + + ", daiqukuaidimc=" + daiqukuaidimc + + ", jdyonghuId=" + jdyonghuId + + ", initiateTime=" + initiateTime + + ", addresseename=" + addresseename + + ", jdphone=" + jdphone + + ", jdaddressee=" + jdaddressee + + ", jdtakecode=" + jdtakecode + + ", jdztTypes=" + jdztTypes + + ", kdlxTypes=" + kdlxTypes + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/TokenEntity.java b/kuaidizhan/src/main/java/com/entity/TokenEntity.java new file mode 100644 index 0000000..6f90a63 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/TokenEntity.java @@ -0,0 +1,132 @@ +package com.entity; + +import java.io.Serializable; +import java.util.Date; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * token表 + */ +@TableName("token") +public class TokenEntity implements Serializable { + private static final Long serialVersionUID = 1L; + + @TableId(type = IdType.AUTO) + private Integer id; + + /** + * 用户id + */ + private Integer userid; + + /** + * 用户名 + */ + private String username; + + /** + * 表名 + */ + private String tablename; + + /** + * 角色 + */ + private String role; + + /** + * token + */ + private String token; + + /** + * 过期时间 + */ + private Date expiratedtime; + + /** + * 新增时间 + */ + private Date addtime; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getUserid() { + return userid; + } + + public void setUserid(Integer userid) { + this.userid = userid; + } + + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public String getToken() { + return token; + } + + public String getTablename() { + return tablename; + } + + public void setTablename(String tablename) { + this.tablename = tablename; + } + + public void setToken(String token) { + this.token = token; + } + + public Date getExpiratedtime() { + return expiratedtime; + } + + public void setExpiratedtime(Date expiratedtime) { + this.expiratedtime = expiratedtime; + } + + public Date getAddtime() { + return addtime; + } + + public void setAddtime(Date addtime) { + this.addtime = addtime; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public TokenEntity(Integer userid, String username, String tablename,String role, String token, Date expiratedtime) { + super(); + this.userid = userid; + this.username = username; + this.tablename = tablename; + this.role = role; + this.token = token; + this.expiratedtime = expiratedtime; + } + + public TokenEntity() { + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/UserEntity.java b/kuaidizhan/src/main/java/com/entity/UserEntity.java new file mode 100644 index 0000000..7bea646 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/UserEntity.java @@ -0,0 +1,73 @@ +package com.entity; + +import java.io.Serializable; +import java.util.Date; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * 用户 + */ +@TableName("users") +public class UserEntity implements Serializable { + private static final long serialVersionUID = 1L; + + @TableId(type = IdType.AUTO) + private Integer id; + + /** + * 用户账号 + */ + private String username; + + /** + * 密码 + */ + private String password; + + /** + * 用户类型 + */ + private String role; + + private Date addtime; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public Date getAddtime() { + return addtime; + } + + public void setAddtime(Date addtime) { + this.addtime = addtime; + } + + public Integer getId() { + return id; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/YijiedanEntity.java b/kuaidizhan/src/main/java/com/entity/YijiedanEntity.java new file mode 100644 index 0000000..1f37501 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/YijiedanEntity.java @@ -0,0 +1,250 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * 已接单表 + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("yijiedan") +public class YijiedanEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public YijiedanEntity() { + + } + + public YijiedanEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 单号 + */ + @TableField(value = "odd") + + private String odd; + + + /** + * 发布人 + */ + @TableField(value = "yonghu_id") + + private Integer yonghuId; + + + /** + * 手机号 + */ + @TableField(value = "fbphone") + + private String fbphone; + + + /** + * 接单人 + */ + @TableField(value = "daiquren_id") + + private Integer daiqurenId; + + + /** + * 手机号 + */ + @TableField(value = "jdphone") + + private String jdphone; + + + /** + * 接单时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + @TableField(value = "initiate_time",fill = FieldFill.UPDATE) + + private Date initiateTime; + + + /** + * 订单状态 + */ + @TableField(value = "ddzt_types") + + private Integer ddztTypes; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:单号 + */ + public String getOdd() { + return odd; + } + + + /** + * 获取:单号 + */ + + public void setOdd(String odd) { + this.odd = odd; + } + /** + * 设置:发布人 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:发布人 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:手机号 + */ + public String getFbphone() { + return fbphone; + } + + + /** + * 获取:手机号 + */ + + public void setFbphone(String fbphone) { + this.fbphone = fbphone; + } + /** + * 设置:接单人 + */ + public Integer getDaiqurenId() { + return daiqurenId; + } + + + /** + * 获取:接单人 + */ + + public void setDaiqurenId(Integer daiqurenId) { + this.daiqurenId = daiqurenId; + } + /** + * 设置:手机号 + */ + public String getJdphone() { + return jdphone; + } + + + /** + * 获取:手机号 + */ + + public void setJdphone(String jdphone) { + this.jdphone = jdphone; + } + /** + * 设置:接单时间 + */ + public Date getInitiateTime() { + return initiateTime; + } + + + /** + * 获取:接单时间 + */ + + public void setInitiateTime(Date initiateTime) { + this.initiateTime = initiateTime; + } + /** + * 设置:订单状态 + */ + public Integer getDdztTypes() { + return ddztTypes; + } + + + /** + * 获取:订单状态 + */ + + public void setDdztTypes(Integer ddztTypes) { + this.ddztTypes = ddztTypes; + } + + @Override + public String toString() { + return "Yijiedan{" + + "id=" + id + + ", odd=" + odd + + ", yonghuId=" + yonghuId + + ", fbphone=" + fbphone + + ", daiqurenId=" + daiqurenId + + ", jdphone=" + jdphone + + ", initiateTime=" + initiateTime + + ", ddztTypes=" + ddztTypes + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/YonghuEntity.java b/kuaidizhan/src/main/java/com/entity/YonghuEntity.java new file mode 100644 index 0000000..52ab9c1 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/YonghuEntity.java @@ -0,0 +1,329 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("yonghu") +public class YonghuEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public YonghuEntity() { + + } + + public YonghuEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * id + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 学号 + */ + @TableField(value = "studentnumber") + + private String studentnumber; + + + /** + * 用户名称 + */ + @TableField(value = "name") + + private String name; + + + /** + * 账号 + */ + @TableField(value = "username") + + private String username; + + + /** + * 密码 + */ + @TableField(value = "password") + + private String password; + + + /** + * 性别 + */ + @TableField(value = "sex_types") + + private Integer sexTypes; + @TableField(value = "yanzheng") + private Integer yanzheng; + + public Integer getYanzheng() { + return yanzheng; + } + + public void setYanzheng(Integer yanzheng) { + this.yanzheng = yanzheng; + } + + /** + * 头像 + */ + @TableField(value = "img_photo") + + private String imgPhoto; + + + /** + * 联系电话 + */ + @TableField(value = "phone") + + private String phone; + + + /** + * 住宿楼栋 + */ + @TableField(value = "zhuSuLou") + + private String zhuSuLou; + + + /** + * 寝室号 + */ + @TableField(value = "dormitory") + + private String dormitory; + + + /** + * 身份 + */ + @TableField(value = "role") + + private String role; + + + /** + * 设置:id + */ + public Integer getId() { + return id; + } + + + /** + * 获取:id + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:学号 + */ + public String getStudentnumber() { + return studentnumber; + } + + + /** + * 获取:学号 + */ + + public void setStudentnumber(String studentnumber) { + this.studentnumber = studentnumber; + } + /** + * 设置:用户名称 + */ + public String getName() { + return name; + } + + + /** + * 获取:用户名称 + */ + + public void setName(String name) { + this.name = name; + } + /** + * 设置:账号 + */ + public String getUsername() { + return username; + } + + + /** + * 获取:账号 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 设置:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 获取:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 设置:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 获取:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 设置:头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + + + /** + * 获取:头像 + */ + + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 设置:联系电话 + */ + public String getPhone() { + return phone; + } + + + /** + * 获取:联系电话 + */ + + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 设置:住宿楼栋 + */ + public String getZhuSuLou() { + return zhuSuLou; + } + + + /** + * 获取:住宿楼栋 + */ + + public void setZhuSuLou(String zhuSuLou) { + this.zhuSuLou = zhuSuLou; + } + /** + * 设置:寝室号 + */ + public String getDormitory() { + return dormitory; + } + + + /** + * 获取:寝室号 + */ + + public void setDormitory(String dormitory) { + this.dormitory = dormitory; + } + /** + * 设置:身份 + */ + public String getRole() { + return role; + } + + + /** + * 获取:身份 + */ + + public void setRole(String role) { + this.role = role; + } + + @Override + public String toString() { + return "Yonghu{" + + "id=" + id + + ", studentnumber=" + studentnumber + + ", name=" + name + + ", username=" + username + + ", password=" + password + + ", sexTypes=" + sexTypes + + ", imgPhoto=" + imgPhoto + + ", phone=" + phone + + ", zhuSuLou=" + zhuSuLou + + ", dormitory=" + dormitory + + ", role=" + role + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/ZhandianEntity.java b/kuaidizhan/src/main/java/com/entity/ZhandianEntity.java new file mode 100644 index 0000000..060dde3 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/ZhandianEntity.java @@ -0,0 +1,128 @@ +package com.entity; + +import com.baomidou.mybatisplus.annotations.TableId; +import com.baomidou.mybatisplus.annotations.TableName; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.beanutils.BeanUtils; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.enums.FieldFill; +import com.baomidou.mybatisplus.enums.IdType; + +/** + * 快递站点 + * + * @author + * @email + * @date 2021-03-11 + */ +@TableName("zhandian") +public class ZhandianEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + public ZhandianEntity() { + + } + + public ZhandianEntity(T t) { + try { + BeanUtils.copyProperties(this, t); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + /** + * 主键 + */ + @TableId(type = IdType.AUTO) + @TableField(value = "id") + + private Integer id; + + + /** + * 站点名称 + */ + @TableField(value = "zdname") + + private String zdname; + + + /** + * 站点地址 + */ + @TableField(value = "address") + + private String address; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:站点名称 + */ + public String getZdname() { + return zdname; + } + + + /** + * 获取:站点名称 + */ + + public void setZdname(String zdname) { + this.zdname = zdname; + } + /** + * 设置:站点地址 + */ + public String getAddress() { + return address; + } + + + /** + * 获取:站点地址 + */ + + public void setAddress(String address) { + this.address = address; + } + + @Override + public String toString() { + return "Zhandian{" + + "id=" + id + + ", zdname=" + zdname + + ", address=" + address + + "}"; + } +} diff --git a/kuaidizhan/src/main/java/com/entity/model/DaiquModel.java b/kuaidizhan/src/main/java/com/entity/model/DaiquModel.java new file mode 100644 index 0000000..10c412f --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/DaiquModel.java @@ -0,0 +1,210 @@ +package com.entity.model; + +import com.entity.DaiquEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * 待取件表 + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class DaiquModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * 主键 + */ + private Integer id; + + + /** + * 快递名称 + */ + private String dqname; + + + /** + * 站点 + */ + private Integer zhandianId; + + + /** + * 用户 + */ + private Integer yonghuId; + + + /** + * 快递大小 + */ + private Integer kddxTypes; + + + /** + * 手机号 + */ + private Integer dqphone; + + + /** + * 取件码 + */ + private String takecode; + + + /** + * 快递状态 + */ + private Integer kdztTypes; + + + /** + * 取件时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + private Date pickupTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 设置:主键 + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:快递名称 + */ + public String getDqname() { + return dqname; + } + + + /** + * 设置:快递名称 + */ + public void setDqname(String dqname) { + this.dqname = dqname; + } + /** + * 获取:站点 + */ + public Integer getZhandianId() { + return zhandianId; + } + + + /** + * 设置:站点 + */ + public void setZhandianId(Integer zhandianId) { + this.zhandianId = zhandianId; + } + /** + * 获取:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 设置:用户 + */ + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 获取:快递大小 + */ + public Integer getKddxTypes() { + return kddxTypes; + } + + + /** + * 设置:快递大小 + */ + public void setKddxTypes(Integer kddxTypes) { + this.kddxTypes = kddxTypes; + } + /** + * 获取:手机号 + */ + public Integer getDqphone() { + return dqphone; + } + + + /** + * 设置:手机号 + */ + public void setDqphone(Integer dqphone) { + this.dqphone = dqphone; + } + /** + * 获取:取件码 + */ + public String getTakecode() { + return takecode; + } + + + /** + * 设置:取件码 + */ + public void setTakecode(String takecode) { + this.takecode = takecode; + } + /** + * 获取:快递状态 + */ + public Integer getKdztTypes() { + return kdztTypes; + } + + + /** + * 设置:快递状态 + */ + public void setKdztTypes(Integer kdztTypes) { + this.kdztTypes = kdztTypes; + } + /** + * 获取:取件时间 + */ + public Date getPickupTime() { + return pickupTime; + } + + + /** + * 设置:取件时间 + */ + public void setPickupTime(Date pickupTime) { + this.pickupTime = pickupTime; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/model/DaiqurenModel.java b/kuaidizhan/src/main/java/com/entity/model/DaiqurenModel.java new file mode 100644 index 0000000..d952e97 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/DaiqurenModel.java @@ -0,0 +1,188 @@ +package com.entity.model; + +import com.entity.DaiqurenEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class DaiqurenModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * id + */ + private Integer id; + + + /** + * 用户名称 + */ + private String name; + + + /** + * 账号 + */ + private String username; + + + /** + * 密码 + */ + private String password; + + + /** + * 性别 + */ + private Integer sexTypes; + + + /** + * 头像 + */ + private String imgPhoto; + + + /** + * 联系电话 + */ + private String phone; + + + /** + * 身份 + */ + private String role; + + + /** + * 获取:id + */ + public Integer getId() { + return id; + } + + + /** + * 设置:id + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:用户名称 + */ + public String getName() { + return name; + } + + + /** + * 设置:用户名称 + */ + public void setName(String name) { + this.name = name; + } + /** + * 获取:账号 + */ + public String getUsername() { + return username; + } + + + /** + * 设置:账号 + */ + public void setUsername(String username) { + this.username = username; + } + /** + * 获取:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 设置:密码 + */ + public void setPassword(String password) { + this.password = password; + } + /** + * 获取:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 设置:性别 + */ + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 获取:头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + + + /** + * 设置:头像 + */ + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 获取:联系电话 + */ + public String getPhone() { + return phone; + } + + + /** + * 设置:联系电话 + */ + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 获取:身份 + */ + public String getRole() { + return role; + } + + + /** + * 设置:身份 + */ + public void setRole(String role) { + this.role = role; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/model/DictionaryModel.java b/kuaidizhan/src/main/java/com/entity/model/DictionaryModel.java new file mode 100644 index 0000000..9e2d9ee --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/DictionaryModel.java @@ -0,0 +1,170 @@ +package com.entity.model; + +import com.entity.DictionaryEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * 字典表 + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class DictionaryModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * 主键 + */ + private Integer id; + + + /** + * 字段 + */ + private String dicCode; + + + /** + * 字段名 + */ + private String dicName; + + + /** + * 编码 + */ + private Integer codeIndex; + + + /** + * 编码名字 + */ + private String indexName; + + + /** + * 父字段id + */ + private Integer superId; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + private Date createTime; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 设置:主键 + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:字段 + */ + public String getDicCode() { + return dicCode; + } + + + /** + * 设置:字段 + */ + public void setDicCode(String dicCode) { + this.dicCode = dicCode; + } + /** + * 获取:字段名 + */ + public String getDicName() { + return dicName; + } + + + /** + * 设置:字段名 + */ + public void setDicName(String dicName) { + this.dicName = dicName; + } + /** + * 获取:编码 + */ + public Integer getCodeIndex() { + return codeIndex; + } + + + /** + * 设置:编码 + */ + public void setCodeIndex(Integer codeIndex) { + this.codeIndex = codeIndex; + } + /** + * 获取:编码名字 + */ + public String getIndexName() { + return indexName; + } + + + /** + * 设置:编码名字 + */ + public void setIndexName(String indexName) { + this.indexName = indexName; + } + /** + * 获取:父字段id + */ + public Integer getSuperId() { + return superId; + } + + + /** + * 设置:父字段id + */ + public void setSuperId(Integer superId) { + this.superId = superId; + } + /** + * 获取:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 设置:创建时间 + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/model/JiedanModel.java b/kuaidizhan/src/main/java/com/entity/model/JiedanModel.java new file mode 100644 index 0000000..fe3b15e --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/JiedanModel.java @@ -0,0 +1,250 @@ +package com.entity.model; + +import com.entity.JiedanEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * 快递接单表 + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class JiedanModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * 主键 + */ + private Integer id; + + + /** + * 单号 + */ + private String odd; + + + /** + * 快递名称 + */ + private Integer daiqukuaidiId; + + + /** + * 发布人 + */ + private Integer jdyonghuId; + + + /** + * 发布时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + private Date initiateTime; + + + /** + * 收件人名称 + */ + private String addresseename; + + + /** + * 电话 + */ + private String jdphone; + + + /** + * 地址 + */ + private String jdaddressee; + + + /** + * (取/寄)件码 + */ + private String jdtakecode; + + + /** + * 快递状态 + */ + private Integer jdztTypes; + + + /** + * 快递类型 + */ + private Integer kdlxTypes; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 设置:主键 + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:单号 + */ + public String getOdd() { + return odd; + } + + + /** + * 设置:单号 + */ + public void setOdd(String odd) { + this.odd = odd; + } + /** + * 获取:快递名称 + */ + public Integer getDaiqukuaidiId() { + return daiqukuaidiId; + } + + + /** + * 设置:快递名称 + */ + public void setDaiqukuaidiId(Integer daiqukuaidiId) { + this.daiqukuaidiId = daiqukuaidiId; + } + /** + * 获取:发布人 + */ + public Integer getJdyonghuId() { + return jdyonghuId; + } + + + /** + * 设置:发布人 + */ + public void setJdyonghuId(Integer jdyonghuId) { + this.jdyonghuId = jdyonghuId; + } + /** + * 获取:发布时间 + */ + public Date getInitiateTime() { + return initiateTime; + } + + + /** + * 设置:发布时间 + */ + public void setInitiateTime(Date initiateTime) { + this.initiateTime = initiateTime; + } + /** + * 获取:收件人名称 + */ + public String getAddresseename() { + return addresseename; + } + + + /** + * 设置:收件人名称 + */ + public void setAddresseename(String addresseename) { + this.addresseename = addresseename; + } + /** + * 获取:电话 + */ + public String getJdphone() { + return jdphone; + } + + + /** + * 设置:电话 + */ + public void setJdphone(String jdphone) { + this.jdphone = jdphone; + } + /** + * 获取:地址 + */ + public String getJdaddressee() { + return jdaddressee; + } + + + /** + * 设置:地址 + */ + public void setJdaddressee(String jdaddressee) { + this.jdaddressee = jdaddressee; + } + /** + * 获取:(取/寄)件码 + */ + public String getJdtakecode() { + return jdtakecode; + } + + + /** + * 设置:(取/寄)件码 + */ + public void setJdtakecode(String jdtakecode) { + this.jdtakecode = jdtakecode; + } + /** + * 获取:快递状态 + */ + public Integer getJdztTypes() { + return jdztTypes; + } + + + /** + * 设置:快递状态 + */ + public void setJdztTypes(Integer jdztTypes) { + this.jdztTypes = jdztTypes; + } + /** + * 获取:快递类型 + */ + public Integer getKdlxTypes() { + return kdlxTypes; + } + + + /** + * 设置:快递类型 + */ + public void setKdlxTypes(Integer kdlxTypes) { + this.kdlxTypes = kdlxTypes; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/model/YijiedanModel.java b/kuaidizhan/src/main/java/com/entity/model/YijiedanModel.java new file mode 100644 index 0000000..75c158d --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/YijiedanModel.java @@ -0,0 +1,190 @@ +package com.entity.model; + +import com.entity.YijiedanEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * 已接单表 + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class YijiedanModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * 主键 + */ + private Integer id; + + + /** + * 单号 + */ + private String odd; + + + /** + * 发布人 + */ + private Integer yonghuId; + + + /** + * 手机号 + */ + private String fbphone; + + + /** + * 接单人 + */ + private Integer daiqurenId; + + + /** + * 手机号 + */ + private String jdphone; + + + /** + * 接单时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + private Date initiateTime; + + + /** + * 订单状态 + */ + private Integer ddztTypes; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 设置:主键 + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:单号 + */ + public String getOdd() { + return odd; + } + + + /** + * 设置:单号 + */ + public void setOdd(String odd) { + this.odd = odd; + } + /** + * 获取:发布人 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 设置:发布人 + */ + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 获取:手机号 + */ + public String getFbphone() { + return fbphone; + } + + + /** + * 设置:手机号 + */ + public void setFbphone(String fbphone) { + this.fbphone = fbphone; + } + /** + * 获取:接单人 + */ + public Integer getDaiqurenId() { + return daiqurenId; + } + + + /** + * 设置:接单人 + */ + public void setDaiqurenId(Integer daiqurenId) { + this.daiqurenId = daiqurenId; + } + /** + * 获取:手机号 + */ + public String getJdphone() { + return jdphone; + } + + + /** + * 设置:手机号 + */ + public void setJdphone(String jdphone) { + this.jdphone = jdphone; + } + /** + * 获取:接单时间 + */ + public Date getInitiateTime() { + return initiateTime; + } + + + /** + * 设置:接单时间 + */ + public void setInitiateTime(Date initiateTime) { + this.initiateTime = initiateTime; + } + /** + * 获取:订单状态 + */ + public Integer getDdztTypes() { + return ddztTypes; + } + + + /** + * 设置:订单状态 + */ + public void setDdztTypes(Integer ddztTypes) { + this.ddztTypes = ddztTypes; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/model/YonghuModel.java b/kuaidizhan/src/main/java/com/entity/model/YonghuModel.java new file mode 100644 index 0000000..300273d --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/YonghuModel.java @@ -0,0 +1,248 @@ +package com.entity.model; + +import com.entity.YonghuEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class YonghuModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * id + */ + private Integer id; + + + /** + * 学号 + */ + private String studentnumber; + + + /** + * 用户名称 + */ + private String name; + + + /** + * 账号 + */ + private String username; + + + /** + * 密码 + */ + private String password; + + + /** + * 性别 + */ + private Integer sexTypes; + + + /** + * 头像 + */ + private String imgPhoto; + + + /** + * 联系电话 + */ + private String phone; + + + /** + * 住宿楼栋 + */ + private String zhuSuLou; + + + /** + * 寝室号 + */ + private String dormitory; + + + /** + * 身份 + */ + private String role; + + + /** + * 获取:id + */ + public Integer getId() { + return id; + } + + + /** + * 设置:id + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:学号 + */ + public String getStudentnumber() { + return studentnumber; + } + + + /** + * 设置:学号 + */ + public void setStudentnumber(String studentnumber) { + this.studentnumber = studentnumber; + } + /** + * 获取:用户名称 + */ + public String getName() { + return name; + } + + + /** + * 设置:用户名称 + */ + public void setName(String name) { + this.name = name; + } + /** + * 获取:账号 + */ + public String getUsername() { + return username; + } + + + /** + * 设置:账号 + */ + public void setUsername(String username) { + this.username = username; + } + /** + * 获取:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 设置:密码 + */ + public void setPassword(String password) { + this.password = password; + } + /** + * 获取:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 设置:性别 + */ + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 获取:头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + + + /** + * 设置:头像 + */ + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 获取:联系电话 + */ + public String getPhone() { + return phone; + } + + + /** + * 设置:联系电话 + */ + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 获取:住宿楼栋 + */ + public String getZhuSuLou() { + return zhuSuLou; + } + + + /** + * 设置:住宿楼栋 + */ + public void setZhuSuLou(String zhuSuLou) { + this.zhuSuLou = zhuSuLou; + } + /** + * 获取:寝室号 + */ + public String getDormitory() { + return dormitory; + } + + + /** + * 设置:寝室号 + */ + public void setDormitory(String dormitory) { + this.dormitory = dormitory; + } + /** + * 获取:身份 + */ + public String getRole() { + return role; + } + + + /** + * 设置:身份 + */ + public void setRole(String role) { + this.role = role; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/model/ZhandianModel.java b/kuaidizhan/src/main/java/com/entity/model/ZhandianModel.java new file mode 100644 index 0000000..aef534e --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/model/ZhandianModel.java @@ -0,0 +1,88 @@ +package com.entity.model; + +import com.entity.ZhandianEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; + + +/** + * 快递站点 + * 接收传参的实体类 + *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) + * 取自ModelAndView 的model名称 + * @author + * @email + * @date 2021-03-11 + */ +public class ZhandianModel implements Serializable { + private static final long serialVersionUID = 1L; + + + + + /** + * 主键 + */ + private Integer id; + + + /** + * 站点名称 + */ + private String zdname; + + + /** + * 站点地址 + */ + private String address; + + + /** + * 获取:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 设置:主键 + */ + public void setId(Integer id) { + this.id = id; + } + /** + * 获取:站点名称 + */ + public String getZdname() { + return zdname; + } + + + /** + * 设置:站点名称 + */ + public void setZdname(String zdname) { + this.zdname = zdname; + } + /** + * 获取:站点地址 + */ + public String getAddress() { + return address; + } + + + /** + * 设置:站点地址 + */ + public void setAddress(String address) { + this.address = address; + } + + } diff --git a/kuaidizhan/src/main/java/com/entity/view/DaiquView.java b/kuaidizhan/src/main/java/com/entity/view/DaiquView.java new file mode 100644 index 0000000..c105bd6 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/DaiquView.java @@ -0,0 +1,315 @@ +package com.entity.view; + +import com.entity.DaiquEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * 待取件表 + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("daiqu") +public class DaiquView extends DaiquEntity implements Serializable { + private static final long serialVersionUID = 1L; + /** + * 快递大小的值 + */ + private String kddxValue; + /** + * 快递状态的值 + */ + private String kdztValue; + + + + //级联表 yonghu + /** + * 学号 + */ + private String studentnumber; + /** + * 用户名称 + */ + private String name; + /** + * 账号 + */ + private String username; + /** + * 密码 + */ + private String password; + /** + * 性别 + */ + private Integer sexTypes; + /** + * 性别的值 + */ + private String sexValue; + /** + * 头像 + */ + private String imgPhoto; + /** + * 联系电话 + */ + private String phone; + /** + * 住宿楼栋 + */ + private String zhuSuLou; + /** + * 寝室号 + */ + private String dormitory; + /** + * 身份 + */ + private String role; + + //级联表 zhandian + /** + * 站点名称 + */ + private String zdname; + /** + * 站点地址 + */ + private String address; + + public DaiquView() { + + } + + public DaiquView(DaiquEntity daiquEntity) { + try { + BeanUtils.copyProperties(this, daiquEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + /** + * 获取: 快递大小的值 + */ + public String getKddxValue() { + return kddxValue; + } + /** + * 设置: 快递大小的值 + */ + public void setKddxValue(String kddxValue) { + this.kddxValue = kddxValue; + } + /** + * 获取: 快递状态的值 + */ + public String getKdztValue() { + return kdztValue; + } + /** + * 设置: 快递状态的值 + */ + public void setKdztValue(String kdztValue) { + this.kdztValue = kdztValue; + } + + + + + + + + + + + + + + + + + + + + + //级联表的get和set yonghu + /** + * 获取: 学号 + */ + public String getStudentnumber() { + return studentnumber; + } + /** + * 设置: 学号 + */ + public void setStudentnumber(String studentnumber) { + this.studentnumber = studentnumber; + } + /** + * 获取: 用户名称 + */ + public String getName() { + return name; + } + /** + * 设置: 用户名称 + */ + public void setName(String name) { + this.name = name; + } + /** + * 获取: 账号 + */ + public String getUsername() { + return username; + } + /** + * 设置: 账号 + */ + public void setUsername(String username) { + this.username = username; + } + /** + * 获取: 密码 + */ + public String getPassword() { + return password; + } + /** + * 设置: 密码 + */ + public void setPassword(String password) { + this.password = password; + } + /** + * 获取: 性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + /** + * 设置: 性别 + */ + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + + + /** + * 获取: 性别的值 + */ + public String getSexValue() { + return sexValue; + } + /** + * 设置: 性别的值 + */ + public void setSexValue(String sexValue) { + this.sexValue = sexValue; + } + /** + * 获取: 头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + /** + * 设置: 头像 + */ + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 获取: 联系电话 + */ + public String getPhone() { + return phone; + } + /** + * 设置: 联系电话 + */ + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 获取: 住宿楼栋 + */ + public String getZhuSuLou() { + return zhuSuLou; + } + /** + * 设置: 住宿楼栋 + */ + public void setZhuSuLou(String zhuSuLou) { + this.zhuSuLou = zhuSuLou; + } + /** + * 获取: 寝室号 + */ + public String getDormitory() { + return dormitory; + } + /** + * 设置: 寝室号 + */ + public void setDormitory(String dormitory) { + this.dormitory = dormitory; + } + /** + * 获取: 身份 + */ + public String getRole() { + return role; + } + /** + * 设置: 身份 + */ + public void setRole(String role) { + this.role = role; + } + + + //级联表的get和set zhandian + /** + * 获取: 站点名称 + */ + public String getZdname() { + return zdname; + } + /** + * 设置: 站点名称 + */ + public void setZdname(String zdname) { + this.zdname = zdname; + } + /** + * 获取: 站点地址 + */ + public String getAddress() { + return address; + } + /** + * 设置: 站点地址 + */ + public void setAddress(String address) { + this.address = address; + } + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/view/DaiqurenView.java b/kuaidizhan/src/main/java/com/entity/view/DaiqurenView.java new file mode 100644 index 0000000..8c48618 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/DaiqurenView.java @@ -0,0 +1,67 @@ +package com.entity.view; + +import com.entity.DaiqurenEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("daiquren") +public class DaiqurenView extends DaiqurenEntity implements Serializable { + private static final long serialVersionUID = 1L; + /** + * 性别的值 + */ + private String sexValue; + + + + public DaiqurenView() { + + } + + public DaiqurenView(DaiqurenEntity daiqurenEntity) { + try { + BeanUtils.copyProperties(this, daiqurenEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + /** + * 获取: 性别的值 + */ + public String getSexValue() { + return sexValue; + } + /** + * 设置: 性别的值 + */ + public void setSexValue(String sexValue) { + this.sexValue = sexValue; + } + + + + + + + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/view/DictionaryView.java b/kuaidizhan/src/main/java/com/entity/view/DictionaryView.java new file mode 100644 index 0000000..51a6931 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/DictionaryView.java @@ -0,0 +1,59 @@ +package com.entity.view; + +import com.entity.DictionaryEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * 字典表 + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("dictionary") +public class DictionaryView extends DictionaryEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + + public DictionaryView() { + + } + + public DictionaryView(DictionaryEntity dictionaryEntity) { + try { + BeanUtils.copyProperties(this, dictionaryEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + + + + + + + + + + + + + + + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/view/JiedanView.java b/kuaidizhan/src/main/java/com/entity/view/JiedanView.java new file mode 100644 index 0000000..b699493 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/JiedanView.java @@ -0,0 +1,107 @@ +package com.entity.view; + +import com.entity.JiedanEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * 快递接单表 + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("jiedan") +public class JiedanView extends JiedanEntity implements Serializable { + private static final long serialVersionUID = 1L; + /** + * 快递状态的值 + */ + private String jdztValue; + /** + * 快递类型的值 + */ + private String kdlxValue; + + private String fbrname; + + + + public JiedanView() { + + } + + public JiedanView(JiedanEntity jiedanEntity) { + try { + BeanUtils.copyProperties(this, jiedanEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + public String getFbrname() { + return fbrname; + } + + public void setFbrname(String fbrname) { + this.fbrname = fbrname; + } + + /** + * 获取: 快递状态的值 + */ + public String getJdztValue() { + return jdztValue; + } + /** + * 设置: 快递状态的值 + */ + public void setJdztValue(String jdztValue) { + this.jdztValue = jdztValue; + } + /** + * 获取: 快递类型的值 + */ + public String getKdlxValue() { + return kdlxValue; + } + /** + * 设置: 快递类型的值 + */ + public void setKdlxValue(String kdlxValue) { + this.kdlxValue = kdlxValue; + } + + + + + + + + + + + + + + + + + + + + + + + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/view/YijiedanView.java b/kuaidizhan/src/main/java/com/entity/view/YijiedanView.java new file mode 100644 index 0000000..8355f18 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/YijiedanView.java @@ -0,0 +1,269 @@ +package com.entity.view; + +import com.entity.YijiedanEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * 已接单表 + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("yijiedan") +public class YijiedanView extends YijiedanEntity implements Serializable { + private static final long serialVersionUID = 1L; + /** + * 订单状态的值 + */ + private String ddztValue; + + + + //级联表 daiquren + /** + * 用户名称 + */ + private String yhname; + /** + * 账号 + */ + private String username; + /** + * 密码 + */ + private String password; + /** + * 性别 + */ + private Integer sexTypes; + /** + * 性别的值 + */ + private String sexValue; + /** + * 头像 + */ + private String imgPhoto; + /** + * 联系电话 + */ + private String phone; + /** + * 身份 + */ + private String role; + + //级联表 yonghu + /** + * 学号 + */ + private String studentnumber; + + private String name; + + + /** + * 住宿楼栋 + */ + private String zhuSuLou; + /** + * 寝室号 + */ + private String dormitory; + public YijiedanView() { + + } + + public YijiedanView(YijiedanEntity yijiedanEntity) { + try { + BeanUtils.copyProperties(this, yijiedanEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + /** + * 获取: 订单状态的值 + */ + public String getDdztValue() { + return ddztValue; + } + /** + * 设置: 订单状态的值 + */ + public void setDdztValue(String ddztValue) { + this.ddztValue = ddztValue; + } + + + + + + + + + + + + + + //级联表的get和set yonghu + /** + * 获取: 学号 + */ + public String getStudentnumber() { + return studentnumber; + } + /** + * 设置: 学号 + */ + public void setStudentnumber(String studentnumber) { + this.studentnumber = studentnumber; + } + + public String getYhname() { + return yhname; + } + + public void setYhname(String yhname) { + this.yhname = yhname; + } + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * 获取: 账号 + */ + public String getUsername() { + return username; + } + /** + * 设置: 账号 + */ + public void setUsername(String username) { + this.username = username; + } + /** + * 获取: 密码 + */ + public String getPassword() { + return password; + } + /** + * 设置: 密码 + */ + public void setPassword(String password) { + this.password = password; + } + /** + * 获取: 性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + /** + * 设置: 性别 + */ + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + + + /** + * 获取: 性别的值 + */ + public String getSexValue() { + return sexValue; + } + /** + * 设置: 性别的值 + */ + public void setSexValue(String sexValue) { + this.sexValue = sexValue; + } + /** + * 获取: 头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + /** + * 设置: 头像 + */ + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 获取: 联系电话 + */ + public String getPhone() { + return phone; + } + /** + * 设置: 联系电话 + */ + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 获取: 住宿楼栋 + */ + public String getZhuSuLou() { + return zhuSuLou; + } + /** + * 设置: 住宿楼栋 + */ + public void setZhuSuLou(String zhuSuLou) { + this.zhuSuLou = zhuSuLou; + } + /** + * 获取: 寝室号 + */ + public String getDormitory() { + return dormitory; + } + /** + * 设置: 寝室号 + */ + public void setDormitory(String dormitory) { + this.dormitory = dormitory; + } + /** + * 获取: 身份 + */ + public String getRole() { + return role; + } + /** + * 设置: 身份 + */ + public void setRole(String role) { + this.role = role; + } + + + + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/view/YonghuView.java b/kuaidizhan/src/main/java/com/entity/view/YonghuView.java new file mode 100644 index 0000000..c054983 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/YonghuView.java @@ -0,0 +1,67 @@ +package com.entity.view; + +import com.entity.YonghuEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("yonghu") +public class YonghuView extends YonghuEntity implements Serializable { + private static final long serialVersionUID = 1L; + /** + * 性别的值 + */ + private String sexValue; + + + + public YonghuView() { + + } + + public YonghuView(YonghuEntity yonghuEntity) { + try { + BeanUtils.copyProperties(this, yonghuEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + /** + * 获取: 性别的值 + */ + public String getSexValue() { + return sexValue; + } + /** + * 设置: 性别的值 + */ + public void setSexValue(String sexValue) { + this.sexValue = sexValue; + } + + + + + + + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/view/ZhandianView.java b/kuaidizhan/src/main/java/com/entity/view/ZhandianView.java new file mode 100644 index 0000000..d048b95 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/view/ZhandianView.java @@ -0,0 +1,51 @@ +package com.entity.view; + +import com.entity.ZhandianEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import org.apache.commons.beanutils.BeanUtils; +import java.lang.reflect.InvocationTargetException; + +import java.io.Serializable; +import java.util.Date; + +/** + * 快递站点 + * 后端返回视图实体辅助类 + * (通常后端关联的表或者自定义的字段需要返回使用) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("zhandian") +public class ZhandianView extends ZhandianEntity implements Serializable { + private static final long serialVersionUID = 1L; + + + + public ZhandianView() { + + } + + public ZhandianView(ZhandianEntity zhandianEntity) { + try { + BeanUtils.copyProperties(this, zhandianEntity); + } catch (IllegalAccessException | InvocationTargetException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + + + + + + + + + + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/DaiquVO.java b/kuaidizhan/src/main/java/com/entity/vo/DaiquVO.java new file mode 100644 index 0000000..fe88a2b --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/DaiquVO.java @@ -0,0 +1,235 @@ +package com.entity.vo; + +import com.entity.DaiquEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 待取件表 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("daiqu") +public class DaiquVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 快递名称 + */ + + @TableField(value = "dqname") + private String dqname; + + + /** + * 站点 + */ + + @TableField(value = "zhandian_id") + private Integer zhandianId; + + + /** + * 用户 + */ + + @TableField(value = "yonghu_id") + private Integer yonghuId; + + + /** + * 快递大小 + */ + + @TableField(value = "kddx_types") + private Integer kddxTypes; + + + /** + * 手机号 + */ + + @TableField(value = "dqphone") + private Integer dqphone; + + + /** + * 取件码 + */ + + @TableField(value = "takecode") + private String takecode; + + + /** + * 快递状态 + */ + + @TableField(value = "kdzt_types") + private Integer kdztTypes; + + + /** + * 取件时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "pickup_time") + private Date pickupTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:快递名称 + */ + public String getDqname() { + return dqname; + } + + + /** + * 获取:快递名称 + */ + + public void setDqname(String dqname) { + this.dqname = dqname; + } + /** + * 设置:站点 + */ + public Integer getZhandianId() { + return zhandianId; + } + + + /** + * 获取:站点 + */ + + public void setZhandianId(Integer zhandianId) { + this.zhandianId = zhandianId; + } + /** + * 设置:用户 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:用户 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:快递大小 + */ + public Integer getKddxTypes() { + return kddxTypes; + } + + + /** + * 获取:快递大小 + */ + + public void setKddxTypes(Integer kddxTypes) { + this.kddxTypes = kddxTypes; + } + /** + * 设置:手机号 + */ + public Integer getDqphone() { + return dqphone; + } + + + /** + * 获取:手机号 + */ + + public void setDqphone(Integer dqphone) { + this.dqphone = dqphone; + } + /** + * 设置:取件码 + */ + public String getTakecode() { + return takecode; + } + + + /** + * 获取:取件码 + */ + + public void setTakecode(String takecode) { + this.takecode = takecode; + } + /** + * 设置:快递状态 + */ + public Integer getKdztTypes() { + return kdztTypes; + } + + + /** + * 获取:快递状态 + */ + + public void setKdztTypes(Integer kdztTypes) { + this.kdztTypes = kdztTypes; + } + /** + * 设置:取件时间 + */ + public Date getPickupTime() { + return pickupTime; + } + + + /** + * 获取:取件时间 + */ + + public void setPickupTime(Date pickupTime) { + this.pickupTime = pickupTime; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/DaiqurenVO.java b/kuaidizhan/src/main/java/com/entity/vo/DaiqurenVO.java new file mode 100644 index 0000000..8a67991 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/DaiqurenVO.java @@ -0,0 +1,210 @@ +package com.entity.vo; + +import com.entity.DaiqurenEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("daiquren") +public class DaiqurenVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * id + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 用户名称 + */ + + @TableField(value = "name") + private String name; + + + /** + * 账号 + */ + + @TableField(value = "username") + private String username; + + + /** + * 密码 + */ + + @TableField(value = "password") + private String password; + + + /** + * 性别 + */ + + @TableField(value = "sex_types") + private Integer sexTypes; + + + /** + * 头像 + */ + + @TableField(value = "img_photo") + private String imgPhoto; + + + /** + * 联系电话 + */ + + @TableField(value = "phone") + private String phone; + + + /** + * 身份 + */ + + @TableField(value = "role") + private String role; + + + /** + * 设置:id + */ + public Integer getId() { + return id; + } + + + /** + * 获取:id + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:用户名称 + */ + public String getName() { + return name; + } + + + /** + * 获取:用户名称 + */ + + public void setName(String name) { + this.name = name; + } + /** + * 设置:账号 + */ + public String getUsername() { + return username; + } + + + /** + * 获取:账号 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 设置:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 获取:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 设置:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 获取:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 设置:头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + + + /** + * 获取:头像 + */ + + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 设置:联系电话 + */ + public String getPhone() { + return phone; + } + + + /** + * 获取:联系电话 + */ + + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 设置:身份 + */ + public String getRole() { + return role; + } + + + /** + * 获取:身份 + */ + + public void setRole(String role) { + this.role = role; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/DictionaryVO.java b/kuaidizhan/src/main/java/com/entity/vo/DictionaryVO.java new file mode 100644 index 0000000..c560d09 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/DictionaryVO.java @@ -0,0 +1,189 @@ +package com.entity.vo; + +import com.entity.DictionaryEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 字典表 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("dictionary") +public class DictionaryVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 字段 + */ + + @TableField(value = "dic_code") + private String dicCode; + + + /** + * 字段名 + */ + + @TableField(value = "dic_name") + private String dicName; + + + /** + * 编码 + */ + + @TableField(value = "code_index") + private Integer codeIndex; + + + /** + * 编码名字 + */ + + @TableField(value = "index_name") + private String indexName; + + + /** + * 父字段id + */ + + @TableField(value = "super_id") + private Integer superId; + + + /** + * 创建时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "create_time") + private Date createTime; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:字段 + */ + public String getDicCode() { + return dicCode; + } + + + /** + * 获取:字段 + */ + + public void setDicCode(String dicCode) { + this.dicCode = dicCode; + } + /** + * 设置:字段名 + */ + public String getDicName() { + return dicName; + } + + + /** + * 获取:字段名 + */ + + public void setDicName(String dicName) { + this.dicName = dicName; + } + /** + * 设置:编码 + */ + public Integer getCodeIndex() { + return codeIndex; + } + + + /** + * 获取:编码 + */ + + public void setCodeIndex(Integer codeIndex) { + this.codeIndex = codeIndex; + } + /** + * 设置:编码名字 + */ + public String getIndexName() { + return indexName; + } + + + /** + * 获取:编码名字 + */ + + public void setIndexName(String indexName) { + this.indexName = indexName; + } + /** + * 设置:父字段id + */ + public Integer getSuperId() { + return superId; + } + + + /** + * 获取:父字段id + */ + + public void setSuperId(Integer superId) { + this.superId = superId; + } + /** + * 设置:创建时间 + */ + public Date getCreateTime() { + return createTime; + } + + + /** + * 获取:创建时间 + */ + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/JiedanVO.java b/kuaidizhan/src/main/java/com/entity/vo/JiedanVO.java new file mode 100644 index 0000000..ddb67bb --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/JiedanVO.java @@ -0,0 +1,275 @@ +package com.entity.vo; + +import com.entity.JiedanEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 快递接单表 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("jiedan") +public class JiedanVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 单号 + */ + + @TableField(value = "odd") + private String odd; + + + /** + * 快递名称 + */ + + @TableField(value = "daiqukuaidimc") + private Integer daiqukuaidimc; + + + /** + * 发布人 + */ + + @TableField(value = "jdyonghu_id") + private Integer jdyonghuId; + + + /** + * 发布时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "initiate_time") + private Date initiateTime; + + + /** + * 收件人名称 + */ + + @TableField(value = "addresseename") + private String addresseename; + + + /** + * 电话 + */ + + @TableField(value = "jdphone") + private String jdphone; + + + /** + * 地址 + */ + + @TableField(value = "jdaddressee") + private String jdaddressee; + + + /** + * (取/寄)件码 + */ + + @TableField(value = "jdtakecode") + private String jdtakecode; + + + /** + * 快递状态 + */ + + @TableField(value = "jdzt_types") + private Integer jdztTypes; + + + /** + * 快递类型 + */ + + @TableField(value = "kdlx_types") + private Integer kdlxTypes; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:单号 + */ + public String getOdd() { + return odd; + } + + + /** + * 获取:单号 + */ + + public void setOdd(String odd) { + this.odd = odd; + } + + public Integer getDaiqukuaidimc() { + return daiqukuaidimc; + } + + public void setDaiqukuaidimc(Integer daiqukuaidimc) { + this.daiqukuaidimc = daiqukuaidimc; + } + + /** + * 设置:发布人 + */ + public Integer getJdyonghuId() { + return jdyonghuId; + } + + + /** + * 获取:发布人 + */ + + public void setJdyonghuId(Integer jdyonghuId) { + this.jdyonghuId = jdyonghuId; + } + /** + * 设置:发布时间 + */ + public Date getInitiateTime() { + return initiateTime; + } + + + /** + * 获取:发布时间 + */ + + public void setInitiateTime(Date initiateTime) { + this.initiateTime = initiateTime; + } + /** + * 设置:收件人名称 + */ + public String getAddresseename() { + return addresseename; + } + + + /** + * 获取:收件人名称 + */ + + public void setAddresseename(String addresseename) { + this.addresseename = addresseename; + } + /** + * 设置:电话 + */ + public String getJdphone() { + return jdphone; + } + + + /** + * 获取:电话 + */ + + public void setJdphone(String jdphone) { + this.jdphone = jdphone; + } + /** + * 设置:地址 + */ + public String getJdaddressee() { + return jdaddressee; + } + + + /** + * 获取:地址 + */ + + public void setJdaddressee(String jdaddressee) { + this.jdaddressee = jdaddressee; + } + /** + * 设置:(取/寄)件码 + */ + public String getJdtakecode() { + return jdtakecode; + } + + + /** + * 获取:(取/寄)件码 + */ + + public void setJdtakecode(String jdtakecode) { + this.jdtakecode = jdtakecode; + } + /** + * 设置:快递状态 + */ + public Integer getJdztTypes() { + return jdztTypes; + } + + + /** + * 获取:快递状态 + */ + + public void setJdztTypes(Integer jdztTypes) { + this.jdztTypes = jdztTypes; + } + /** + * 设置:快递类型 + */ + public Integer getKdlxTypes() { + return kdlxTypes; + } + + + /** + * 获取:快递类型 + */ + + public void setKdlxTypes(Integer kdlxTypes) { + this.kdlxTypes = kdlxTypes; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/YijiedanVO.java b/kuaidizhan/src/main/java/com/entity/vo/YijiedanVO.java new file mode 100644 index 0000000..c9f0013 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/YijiedanVO.java @@ -0,0 +1,212 @@ +package com.entity.vo; + +import com.entity.YijiedanEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 已接单表 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("yijiedan") +public class YijiedanVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 单号 + */ + + @TableField(value = "odd") + private String odd; + + + /** + * 发布人 + */ + + @TableField(value = "yonghu_id") + private Integer yonghuId; + + + /** + * 手机号 + */ + + @TableField(value = "fbphone") + private String fbphone; + + + /** + * 接单人 + */ + + @TableField(value = "daiquren_id") + private Integer daiqurenId; + + + /** + * 手机号 + */ + + @TableField(value = "jdphone") + private String jdphone; + + + /** + * 接单时间 + */ + @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat + + @TableField(value = "initiate_time") + private Date initiateTime; + + + /** + * 订单状态 + */ + + @TableField(value = "ddzt_types") + private Integer ddztTypes; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:单号 + */ + public String getOdd() { + return odd; + } + + + /** + * 获取:单号 + */ + + public void setOdd(String odd) { + this.odd = odd; + } + /** + * 设置:发布人 + */ + public Integer getYonghuId() { + return yonghuId; + } + + + /** + * 获取:发布人 + */ + + public void setYonghuId(Integer yonghuId) { + this.yonghuId = yonghuId; + } + /** + * 设置:手机号 + */ + public String getFbphone() { + return fbphone; + } + + + /** + * 获取:手机号 + */ + + public void setFbphone(String fbphone) { + this.fbphone = fbphone; + } + /** + * 设置:接单人 + */ + public Integer getDaiqurenId() { + return daiqurenId; + } + + + /** + * 获取:接单人 + */ + + public void setDaiqurenId(Integer daiqurenId) { + this.daiqurenId = daiqurenId; + } + /** + * 设置:手机号 + */ + public String getJdphone() { + return jdphone; + } + + + /** + * 获取:手机号 + */ + + public void setJdphone(String jdphone) { + this.jdphone = jdphone; + } + /** + * 设置:接单时间 + */ + public Date getInitiateTime() { + return initiateTime; + } + + + /** + * 获取:接单时间 + */ + + public void setInitiateTime(Date initiateTime) { + this.initiateTime = initiateTime; + } + /** + * 设置:订单状态 + */ + public Integer getDdztTypes() { + return ddztTypes; + } + + + /** + * 获取:订单状态 + */ + + public void setDdztTypes(Integer ddztTypes) { + this.ddztTypes = ddztTypes; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/YonghuVO.java b/kuaidizhan/src/main/java/com/entity/vo/YonghuVO.java new file mode 100644 index 0000000..1e3466e --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/YonghuVO.java @@ -0,0 +1,279 @@ +package com.entity.vo; + +import com.entity.YonghuEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("yonghu") +public class YonghuVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * id + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 学号 + */ + + @TableField(value = "studentnumber") + private String studentnumber; + + + /** + * 用户名称 + */ + + @TableField(value = "name") + private String name; + + + /** + * 账号 + */ + + @TableField(value = "username") + private String username; + + + /** + * 密码 + */ + + @TableField(value = "password") + private String password; + + + /** + * 性别 + */ + + @TableField(value = "sex_types") + private Integer sexTypes; + + + /** + * 头像 + */ + + @TableField(value = "img_photo") + private String imgPhoto; + + + /** + * 联系电话 + */ + + @TableField(value = "phone") + private String phone; + + + /** + * 住宿楼栋 + */ + + @TableField(value = "zhuSuLou") + private String zhuSuLou; + + + /** + * 寝室号 + */ + + @TableField(value = "dormitory") + private String dormitory; + + + /** + * 身份 + */ + + @TableField(value = "role") + private String role; + + + /** + * 设置:id + */ + public Integer getId() { + return id; + } + + + /** + * 获取:id + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:学号 + */ + public String getStudentnumber() { + return studentnumber; + } + + + /** + * 获取:学号 + */ + + public void setStudentnumber(String studentnumber) { + this.studentnumber = studentnumber; + } + /** + * 设置:用户名称 + */ + public String getName() { + return name; + } + + + /** + * 获取:用户名称 + */ + + public void setName(String name) { + this.name = name; + } + /** + * 设置:账号 + */ + public String getUsername() { + return username; + } + + + /** + * 获取:账号 + */ + + public void setUsername(String username) { + this.username = username; + } + /** + * 设置:密码 + */ + public String getPassword() { + return password; + } + + + /** + * 获取:密码 + */ + + public void setPassword(String password) { + this.password = password; + } + /** + * 设置:性别 + */ + public Integer getSexTypes() { + return sexTypes; + } + + + /** + * 获取:性别 + */ + + public void setSexTypes(Integer sexTypes) { + this.sexTypes = sexTypes; + } + /** + * 设置:头像 + */ + public String getImgPhoto() { + return imgPhoto; + } + + + /** + * 获取:头像 + */ + + public void setImgPhoto(String imgPhoto) { + this.imgPhoto = imgPhoto; + } + /** + * 设置:联系电话 + */ + public String getPhone() { + return phone; + } + + + /** + * 获取:联系电话 + */ + + public void setPhone(String phone) { + this.phone = phone; + } + /** + * 设置:住宿楼栋 + */ + public String getZhuSuLou() { + return zhuSuLou; + } + + + /** + * 获取:住宿楼栋 + */ + + public void setZhuSuLou(String zhuSuLou) { + this.zhuSuLou = zhuSuLou; + } + /** + * 设置:寝室号 + */ + public String getDormitory() { + return dormitory; + } + + + /** + * 获取:寝室号 + */ + + public void setDormitory(String dormitory) { + this.dormitory = dormitory; + } + /** + * 设置:身份 + */ + public String getRole() { + return role; + } + + + /** + * 获取:身份 + */ + + public void setRole(String role) { + this.role = role; + } + +} diff --git a/kuaidizhan/src/main/java/com/entity/vo/ZhandianVO.java b/kuaidizhan/src/main/java/com/entity/vo/ZhandianVO.java new file mode 100644 index 0000000..ae33ea9 --- /dev/null +++ b/kuaidizhan/src/main/java/com/entity/vo/ZhandianVO.java @@ -0,0 +1,95 @@ +package com.entity.vo; + +import com.entity.ZhandianEntity; +import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + +/** + * 快递站点 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + * @date 2021-03-11 + */ +@TableName("zhandian") +public class ZhandianVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 主键 + */ + + @TableField(value = "id") + private Integer id; + + + /** + * 站点名称 + */ + + @TableField(value = "zdname") + private String zdname; + + + /** + * 站点地址 + */ + + @TableField(value = "address") + private String address; + + + /** + * 设置:主键 + */ + public Integer getId() { + return id; + } + + + /** + * 获取:主键 + */ + + public void setId(Integer id) { + this.id = id; + } + /** + * 设置:站点名称 + */ + public String getZdname() { + return zdname; + } + + + /** + * 获取:站点名称 + */ + + public void setZdname(String zdname) { + this.zdname = zdname; + } + /** + * 设置:站点地址 + */ + public String getAddress() { + return address; + } + + + /** + * 获取:站点地址 + */ + + public void setAddress(String address) { + this.address = address; + } + +} diff --git a/kuaidizhan/src/main/java/com/interceptor/AuthorizationInterceptor.java b/kuaidizhan/src/main/java/com/interceptor/AuthorizationInterceptor.java new file mode 100644 index 0000000..e9c618b --- /dev/null +++ b/kuaidizhan/src/main/java/com/interceptor/AuthorizationInterceptor.java @@ -0,0 +1,88 @@ +package com.interceptor; + +import java.io.IOException; +import java.io.PrintWriter; +import java.util.HashMap; +import java.util.Map; +import com.alibaba.fastjson.JSONObject; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.web.method.HandlerMethod; +import org.springframework.web.servlet.HandlerInterceptor; + +import com.annotation.IgnoreAuth; +import com.entity.EIException; +import com.entity.TokenEntity; +import com.service.TokenService; +import com.utils.R; + +/** + * 权限(Token)验证 + */ +@Component +public class AuthorizationInterceptor implements HandlerInterceptor { + + public static final String LOGIN_TOKEN_KEY = "Token"; + + @Autowired + private TokenService tokenService; + + @Override + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { + + //支持跨域请求 + response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); + response.setHeader("Access-Control-Max-Age", "3600"); + response.setHeader("Access-Control-Allow-Credentials", "true"); + response.setHeader("Access-Control-Allow-Headers", "x-requested-with,request-source,Token, Origin,imgType, Content-Type, cache-control,postman-token,Cookie, Accept,authorization"); + response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin")); + + IgnoreAuth annotation; + if (handler instanceof HandlerMethod) { + annotation = ((HandlerMethod) handler).getMethodAnnotation(IgnoreAuth.class); + } else { + return true; + } + + //从header中获取token + String token = request.getHeader(LOGIN_TOKEN_KEY); + + /** + * 不需要验证权限的方法直接放过 + */ + if(annotation!=null) { + return true; + } + + TokenEntity tokenEntity = null; + if(StringUtils.isNotBlank(token)) { + tokenEntity = tokenService.getTokenEntity(token); + } + + if(tokenEntity != null) { + request.getSession().setAttribute("userId", tokenEntity.getUserid()); + request.getSession().setAttribute("role", tokenEntity.getRole()); + request.getSession().setAttribute("tableName", tokenEntity.getTablename()); + request.getSession().setAttribute("username", tokenEntity.getUsername()); + return true; + } + + PrintWriter writer = null; + response.setCharacterEncoding("UTF-8"); + response.setContentType("application/json; charset=utf-8"); + try { + writer = response.getWriter(); + writer.print(JSONObject.toJSONString(R.error(401, "请先登录"))); + } finally { + if(writer != null){ + writer.close(); + } + } +// throw new EIException("请先登录", 401); + return false; + } +} diff --git a/kuaidizhan/src/main/java/com/model/enums/TypeEnum.java b/kuaidizhan/src/main/java/com/model/enums/TypeEnum.java new file mode 100644 index 0000000..39061d8 --- /dev/null +++ b/kuaidizhan/src/main/java/com/model/enums/TypeEnum.java @@ -0,0 +1,31 @@ +package com.model.enums; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.enums.IEnum; + +/** + * 必须现在 IEnum 配置 该包扫描自动注入,查看文件 spring-mybatis.xml 参数 typeEnumsPackage + */ +public enum TypeEnum implements IEnum { + DISABLED(0, "禁用"), + NORMAL(1, "正常"); + + private final int value; + private final String desc; + + TypeEnum(final int value, final String desc) { + this.value = value; + this.desc = desc; + } + + @Override + public Serializable getValue() { + return this.value; + } + + // Jackson 注解为 JsonValue 返回中文 json 描述 + public String getDesc() { + return this.desc; + } +} diff --git a/kuaidizhan/src/main/webapp/index.jsp b/kuaidizhan/src/main/webapp/index.jsp new file mode 100644 index 0000000..73da2f8 --- /dev/null +++ b/kuaidizhan/src/main/webapp/index.jsp @@ -0,0 +1,125 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + + + + 入口页 + + + + + + + + + + + + + + + + + + + + + + + + + 退出 + + + + + + + + + + + + 主页 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/login.jsp b/kuaidizhan/src/main/webapp/jsp/login.jsp new file mode 100644 index 0000000..bf42849 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/login.jsp @@ -0,0 +1,107 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + 校园快递一站式服务系统 + + + + + + + + + + + + + + + + + + + 欢迎登录 + + 校园快递一站式服务系统 + + + + + + + + + + + 登录 + + 注册 + + + + + + + + + + + + + + + + + + diff --git a/kuaidizhan/src/main/webapp/jsp/modules/center/info.jsp b/kuaidizhan/src/main/webapp/jsp/modules/center/info.jsp new file mode 100644 index 0000000..68d1edf --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/center/info.jsp @@ -0,0 +1,257 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +<%@ include file="../../static/head.jsp"%> + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp"%> + + + + + + + + + + + + + + + + + + + + + 编辑个人信息 + + + + + + 个人信息管理 + 编辑个人信息 + + + + + + + + + + + + + + + 个人信息信息 + + + + + 用户名 + + + + + 提交 + + + + + + + + + + + + + + + + + <%@ include file="../../static/foot.jsp"%> + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/center/updatePassword.jsp b/kuaidizhan/src/main/webapp/jsp/modules/center/updatePassword.jsp new file mode 100644 index 0000000..522d349 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/center/updatePassword.jsp @@ -0,0 +1,246 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +<%@ include file="../../static/head.jsp"%> + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp"%> + + + + + + + + + + + + + + + + + + + + + 编辑修改密码 + + + + + + 修改密码管理 + 编辑修改密码 + + + + + + + + + + + + + + + 修改密码信息 + + + + + 原密码 + + + + 新密码 + + + + 确认密码 + + + + + 提交 + + + + + + + + + + + + + + + + + <%@ include file="../../static/foot.jsp"%> + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/daiqu/add-or-update.jsp b/kuaidizhan/src/main/webapp/jsp/modules/daiqu/add-or-update.jsp new file mode 100644 index 0000000..8162a72 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/daiqu/add-or-update.jsp @@ -0,0 +1,683 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑待取件表 + + + + + + + + + 待取件表管理 + 编辑待取件表 + + + + + + + + + + + + + + + 待取件表信息 + + + + + + + + + + + + 学号 + + + + 用户名称 + + + + 性别 + + + + 头像 + + + + 快递站点 + + + + + + + 站点地址 + + + + + + 快递名称 + + + + + + 快递大小 + + + + + 手机号 + + + + 提交 + 返回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/daiqu/info.jsp b/kuaidizhan/src/main/webapp/jsp/modules/daiqu/info.jsp new file mode 100644 index 0000000..cb3db54 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/daiqu/info.jsp @@ -0,0 +1,327 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑待取件表 + + + + + + + + + 待取件表管理 + 待取件表登记 + + + + + + + + + + + + + + + 待取件表信息 + + + + + + 学号 + + + + + + 用户名称 + + + + + + 账号 + + + + + + 性别 + + + + + + 头像 + + + + + + 联系电话 + + + + + + 住宿楼栋 + + + + + + 寝室号 + + + + + + 身份 + + + + + + 站点名称 + + + + + + 站点地址 + + + + + + + + 快递名称 + + + + + + + + 快递大小 + + + + + + 手机号 + + + + + + 取件码 + + + + + + 快递状态 + + + + + + 取件时间 + + + + + 返回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/daiqu/list.jsp b/kuaidizhan/src/main/webapp/jsp/modules/daiqu/list.jsp new file mode 100644 index 0000000..f36f596 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/daiqu/list.jsp @@ -0,0 +1,757 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + 待取件表管理 + + + + + + + + + 待取件表管理 + 待取件表列表 + + + + + + + + + + + + + + + 待取件表列表 + + + + + 快递名称 + + + + + 快递大小 + + + + + + 取件时间 + + + - + + + + + 查询 + + 添加 + 报表 + 批量删除 + + + + + + + + + + + 快递名称 + 用户名称 + 站点名称 + 站点地址 + 快递大小 + 手机号 + 取件码 + 快递状态 + 取件时间 + 操作 + + + + + + + + + + 10 + 25 + 50 + 100 + + 条 每页 + + + + + + + 上一页 + + + + 下一页 + + + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/daiquren/add-or-update.jsp b/kuaidizhan/src/main/webapp/jsp/modules/daiquren/add-or-update.jsp new file mode 100644 index 0000000..8a36e4c --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/daiquren/add-or-update.jsp @@ -0,0 +1,487 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑 + + + + + + + + + 管理 + 编辑 + + + + + + + + + + + + + + + 信息 + + + + + + + 用户名称 + + + + 账号 + + + + 性别 + + + + + 头像 + + + + + + 联系电话 + + + + 提交 + 返回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/daiquren/info.jsp b/kuaidizhan/src/main/webapp/jsp/modules/daiquren/info.jsp new file mode 100644 index 0000000..899de84 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/daiquren/info.jsp @@ -0,0 +1,245 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑 + + + + + + + + + 管理 + 登记 + + + + + + + + + + + + + + + 信息 + + + + + + + + 用户名称 + + + + + + 账号 + + + + + + 性别 + + + + + 头像 + + + + + 联系电话 + + + + + + 身份 + + + + + 返回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/daiquren/list.jsp b/kuaidizhan/src/main/webapp/jsp/modules/daiquren/list.jsp new file mode 100644 index 0000000..6037930 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/daiquren/list.jsp @@ -0,0 +1,607 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + 管理 + + + + + + + + + 管理 + 列表 + + + + + + + + + + + + + + + 列表 + + + + + 用户名称 + + + + + 性别 + + + + + + 查询 + + 添加 + 报表 + 批量删除 + + + + + + + + + + + + 用户名称 + 账号 + 性别 + 头像 + 联系电话 + 身份 + 操作 + + + + + + + + + + 10 + 25 + 50 + 100 + + 条 每页 + + + + + + + 上一页 + + + + 下一页 + + + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/dictionary/add-or-update.jsp b/kuaidizhan/src/main/webapp/jsp/modules/dictionary/add-or-update.jsp new file mode 100644 index 0000000..870bcd6 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/dictionary/add-or-update.jsp @@ -0,0 +1,449 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑字典表 + + + + + + + + + 字典表管理 + 编辑字典表 + + + + + + + + + + + + + + + 字典表信息 + + + + + + + 字段 + + + + 字段名 + + + + 编码 + + + + + 编码名字 + + + + + 提交 + 返回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/dictionary/info.jsp b/kuaidizhan/src/main/webapp/jsp/modules/dictionary/info.jsp new file mode 100644 index 0000000..0981927 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/dictionary/info.jsp @@ -0,0 +1,233 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑字典表 + + + + + + + + + 字典表管理 + 字典表登记 + + + + + + + + + + + + + + + 字典表信息 + + + + + + + + 字段 + + + + + + 字段名 + + + + + + 编码 + + + + + + 编码名字 + + + + + + 返回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/dictionary/list.jsp b/kuaidizhan/src/main/webapp/jsp/modules/dictionary/list.jsp new file mode 100644 index 0000000..47fb122 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/dictionary/list.jsp @@ -0,0 +1,527 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + 字典表管理 + + + + + + + + + 字典表管理 + 字典表列表 + + + + + + + + + + + + + + + 字典表列表 + + + + + 查询 + + 添加 + 报表 + 批量删除 + + + + + + + + + + + + 字段 + 字段名 + 编码 + 编码名字 + + 操作 + + + + + + + + + + 10 + 25 + 50 + 100 + + 条 每页 + + + + + + + 上一页 + + + + 下一页 + + + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/modules/forgetThePassword/forgetThePassword.jsp b/kuaidizhan/src/main/webapp/jsp/modules/forgetThePassword/forgetThePassword.jsp new file mode 100644 index 0000000..267370f --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/modules/forgetThePassword/forgetThePassword.jsp @@ -0,0 +1,263 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" %> + + + + + <%@ include file="../../static/head.jsp" %> + + + + + + + + + + + + + + + + + + + + + <%@ include file="../../static/topNav.jsp" %> + + + + + + + + + + + + + + + + + + + + + 编辑 + + + + + + + + + 管理 + 编辑 + + + + + + + + + + + + + + + 忘记密码 + + + + + 用户名称 + + + + 账号 + + + + 取消 + 找回 + + + + + + + + + + + + + + + + + +<%@ include file="../../static/foot.jsp" %> + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/crossBtnControl.js b/kuaidizhan/src/main/webapp/jsp/static/crossBtnControl.js new file mode 100644 index 0000000..91065a3 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/crossBtnControl.js @@ -0,0 +1,26 @@ +function crossBtnControl(btnName){ + var role = window.sessionStorage.getItem('role'); + + for(var i=0;i + + + + + + + + + + + diff --git a/kuaidizhan/src/main/webapp/jsp/static/getRoleButtons.js b/kuaidizhan/src/main/webapp/jsp/static/getRoleButtons.js new file mode 100644 index 0000000..76d9a3b --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/getRoleButtons.js @@ -0,0 +1,41 @@ +function getRoleButtons() { + var role = window.sessionStorage.getItem('role'); + var allButtons = ["新增", "修改", "查看", "删除", "发布", "取件", "完成", "报表", "寄件", "接单", "发布订单"]; + for (var i = 0; i < menus.length; i++) { + // 找到当前登录角色的菜单 + if (menus[i].roleName == role) { + //后台菜单 + var backMenu = menus[i].backMenu; + for (var j = 0; j < backMenu.length; j++) { + // 一级菜单 + var menuChild = backMenu[j].child; + for (var k = 0; k < menuChild.length; k++) { + // 二级菜单 + if (tableName == menuChild[k].tableName) { + var buttons = menuChild[k].buttons; + //console.log("you can see: "+buttons); + //将allButtons剔除能看到的按钮,剩下的就是不能看到的按钮 + if(buttons && buttons.length>0){ + for(var l=0;l= 0; n--) { + elements[n].parentNode.removeChild(elements[n]); + } + } + } + + } + } + } + } +} \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/head.jsp b/kuaidizhan/src/main/webapp/jsp/static/head.jsp new file mode 100644 index 0000000..60eb188 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/head.jsp @@ -0,0 +1,25 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + 校园快递一站式服务系统 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/iframeAuto.js b/kuaidizhan/src/main/webapp/jsp/static/iframeAuto.js new file mode 100644 index 0000000..b01f516 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/iframeAuto.js @@ -0,0 +1,32 @@ +function iframeAuto() { + try { + if (window != parent) { + //定位需要调整的frame框架(在父级窗口中查找) + var a = parent.document.getElementsByTagName("iframe"); + for (var i = 0; i < a.length; i++) { + if (a[i].contentWindow == window) { + var h1 = 0, h2 = 0; + a[i].parentNode.style.height = a[i].offsetHeight + "px"; + a[i].style.height = "10px"; //首先设置高度为10px,后面会修改 + if (document.documentElement && document.documentElement.scrollHeight) { + h1 = document.documentElement.scrollHeight; + } + if (document.body) h2 = document.body.scrollHeight; + var h = Math.max(h1, h2); //取两者中的较大值 + if (document.all) { h += 4; } + if (window.opera) { h += 1; } + //调整框架的大小 + a[i].style.height = a[i].parentNode.style.height = h + "px"; + } + } + } + } + catch (ex) { } +} +//事件绑定的方法,支持IE5以上版本 +if (window.attachEvent) { + window.attachEvent("onload", iframeAuto); +} +else if (window.addEventListener) { + window.addEventListener('load', iframeAuto, false); +} diff --git a/kuaidizhan/src/main/webapp/jsp/static/logout.jsp b/kuaidizhan/src/main/webapp/jsp/static/logout.jsp new file mode 100644 index 0000000..058b612 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/logout.jsp @@ -0,0 +1,22 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + function logout() { + $.ajax({ + type: "GET", + url: baseUrl + "users/logout", + beforeSend: function(xhr) { + xhr.setRequestHeader("token", window.sessionStorage.getItem('token')); + }, + success: function(res){ + if(res.code == 0 || res.code == 401){ + window.sessionStorage.clear(); + window.location.href="${pageContext.request.contextPath}/jsp/login.jsp" + }else{ + alert(res.msg); + } + }, + }); + } + function toFront() { +window.location.assign(baseUrl+'front'); +} \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/myInfo.js b/kuaidizhan/src/main/webapp/jsp/static/myInfo.js new file mode 100644 index 0000000..57d3fc6 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/myInfo.js @@ -0,0 +1,15 @@ +//设置用户个人中心入口 +if(window.sessionStorage.getItem('role') != '管理员'){ + var accountTableName = window.sessionStorage.getItem('accountTableName'); + $('#myinfo').attr('href','#'); + $('#myinfo').on('click', function(e) { + e.preventDefault(); + http(accountTableName+'/session','GET',{},(res)=>{ + if(res.code == 0){ + window.sessionStorage.setItem('userId',res.data.id); + window.sessionStorage.setItem('onlyme',true); + window.location.href = baseUrl + 'jsp/modules/' + accountTableName + '/add-or-update.jsp'; + } + }); + }); +} \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/setMenu.js b/kuaidizhan/src/main/webapp/jsp/static/setMenu.js new file mode 100644 index 0000000..be35b2b --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/setMenu.js @@ -0,0 +1,51 @@ +function setMenu(){ + if(window.sessionStorage.getItem('role') != '管理员'){ + var accountTableName = window.sessionStorage.getItem('accountTableName'); + $('#side-menu').append('个人中心修改密码个人信息'); + http(accountTableName+'/session','GET',{},(res)=>{ + if(res.code == 0){ + window.sessionStorage.setItem('userId',res.data.id); + window.sessionStorage.setItem('onlyme',true); + } + }); + } else { + $('#side-menu').append('个人中心修改密码个人信息'); + } + + var role = window.sessionStorage.getItem('role'); + var menusHtml = ''; + for(var i=0;i' + menu[j].menu + ''; + + var menuSubHtml = ''; + var secondMenuName = ""; + var menuChild = menu[j].child; + for(var k=0;k' + menuChild[k].menu + ''; + }else{ + menuSubHtml += '' + menuChild[k].menu + ''; + secondMenuName = menuChild[k].tableName; + } + } + menuHtml += menuSubHtml + ''; + } + menusHtml += menuHtml; + } + } + $('#side-menu').append(menusHtml); + if(hasMessage != null && hasMessage == '是' && role == '管理员'){ + $('#side-menu').append('留言管理留言列表'); + } +} + +window.navClick = function(obj, rootNavName, subNavName) { + $('iframe').attr('src', obj.href); +} \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/toLogin.jsp b/kuaidizhan/src/main/webapp/jsp/static/toLogin.jsp new file mode 100644 index 0000000..d867f6d --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/static/toLogin.jsp @@ -0,0 +1,5 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + +alert('token过期或未登录!') +window.location.href="${pageContext.request.contextPath}/jsp/login.jsp" \ No newline at end of file diff --git a/kuaidizhan/src/main/webapp/jsp/static/topNav.jsp b/kuaidizhan/src/main/webapp/jsp/static/topNav.jsp new file mode 100644 index 0000000..e69de29 diff --git a/kuaidizhan/src/main/webapp/jsp/utils/baseUrl.jsp b/kuaidizhan/src/main/webapp/jsp/utils/baseUrl.jsp new file mode 100644 index 0000000..3885b05 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/utils/baseUrl.jsp @@ -0,0 +1,69 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +var baseUrl = "http://localhost:8080/kuaidizhan/"; +var projectName = "校园快递一站式服务系统" + +/** + * 网络请求 + * @param {Object} url 地址 + * @param {Object} method get/post + * @param {Object} param 参数 + * @param {Object} callback 回调函数 + */ +function http(url, type, data, callback) { + url = baseUrl + url; + $.ajax({ + url: url, + beforeSend: function(request) { + request.setRequestHeader("token", window.sessionStorage.getItem("token")); + }, + contentType: 'application/x-www-form-urlencoded', + data: data, + dataType: 'json', + type: type, + async: false, + success: function(result, status, xhr) { + if (result.code == 0) { + callback(result); + } else if (result.code == 401) { + window.location.href = '${pageContext.request.contextPath}/jsp/login.jsp'; + } else { + alert(result.msg) + } + }, + error: function(xhr, status, error) { + console.log(xhr, status, error) + } + }); +} + +function httpJson(url, type, data, callback) { + url = baseUrl + url; + var params = null; + if (data) { + var params = JSON.stringify(data); + } + $.ajax({ + url: url, + beforeSend: function(request) { + request.setRequestHeader("token", window.sessionStorage.getItem("token")); + }, + contentType: 'application/json', + data: params, + dataType: 'json', + type: type, + async: false, + success: function(result, status, xhr) { + if (result.code == 0) { + callback(result); + } else if (result.code == 401) { + window.location.href = '${pageContext.request.contextPath}/jsp/login.jsp'; + } else { + alert(result.msg) + } + }, + error: function(xhr, status, error) { + console.log(xhr, status, error) + } + }); +} diff --git a/kuaidizhan/src/main/webapp/jsp/utils/menu.jsp b/kuaidizhan/src/main/webapp/jsp/utils/menu.jsp new file mode 100644 index 0000000..78eb054 --- /dev/null +++ b/kuaidizhan/src/main/webapp/jsp/utils/menu.jsp @@ -0,0 +1,219 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +var menus = [ + { + "backMenu":[ + { + "child":[ + { + "buttons":[ + "查看", + "新增", + "修改", + "删除", + ], + "menu":"用户管理", + "menuJump":"列表", + "tableName":"yonghu" + } + ], + "menu":"用户管理" + } + + ,{ + "child":[ + { + "buttons":[ + "查看", + "新增", + "修改", + "删除", + ], + "menu":"代取人管理", + "menuJump":"列表", + "tableName":"daiquren" + } + ], + "menu":"代取人管理" + }, + { + "child":[ + { + "buttons":[ + "查看", + "新增", + "修改", + "删除", + ], + "menu":"快递站点管理", + "menuJump":"列表", + "tableName":"zhandian" + } + ], + "menu":"快递站点管理" + }, + { + "child":[ + { + "buttons":[ + "新增", + "修改", + "删除", + ], + "menu":"待取件表管理", + "menuJump":"列表", + "tableName":"daiqu" + } + ], + "menu":"待取件表管理" + } + ,{ + "child":[ + { + "buttons":[ + "新增", + "删除", + ], + "menu":"快递接单表管理", + "menuJump":"列表", + "tableName":"jiedan" + } + ], + "menu":"快递接单表管理" + } + ,{ + "child":[ + { + "buttons":[ + "查看", + "删除", + ], + "menu":"已接单表管理", + "menuJump":"列表", + "tableName":"yijiedan" + } + ], + "menu":"已接单表管理" + } + ], + "frontMenu":[ + + ], + "roleName":"管理员", + "tableName":"users" + }, + { + "backMenu":[ + { + "child":[ + { + "buttons":[ + "查看", + ], + "menu":"快递站点管理", + "menuJump":"列表", + "tableName":"zhandian" + } + ], + "menu":"快递站点管理" + }, + { + "child":[ + { + "buttons":[ + "接单", + ], + "menu":"快递接单表管理", + "menuJump":"列表", + "tableName":"jiedan" + } + ], + "menu":"快递接单表管理" + } + ,{ + "child":[ + { + "buttons":[ + "查看", + ], + "menu":"已接单表管理", + "menuJump":"列表", + "tableName":"yijiedan" + } + ], + "menu":"已接单表管理" + } + ], + "frontMenu":[ + + ], + "roleName":"代取人", + "tableName":"daiquren" + }, + { + "backMenu":[ + { + "child":[ + { + "buttons":[ + "查看", + + ], + "menu":"快递站点管理", + "menuJump":"列表", + "tableName":"zhandian" + } + ], + "menu":"快递站点管理" + }, + { + "child":[ + { + "buttons":[ + "取件", + "发布订单", + ], + "menu":"待取件表管理", + "menuJump":"列表", + "tableName":"daiqu" + } + ], + "menu":"待取件表管理" + } + ,{ + "child":[ + { + "buttons":[ + "寄件", + ], + "menu":"快递接单表管理", + "menuJump":"列表", + "tableName":"jiedan" + } + ], + "menu":"快递接单表管理" + } + ,{ + "child":[ + { + "buttons":[ + "查看", + "完成", + ], + "menu":"已接单表管理", + "menuJump":"列表", + "tableName":"yijiedan" + } + ], + "menu":"已接单表管理" + } + ], + "frontMenu":[ + + ], + "roleName":"用户", + "tableName":"yonghu" + } +]; + +var hasMessage = '';
校园快递一站式服务系统