Initial commit

origin
Yuxianglei 4 months ago
commit 7c0ac01de3

3
.idea/.gitignore vendored

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ssm076校园快递一站式服务系统+jsp.iml" filepath="$PROJECT_DIR$/.idea/ssm076校园快递一站式服务系统+jsp.iml" />
</modules>
</component>
</project>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

217
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 */;

@ -0,0 +1,296 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jlwl</groupId>
<artifactId>kuaidizhan</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>5.0.0.RELEASE</spring.version>
<junit.version>4.12</junit.version>
<druid.version>1.1.0</druid.version>
<fastjson.version>1.2.8</fastjson.version>
<mybaitsplus.version>2.3</mybaitsplus.version>
<mysql.version>5.1.38</mysql.version>
<log4j.version>1.2.17</log4j.version>
<slf4j.version>1.7.19</slf4j.version>
<aspectjweaver.version>1.8.8</aspectjweaver.version>
<fileupload.version>1.3.1</fileupload.version>
<jstl.version>1.2</jstl.version>
</properties>
<dependencies>
<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- Spring MVC -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- AOP -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectjweaver.version}</version>
</dependency>
<!-- FileUpload -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${fileupload.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<!-- Mybatis-Plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>${mybaitsplus.version}</version>
</dependency>
<!-- Mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<!-- Druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<!-- FastJson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!-- Log -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>4.0.12</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-core -->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.29</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.servlet.jsp/jsp-api -->
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<!-- 百度人工智能 -->
<dependency>
<groupId>com.baidu.aip</groupId>
<artifactId>java-sdk</artifactId>
<version>4.4.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-jasper -->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>9.0.27</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.2.4.Final</version>
</dependency>
<!-- 导入导出excel -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-scratchpad</artifactId>
<version>3.11-beta2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.11-beta2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.11-beta2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-excelant</artifactId>
<version>3.11-beta2</version>
</dependency>
</dependencies>
<build>
<!-- 项目访问名称 -->
<finalName>kuaidizhan</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -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 {
}

@ -0,0 +1,13 @@
package com.annotation;
import java.lang.annotation.*;
/**
* Token
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IgnoreAuth {
}

@ -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 {
}

@ -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) {
// 关闭更新填充、这里不执行
}
}

@ -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 202027 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;
}
}

@ -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<T> 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 +
"}";
}
}

@ -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<T> 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 +
"}";
}
}

@ -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<T> 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 +
"}";
}
}

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

@ -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<T> 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 +
"}";
}
}

@ -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() {
}
}

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

@ -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<T> 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 +
"}";
}
}

@ -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<T> 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 +
"}";
}
}

@ -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<T> 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 +
"}";
}
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -0,0 +1,125 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>入口页</title>
<link href="${pageContext.request.contextPath}/resources/xznstatic/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/resources/xznstatic/css/jquery.toast.min.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/resources/xznstatic/css/style.css" rel="stylesheet" type="text/css">
</head>
<style>
</style>
<body>
<div class="preloader-it">
<div class="la-anim-1"></div>
</div>
<div class="wrapper theme-1-active pimary-color-blue">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="mobile-only-brand pull-left">
<div class="nav-header pull-left">
<div class="logo-wrap">
<a href="#"><span class="brand-text" id="pName"></span></a>
</div>
</div><a id="toggle_nav_btn" class="toggle-left-nav-btn inline-block ml-20 pull-left"
href="javascript:void(0);"><i class="zmdi zmdi-menu"></i></a><a id="toggle_mobile_search"
data-toggle="collapse" data-target="#search_form" class="mobile-only-view"
href="javascript:void(0);"><i class="zmdi zmdi-search"></i></a><a id="toggle_mobile_nav"
class="mobile-only-view" href="javascript:void(0);"><i class="zmdi zmdi-more"></i></a>
</div>
<div id="mobile_only_nav" class="mobile-only-nav pull-right">
<ul class="nav navbar-right top-nav pull-right">
<li class="dropdown auth-drp"><a href="#" class="dropdown-toggle pr-0" data-toggle="dropdown"><img
src="${pageContext.request.contextPath}/resources/xznstatic/img/user1.png" alt="user_auth" class="user-auth-img img-circle" /><span
class="user-online-status"></span></a>
<ul class="dropdown-menu user-auth-dropdown" data-dropdown-in="flipInX"
data-dropdown-out="flipOutX">
<li><a href="#" onclick="logout()"><i class="zmdi zmdi-power"></i><span>退出</span></a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div class="fixed-sidebar-left">
<ul class="nav navbar-nav side-nav nicescroll-bar" id="side-menu">
<li>
<a href="${pageContext.request.contextPath}/jsp/modules/home/home.jsp" onclick="navClick(this);return false;">
<div class="pull-left">
<i class="zmdi zmdi-flag mr-20"></i>
<span class="right-nav-text">主页</span>
</div>
<div class="clearfix"></div>
</a>
</li>
</ul>
</div>
<div class="page-wrapper">
<div class="container-fluid pt-30">
<iframe id="mainIframe" src="${pageContext.request.contextPath}/jsp/modules/home/home.jsp" width="100%" frameborder="0" scrolling="auto" ></iframe>
</div>
<footer class="footer container-fluid pl-30 pr-30">
<div class="row">
<div class="col-sm-12">
<p id="copyright" style="text-align: center;"></p>
</div>
</div>
</footer>
</div>
</div>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.slimscroll.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.waypoints.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.counterup.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/dropdown-bootstrap-extended.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.sparkline.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/owl.carousel.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/switchery.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/echarts-en.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/echarts-liquidfill.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.toast.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/init.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/dashboard-data.js"></script>
<script>
<%@ include file = "jsp/utils/menu.jsp" %>
<%@ include file = "jsp/static/setMenu.js" %>
<%@ include file = "jsp/utils/baseUrl.jsp" %>
// 用户登出
<%@ include file = "jsp/static/logout.jsp" %>
$(document).ready(function () {
//我的后台,session信息转移
if (window.localStorage.getItem("Token") != null && window.localStorage.getItem("Token") != 'null') {
if (window.sessionStorage.getItem("token") == null || window.sessionStorage.getItem("token") ==
'null') {
window.sessionStorage.setItem("token", window.localStorage.getItem("Token"));
window.sessionStorage.setItem("role", window.localStorage.getItem("role"));
window.sessionStorage.setItem("accountTableName", window.localStorage.getItem("sessionTable"));
window.sessionStorage.setItem("username", window.localStorage.getItem("adminName"));
}
}
$('.dropdown-toggle .hidden-xs').html(window.sessionStorage.getItem('username'));
$('#pName').text(projectName);
$('#copyright').text('欢迎使用' + projectName)
var token = window.sessionStorage.getItem("token");
if (token == "null" || token == null) {
alert("请登录后再操作");
window.location.href = ("jsp/login.jsp");
}
setMenu();
});
</script>
</body>
</html>

@ -0,0 +1,107 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>校园快递一站式服务系统</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/xznstatic/css/bootstrap4.2.1.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/xznstatic/css/style.default.css" id="theme-stylesheet">
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/assets2/js/jquery.min.js"></script>
</head>
<body>
<div class="page login-page">
<div class="container d-flex align-items-center">
<div class="form-holder has-shadow">
<div class="row">
<div class="col-lg-6">
<div class="info d-flex align-items-center">
<div class="content">
<div class="logo">
<h1>欢迎登录</h1>
</div>
<p>校园快递一站式服务系统</p>
</div>
</div>
</div>
<div class="col-lg-6 bg-white">
<div class="form d-flex align-items-center">
<div class="content">
<form id="loginForm" action="" method="post" class="form-validate">
<input type="text" required placeholder="用户名" id="username" name="username" class="input-material">
<input type="password" name="password" required placeholder="密码" class="input-material">
<div style="margin: 10px 0;" id="submitBtn"></div>
<button type="submit" class="btn btn-primary" onclick="login()">登录</button>
</br>
<a href="modules/register/register.jsp">注册</a>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/bootstrap4.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/jquery.validate.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/xznstatic/js/front.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript">
<%@ include file="utils/menu.jsp"%>
<%@ include file="utils/baseUrl.jsp"%>
var role = "";
var accountTableName = "";
//渲染角色选择
function setRoleOption() {
for (var i = 0; i < menus.length; i++) {
var divRoot = '<div class="custom-control custom-checkbox "><input type="radio" name="chk" class="custom-control-input" id="check' + i + '" value="' + menus[i].roleName + '" onclick="checkRole(\'' + menus[i].roleName + '\', \'' + menus[i].tableName + '\')"><label class="custom-control-label" for="check' + i + '">' + menus[i].roleName + '</label></div>';
$('#submitBtn').append(divRoot);
}
}
function checkRole(roleName, tableName) {
role = roleName;
$('#loginForm').attr('action', baseUrl + tableName + '/login?role='+role);
accountTableName = tableName;
}
function login() {
$("#loginForm").ajaxForm(function(res) {
if (role == "" || role == null) {
alert("请选择角色后再登录");
} else {
if (res.code == 0) {
alert("登录成功");
var username = $('#username').val();
window.sessionStorage.setItem('accountTableName',accountTableName)
window.sessionStorage.setItem('username',username);
window.sessionStorage.setItem('token', res.token);
window.sessionStorage.setItem('role', role);
window.location.href = "../index.jsp";
} else {
alert(res.msg);
}
}
});
}
function register(){
window.location.href = "modules/register/register.jsp"
}
function ready() {
setRoleOption();
}
document.addEventListener("DOMContentLoaded", ready);
</script>
</body>
</html>

@ -0,0 +1,257 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp"%>
<link
href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
.error {
color: red;
}
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp"%>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑个人信息</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="${pageContext.request.contextPath}/index.jsp"> <span
class="ti-home"></span>
</a></li>
<li class="breadcrumb-item">个人信息管理</li>
<li class="breadcrumb-item active">编辑个人信息</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">个人信息信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>用户名</label> <input id="username" name="username"
class="form-control" placeholder="用户名">
</div>
<div class="form-group col-md-6 mb-3">
<button id="submitBtn" type="button"
class="btn btn-primary btn-lg" style="margin-top: 30px;">提交</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top"> <span
class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp"%>
<script
src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script
src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script
src="${pageContext.request.contextPath}/resources/js/jquery.fileupload.js"></script>
<script
src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/card.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "";
var pageType = "add-or-update";
var updateId = "";
var accountTableName = ''
var ruleForm = {};
// 表单提交
function submit() {
if (validform() == true) {
$.ajax({
type : "POST",
url : baseUrl + accountTableName + "/update",
contentType : "application/json",
data : JSON.stringify({id: updateId,username: $('#username').val()}),
beforeSend : function(xhr) {
xhr.setRequestHeader("token", window.sessionStorage
.getItem('token'));
},
success : function(res) {
if (res.code == 0) {
alert("修改成功");
window.sessionStorage.setItem('username',$('#username').val())
window.location.reload();
} else if (res.code == 401) {
<%@ include file="../../static/toLogin.jsp"%>
} else {
alert(res.msg)
}
},
});
} else {
alert("表单未填完整或有错误");
}
}
// 表单校验
function validform() {
return $("#addOrUpdateForm").validate({
rules : {
username: {
required : true,
},
},
messages : {
username: {
required : "用户名不能为空",
},
}
}).form();
}
// 添加表单校验方法
function addValidation() {
jQuery.validator
.addMethod(
"isPhone",
function(value, element) {
var length = value.length;
var mobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/;
return this.optional(element)
|| (length == 11 && mobile.test(value));
}, "请填写正确的手机号码");
jQuery.validator.addMethod("isIdCardNo", function(value, element) {
return this.optional(element)
|| idCardNoUtil.checkIdCardNo(value);
}, "请正确输入您的身份证号码");
}
function getId() {
var userName = window.sessionStorage.getItem('username')
accountTableName = window.sessionStorage.getItem('accountTableName')
$.ajax({
type : "GET",
url : baseUrl + accountTableName + "/page",
data : {
username : userName
},
beforeSend : function(xhr) {
xhr.setRequestHeader("token", window.sessionStorage
.getItem('token'));
},
success : function(res) {
if (res.code == 0) {
updateId = res.data.list[0].id
$('#username').val(res.data.list[0].username)
} else if (res.code == 401) {
<%@ include file="../../static/toLogin.jsp"%>
} else {
alert(res.msg);
}
},
});
}
$(document).ready(function() {
//设置导航栏菜单
setMenu();
//添加表单校验信息文本
addValidation();
getId();
$('#submitBtn').on('click', function(e) {
e.preventDefault();
//console.log("点击了...提交按钮");
submit();
});
});
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,246 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp"%>
<link
href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
.error {
color: red;
}
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp"%>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑修改密码</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="${pageContext.request.contextPath}/index.jsp"> <span
class="ti-home"></span>
</a></li>
<li class="breadcrumb-item">修改密码管理</li>
<li class="breadcrumb-item active">编辑修改密码</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">修改密码信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>原密码</label> <input id="oldPassword" name="oldPassword"
class="form-control" placeholder="原密码">
</div>
<div class="form-group col-md-6">
<label>新密码</label> <input id="newPassword" name="newPassword"
class="form-control" placeholder="新密码">
</div>
<div class="form-group col-md-6">
<label>确认密码</label> <input id="confirmPassword"
name="confirmPassword" class="form-control"
placeholder="确认密码">
</div>
<div class="form-group col-md-6 mb-3">
<button id="submitBtn" type="button"
class="btn btn-primary btn-lg" style="margin-top: 30px;">提交</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top"> <span
class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp"%>
<script
src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script
src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script
src="${pageContext.request.contextPath}/resources/js/jquery.fileupload.js"></script>
<script
src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/card.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "xiugaimima";
var pageType = "add-or-update";
var updateId = "";
var password = '';
var accountTableName = ''
var ruleForm = {};
// 表单提交
function submit() {
if (validform() == true) {
if(password == $('#oldPassword').val()){
httpJson(accountTableName + "/update","POST",{
id:updateId,
mima: $('#newPassword').val(),
password: $('#newPassword').val()
},(res)=>{
if(res.code == 0){
window.location.href = '../../login.jsp';
alert('修改成功,请重新登陆');
}
});
}else{
alert('原密码输入错误')
}
} else {
alert("表单未填完整或有错误");
}
}
// 表单校验
function validform() {
return $("#addOrUpdateForm").validate({
rules : {
oldPassword : {
required : true,
},
newPassword : {
required : true,
},
confirmPassword : {
required : true,
equalTo: "#newPassword",
},
},
messages : {
oldPassword : {
required : "原密码不能为空",
},
newPassword : {
required : "新密码不能为空",
},
confirmPassword : {
required : "确认密码不能为空",
equalTo: "两次密码输入不一致",
},
}
}).form();
}
function getId() {
var userName = window.sessionStorage.getItem('username')
accountTableName = window.sessionStorage.getItem('accountTableName')
http(accountTableName+'/session','GET',{},(res)=>{
if(res.code == 0){
updateId = res.data.id;
if(res.data != null && res.data.mima != null && res.data.mima != ''){
password = res.data.mima;
} else if(res.data != null && res.data.password != null && res.data.password != ''){
password = res.data.password;
}
}
});
}
$(document).ready(function() {
//设置导航栏菜单
setMenu();
getId();
$('#submitBtn').on('click', function(e) {
e.preventDefault();
//console.log("点击了...提交按钮");
submit();
});
<%@ include file="../../static/myInfo.js"%>
});
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,683 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<link href="${pageContext.request.contextPath}/resources/css/bootstrap-select.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
.error {
color: red;
}
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑待取件表</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">待取件表管理</li>
<li class="breadcrumb-item active">编辑待取件表</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">待取件表信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<!-- 级联表的字段 -->
<div class="form-group col-md-6">
<label></label>
<div>
<select id="yonghuSelect" name="yonghuSelect"
class="selectpicker form-control" data-live-search="true"
title="请选择" data-header="请选择" data-size="5">
</select>
</div>
</div>
<div class="form-group col-md-6">
<label>学号</label>
<input id="studentnumber" name="studentnumber" class="form-control"
placeholder="学号" readonly>
</div>
<div class="form-group col-md-6">
<label>用户名称</label>
<input id="name" name="name" class="form-control"
placeholder="用户名称" readonly>
</div>
<div class="form-group col-md-6">
<label>性别</label>
<input id="sexValue" name="sexValue" class="form-control"
placeholder="性别" readonly>
</div>
<div class="form-group col-md-6">
<label>头像</label>
<img id="imgPhotoImg" src="" width="100" height="100">
</div>
<div class="form-group col-md-6">
<label>快递站点</label>
<div>
<select id="zhandianSelect" name="zhandianSelect"
class="selectpicker form-control" data-live-search="true"
title="请选择" data-header="请选择" data-size="5">
</select>
</div>
</div>
<div class="form-group col-md-6">
<label>站点地址</label>
<input id="address" name="address" class="form-control"
placeholder="站点地址" readonly>
</div>
<!-- 当前表的字段 -->
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>快递名称</label>
<input id="dqname" name="dqname" class="form-control"
placeholder="快递名称">
</div>
<input id="zhandianId" name="zhandianId" type="hidden">
<input id="yonghuId" name="yonghuId" type="hidden">
<div class="form-group col-md-6">
<label>快递大小</label>
<select id="kddxTypesSelect" name="kddxTypes" class="form-control">
</select>
</div>
<div class="form-group col-md-6">
<label>手机号</label>
<input id="dqphone" name="dqphone" class="form-control"
onchange="dqphoneChickValue(this)" placeholder="手机号">
</div>
<div class="form-group col-md-12 mb-3">
<button id="submitBtn" type="button" class="btn btn-primary btn-lg">提交</button>
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">返回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.fileupload.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/card.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js">
</script><script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/bootstrap-select.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "daiqu";
var pageType = "add-or-update";
var updateId = "";
var crossTableId = -1;
var crossTableName = '';
var ruleForm = {};
var crossRuleForm = {};
// 下拉框数组
<!-- 当前表的下拉框数组 -->
var kddxTypesOptions = [];
var kdztTypesOptions = [];
<!-- 级联表的下拉框数组 -->
var yonghuOptions = [];
var zhandianOptions = [];
var ruleForm = {};
// 文件上传
function upload() {
<!-- 当前表的文件上传 -->
}
// 表单提交
function submit() {
if (validform() == true && compare() == true) {
let data = {};
getContent();
if($("#zhandianId") !=null){
var zhandianId = $("#zhandianId").val();
if(zhandianId == null || zhandianId =='' || zhandianId == 'null'){
alert("站点不能为空");
return;
}
}
if($("#yonghuId") !=null){
var yonghuId = $("#yonghuId").val();
if(yonghuId == null || yonghuId =='' || yonghuId == 'null'){
alert("用户不能为空");
return;
}
}
let value = $('#addOrUpdateForm').serializeArray();
$.each(value, function (index, item) {
data[item.name] = item.value;
});
let json = JSON.stringify(data);
var urlParam;
var successMes = '';
if (updateId != null && updateId != "null" && updateId != '') {
urlParam = 'update';
successMes = '修改成功';
} else {
urlParam = 'save';
successMes = '添加成功';
}
httpJson("daiqu/" + urlParam, "POST", data, (res) => {
if(res.code == 0)
{
window.sessionStorage.removeItem('adddaiqu');
window.sessionStorage.removeItem('updateId');
let flag = true;
if (flag) {
alert(successMes);
}
if (window.sessionStorage.getItem('onlyme') != null && window.sessionStorage.getItem('onlyme') == "true") {
window.sessionStorage.removeItem('onlyme');
window.sessionStorage.setItem("reload","reload");
window.parent.location.href = "${pageContext.request.contextPath}/index.jsp";
} else {
window.location.href = "list.jsp";
}
}
});
} else {
alert("表单未填完整或有错误");
}
}
// 查询列表
<!-- 查询当前表的所有列表 -->
function kddxTypesSelect() {
//填充下拉框选项
http("dictionary/page?page=1&limit=100&sort=&order=&dicCode=kddx_types", "GET", {}, (res) => {
if(res.code == 0){
kddxTypesOptions = res.data.list;
}
});
}
function kdztTypesSelect() {
//填充下拉框选项
http("dictionary/page?page=1&limit=100&sort=&order=&dicCode=kdzt_types", "GET", {}, (res) => {
if(res.code == 0){
kdztTypesOptions = res.data.list;
}
});
}
<!-- 查询级联表的所有列表 -->
function yonghuSelect() {
//填充下拉框选项
http("yonghu/page?page=1&limit=100&sort=&order=", "GET", {}, (res) => {
if(res.code == 0){
yonghuOptions = res.data.list;
}
});
}
function yonghuSelectOne(id) {
http("yonghu/info/"+id, "GET", {}, (res) => {
if(res.code == 0){
ruleForm = res.data;
yonghuShowImg();
yonghuDataBind();
}
});
}
function zhandianSelect() {
//填充下拉框选项
http("zhandian/page?page=1&limit=100&sort=&order=", "GET", {}, (res) => {
if(res.code == 0){
zhandianOptions = res.data.list;
}
});
}
function zhandianSelectOne(id) {
http("zhandian/info/"+id, "GET", {}, (res) => {
if(res.code == 0){
ruleForm = res.data;
zhandianShowImg();
zhandianDataBind();
}
});
}
// 初始化下拉框
<!-- 初始化当前表的下拉框 -->
function initializationKddxtypesSelect(){
var kddxTypesSelect = document.getElementById('kddxTypesSelect');
if(kddxTypesSelect != null && kddxTypesOptions != null && kddxTypesOptions.length > 0 ){
for (var i = 0; i < kddxTypesOptions.length; i++) {
kddxTypesSelect.add(new Option(kddxTypesOptions[i].indexName,kddxTypesOptions[i].codeIndex));
}
}
}
function initializationKdzttypesSelect(){
var kdztTypesSelect = document.getElementById('kdztTypesSelect');
if(kdztTypesSelect != null && kdztTypesOptions != null && kdztTypesOptions.length > 0 ){
for (var i = 0; i < kdztTypesOptions.length; i++) {
kdztTypesSelect.add(new Option(kdztTypesOptions[i].indexName,kdztTypesOptions[i].codeIndex));
}
}
}
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
function initializationyonghuSelect() {
var yonghuSelect = document.getElementById('yonghuSelect');
if(yonghuSelect != null && yonghuOptions != null && yonghuOptions.length > 0 ) {
for (var i = 0; i < yonghuOptions.length; i++) {
yonghuSelect.add(new Option(yonghuOptions[i].name, yonghuOptions[i].id));
}
$("#yonghuSelect").change(function(e) {
yonghuSelectOne(e.target.value);
});
}
}
function initializationzhandianSelect() {
var zhandianSelect = document.getElementById('zhandianSelect');
if(zhandianSelect != null && zhandianOptions != null && zhandianOptions.length > 0 ) {
for (var i = 0; i < zhandianOptions.length; i++) {
zhandianSelect.add(new Option(zhandianOptions[i].zdname, zhandianOptions[i].id));
}
$("#zhandianSelect").change(function(e) {
zhandianSelectOne(e.target.value);
});
}
}
// 下拉框选项回显
function setSelectOption() {
<!-- 当前表的下拉框回显 -->
var kddxTypesSelect = document.getElementById("kddxTypesSelect");
if(kddxTypesSelect != null && kddxTypesOptions != null && kddxTypesOptions.length > 0 ) {
for (var i = 0; i < kddxTypesOptions.length; i++) {
if (kddxTypesOptions[i].codeIndex == ruleForm.kddxTypes) {//下拉框value对比,如果一致就赋值汉字
kddxTypesSelect.options[i].selected = true;
}
}
}
var kdztTypesSelect = document.getElementById("kdztTypesSelect");
if(kdztTypesSelect != null && kdztTypesOptions != null && kdztTypesOptions.length > 0 ) {
for (var i = 0; i < kdztTypesOptions.length; i++) {
if (kdztTypesOptions[i].codeIndex == ruleForm.kdztTypes) {//下拉框value对比,如果一致就赋值汉字
kdztTypesSelect.options[i].selected = true;
}
}
}
<!-- 级联表的下拉框回显 -->
var yonghuSelect = document.getElementById("yonghuSelect");
if(yonghuSelect != null && yonghuOptions != null && yonghuOptions.length > 0 ) {
for (var i = 0; i < yonghuOptions.length; i++) {
if (yonghuOptions[i].id == ruleForm.yonghuId) {//下拉框value对比,如果一致就赋值汉字
yonghuSelect.options[i+1].selected = true;
$("#yonghuSelect" ).selectpicker('refresh');
}
}
}
var zhandianSelect = document.getElementById("zhandianSelect");
if(zhandianSelect != null && zhandianOptions != null && zhandianOptions.length > 0 ) {
for (var i = 0; i < zhandianOptions.length; i++) {
if (zhandianOptions[i].id == ruleForm.zhandianId) {//下拉框value对比,如果一致就赋值汉字
zhandianSelect.options[i+1].selected = true;
$("#zhandianSelect" ).selectpicker('refresh');
}
}
}
}
// 填充富文本框
function setContent() {
<!-- 当前表的填充富文本框 -->
}
// 获取富文本框内容
function getContent() {
<!-- 获取当前表的富文本框内容 -->
}
//数字检查
<!-- 当前表的数字检查 -->
function dqphoneChickValue(e){
var this_val = e.value || 0;
/*if(this_val == 0){
e.value = "";
alert("0不允许输入");
return false;
}*/
var reg=/^[0-9]*$/;
if(!reg.test(this_val)){
e.value = "";
alert("输入不合法");
return false;
}
}
function exit() {
window.sessionStorage.removeItem("updateId");
window.sessionStorage.removeItem('adddaiqu');
window.location.href = "list.jsp";
}
// 表单校验
function validform() {
return $("#addOrUpdateForm").validate({
rules: {
dqname: "required",
zhandianId: "required",
yonghuId: "required",
kddxTypes: "required",
dqphone: "required",
takecode: "required",
kdztTypes: "required",
pickupTime: "required",
},
messages: {
dqname: "快递名称不能为空",
zhandianId: "站点不能为空",
yonghuId: "用户不能为空",
kddxTypes: "快递大小不能为空",
dqphone: "手机号不能为空",
takecode: "取件码不能为空",
kdztTypes: "快递状态不能为空",
pickupTime: "取件时间不能为空",
}
}).form();
}
// 获取当前详情
function getDetails() {
var adddaiqu = window.sessionStorage.getItem("adddaiqu");
if (adddaiqu != null && adddaiqu != "" && adddaiqu != "null") {
window.sessionStorage.removeItem('adddaiqu');
//注册表单验证
$(validform());
$('#submitBtn').text('新增');
} else {
$('#submitBtn').text('修改');
var userId = window.sessionStorage.getItem('userId');
updateId = userId;//先赋值登录用户id
var uId = window.sessionStorage.getItem('updateId');//获取修改传过来的id
if (uId != null && uId != "" && uId != "null") {
//如果修改id不为空就赋值修改id
updateId = uId;
}
window.sessionStorage.removeItem('updateId');
http("daiqu/info/" + updateId, "GET", {}, (res) => {
if(res.code == 0)
{
ruleForm = res.data
// 是/否下拉框回显
setSelectOption();
// 设置图片src
showImg();
// 数据填充
dataBind();
// 富文本框回显
setContent();
//注册表单验证
$(validform());
}
});
}
}
// 清除可能会重复渲染的selection
function clear(className) {
var elements = document.getElementsByClassName(className);
for (var i = elements.length - 1; i >= 0; i--) {
elements[i].parentNode.removeChild(elements[i]);
}
}
function dateTimePick() {
}
function dataBind() {
<!-- 级联表的数据回显 -->
yonghuDataBind();
zhandianDataBind();
<!-- 当前表的数据回显 -->
$("#updateId").val(ruleForm.id);
$("#dqname").val(ruleForm.dqname);
$("#zhandianId").val(ruleForm.zhandianId);
$("#yonghuId").val(ruleForm.yonghuId);
$("#dqphone").val(ruleForm.dqphone);
$("#takecode").val(ruleForm.takecode);
$("#pickupTime-input").val(ruleForm.pickupTime);
}
<!-- 级联表的数据回显 -->
function yonghuDataBind(){
<!-- 把id赋值给当前表的id-->
$("#yonghuId").val(ruleForm.id);
$("#studentnumber").val(ruleForm.studentnumber);
$("#name").val(ruleForm.name);
$("#username").val(ruleForm.username);
$("#password").val(ruleForm.password);
$("#sexValue").val(ruleForm.sexValue);
$("#dqphone").val(ruleForm.phone);
$("#zhuSuLou").val(ruleForm.zhuSuLou);
$("#dormitory").val(ruleForm.dormitory);
$("#role").val(ruleForm.role);
}
function zhandianDataBind(){
<!-- 把id赋值给当前表的id-->
$("#zhandianId").val(ruleForm.id);
$("#zdname").val(ruleForm.zdname);
$("#address").val(ruleForm.address);
}
//图片显示
function showImg() {
<!-- 当前表的图片 -->
<!-- 级联表的图片 -->
yonghuShowImg();
zhandianShowImg();
}
<!-- 级联表的图片 -->
function yonghuShowImg() {
debugger
$("#imgPhotoImg").attr("src",ruleForm.imgPhoto);
}
function zhandianShowImg() {
}
$(document).ready(function () {
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
//设置导航栏菜单
setMenu();
$('#exitBtn').on('click', function (e) {
e.preventDefault();
exit();
});
//初始化时间插件
dateTimePick();
//查询所有下拉框
<!-- 当前表的下拉框 -->
kddxTypesSelect();
kdztTypesSelect();
<!-- 查询级联表的下拉框(用id做option,用名字及其他参数做名字级联修改) -->
yonghuSelect();
zhandianSelect();
// 初始化下拉框
<!-- 初始化当前表的下拉框 -->
initializationKddxtypesSelect();
initializationKdzttypesSelect();
<!-- 初始化级联表的下拉框 -->
initializationyonghuSelect();
initializationzhandianSelect();
$(".selectpicker" ).selectpicker('refresh');
getDetails();
//初始化上传按钮
upload();
<%@ include file="../../static/myInfo.js"%>
$('#submitBtn').on('click', function (e) {
e.preventDefault();
//console.log("点击了...提交按钮");
submit();
});
readonly();
});
function readonly() {
if (window.sessionStorage.getItem('role') != '管理员') {
$('#jifen').attr('readonly', 'readonly');
//$('#money').attr('readonly', 'readonly');
}
}
//比较大小
function compare() {
var largerVal = null;
var smallerVal = null;
if (largerVal != null && smallerVal != null) {
if (largerVal <= smallerVal) {
alert(smallerName + '不能大于等于' + largerName);
return false;
}
}
return true;
}
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,327 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto" id="navUl">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑待取件表</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">待取件表管理</li>
<li class="breadcrumb-item active">待取件表登记</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">待取件表信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<!-- 级联表所有字段 -->
<div class="form-group col-md-6">
<label>学号</label>
<input id="studentnumber" name="studentnumber" class="form-control"
v-model="ruleForm.studentnumber" readonly>
</div>
<div class="form-group col-md-6">
<label>用户名称</label>
<input id="name" name="name" class="form-control"
v-model="ruleForm.name" readonly>
</div>
<div class="form-group col-md-6">
<label>账号</label>
<input id="username" name="username" class="form-control"
v-model="ruleForm.username" readonly>
</div>
<div class="form-group col-md-6">
<label>性别</label>
<input id="sexValue" name="sexValue" class="form-control"
v-model="ruleForm.sexValue" readonly>
</div>
<div class="form-group col-md-6">
<label>头像</label>
<img id="imgPhotoImg" width="100" height="100">
</div>
<div class="form-group col-md-6">
<label>联系电话</label>
<input id="phone" name="phone" class="form-control"
v-model="ruleForm.phone" readonly>
</div>
<div class="form-group col-md-6">
<label>住宿楼栋</label>
<input id="zhuSuLou" name="zhuSuLou" class="form-control"
v-model="ruleForm.zhuSuLou" readonly>
</div>
<div class="form-group col-md-6">
<label>寝室号</label>
<input id="dormitory" name="dormitory" class="form-control"
v-model="ruleForm.dormitory" readonly>
</div>
<div class="form-group col-md-6">
<label>身份</label>
<input id="role" name="role" class="form-control"
v-model="ruleForm.role" readonly>
</div>
<div class="form-group col-md-6">
<label>站点名称</label>
<input id="zdname" name="zdname" class="form-control"
v-model="ruleForm.zdname" readonly>
</div>
<div class="form-group col-md-6">
<label>站点地址</label>
<input id="address" name="address" class="form-control"
v-model="ruleForm.address" readonly>
</div>
<!-- 本表所有字段 -->
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>快递名称</label>
<input id="dqname" name="dqname" class="form-control"
v-model="ruleForm.dqname" readonly>
</div>
<input id="zhandianId" name="zhandianId" v-model="ruleForm.zhandianId" readonly type="hidden">
<input id="yonghuId" name="yonghuId" v-model="ruleForm.yonghuId" readonly type="hidden">
<div class="form-group col-md-6">
<label>快递大小</label>
<input id="kddxValue" name="kddxValue" class="form-control"
v-model="ruleForm.kddxValue" readonly>
</div>
<div class="form-group col-md-6">
<label>手机号</label>
<input id="dqphone" name="dqphone" class="form-control"
v-model="ruleForm.dqphone" readonly>
</div>
<div class="form-group col-md-6">
<label>取件码</label>
<input id="takecode" name="takecode" class="form-control"
v-model="ruleForm.takecode" readonly>
</div>
<div class="form-group col-md-6">
<label>快递状态</label>
<input id="kdztValue" name="kdztValue" class="form-control"
v-model="ruleForm.kdztValue" readonly>
</div>
<div class="form-group col-md-6">
<label>取件时间</label>
<input id="pickupTime" name="pickupTime" class="form-control"
v-model="ruleForm.pickupTime" readonly>
</div>
<div class="form-group col-md-12 mb-3">
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">返回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "daiqu";
var pageType = "add-or-update";
var updateId = "";
var kddxTypesOptions = [];
var kdztTypesOptions = [];
var ruleForm = {};
var vm = new Vue({
el: '#addOrUpdateForm',
data: {
ruleForm: {},
},
beforeCreate: function () {
var id = window.sessionStorage.getItem("updateId");
if (id != null && id != "" && id != "null") {
$.ajax({
type: "GET",
url: baseUrl + "daiqu/info/" + id,
beforeSend: function (xhr) {
xhr.setRequestHeader("token", window.sessionStorage.getItem('token'));
},
success: function (res) {
if (res.code == 0) {
vm.ruleForm = res.data;
ruleForm = res.data;
showImg();
setContent();
} else if (res.code == 401) {
<%@ include file="../../static/toLogin.jsp"%>
} else {
alert(res.msg)
}
},
});
}
},
methods: {}
});
// 填充富文本框
function setContent() {
}
//图片显示
function showImg() {
$("#imgPhotoImg").attr("src", ruleForm.imgPhoto);
}
function exit() {
window.sessionStorage.removeItem("updateId");
window.sessionStorage.removeItem('adddaiqu');
window.location.href = "list.jsp";
}
// 下载
function download(fileName) {
var url = baseUrl+'file/download?fileName='+fileName;
window.open(url);
}
//设置下载
function setDownloadBtn() {
}
$(document).ready(function () {
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
setMenu();
$('#exitBtn').on('click', function (e) {
e.preventDefault();
exit();
});
<%@ include file="../../static/myInfo.js"%>
});
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,757 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<!-- font-awesome -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/font-awesome.min.css">
</head>
<style>
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">待取件表管理</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">待取件表管理</li>
<li class="breadcrumb-item active">待取件表列表</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">待取件表列表</h3>
<div class="table-responsive mb-3">
<div class="col-sm-12">
<label>
快递名称
<input type="text" id="dqnameSearch" style="width: 140px;" class="form-control form-control-sm"
placeholder="快递名称" aria-controls="tableId">
</label>
<label>
快递大小
<select name="kddxTypesSelectSearch" style="width: 100px;" id="kddxTypesSelectSearch" class="form-control form-control-sm"
aria-controls="tableId">
</select>
</label>
<label>
取件时间
<input type="datetime-local" id="pickupTimeStartSearch" style="width: 190px;" class="form-control " placeholder="开始" aria-controls="tableId">
</label>
-
<label>
<input type="datetime-local" id="pickupTimeEndSearch" style="width: 190px;" class="form-control" placeholder="结束" aria-controls="tableId">
</label>
<button onclick="search()" type="button" class="btn btn-primary">查询</button>
<br/>
<button onclick="add()" type="button" class="btn btn-success 新增">添加</button>
<button onclick="graph()" type="button" class="btn btn-success 报表">报表</button>
<button onclick="deleteMore()" type="button" class="btn btn-danger 删除">批量删除</button>
</div>
<table id="tableId" class="table table-bordered table-striped">
<thead>
<tr>
<th class="no-sort" style="min-width: 35px;">
<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="select-all"
onclick="chooseAll()">
<label class="custom-control-label" for="select-all"></label>
</div>
</th>
<th >快递名称</th>
<th >用户名称</th>
<th >站点名称</th>
<th >站点地址</th>
<th >快递大小</th>
<th >手机号</th>
<th >取件码</th>
<th >快递状态</th>
<th >取件时间</th>
<th>操作</th>
</tr>
</thead>
<tbody id="thisTbody">
</tbody>
</table>
<div class="col-md-6 col-sm-3">
<div class="dataTables_length" id="tableId_length">
<select name="tableId_length" aria-controls="tableId" id="selectPageSize"
onchange="changePageSize()">
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
条 每页
</div>
</div>
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-end">
<li class="page-item" id="tableId_previous" onclick="pageNumChange('pre')">
<a class="page-link" href="#" tabindex="-1">上一页</a>
</li>
<li class="page-item" id="tableId_next" onclick="pageNumChange('next')">
<a class="page-link" href="#">下一页</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script language="javascript" type="text/javascript"
src="${pageContext.request.contextPath}/resources/My97DatePicker/WdatePicker.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
<%@ include file="../../static/getRoleButtons.js"%>
<%@ include file="../../static/crossBtnControl.js"%>
var tableName = "daiqu";
var pageType = "list";
var searchForm = {key: ""};
var pageIndex = 1;
var pageSize = 10;
var totalPage = 0;
var dataList = [];
var sortColumn = '';
var sortOrder = '';
var ids = [];
var checkAll = false;
var sexTypesOptions = [];
var kddxTypesOptions = [];
function init() {
// 满足条件渲染提醒接口
}
// 改变每页记录条数
function changePageSize() {
var selection = document.getElementById('selectPageSize');
var index = selection.selectedIndex;
pageSize = selection.options[index].value;
getDataList();
}
// 查询
function search() {
searchForm = {key: ""};
<!-- 级联表的级联字典表 -->
//用户名称
var nameSearchInput = $('#nameSearch');
if( nameSearchInput != null){
if (nameSearchInput.val() != null && nameSearchInput.val() != '') {
searchForm.name = $('#nameSearch').val();
}
}
var sexTypesSelectSearchInput = document.getElementById("sexTypesSelectSearch");
if(sexTypesSelectSearchInput != null){
var sexTypesIndex = sexTypesSelectSearchInput.selectedIndex;
if( sexTypesIndex != 0){
searchForm.sexTypes = document.getElementById("sexTypesSelectSearch").options[sexTypesIndex].value;
}
}
//站点名称
var zdnameSearchInput = $('#zdnameSearch');
if( zdnameSearchInput != null){
if (zdnameSearchInput.val() != null && zdnameSearchInput.val() != '') {
searchForm.zdname = $('#zdnameSearch').val();
}
}
<!-- 本表的查询条件 -->
//快递名称
var dqnameSearchInput = $('#dqnameSearch');
if( dqnameSearchInput != null){
if (dqnameSearchInput.val() != null && dqnameSearchInput.val() != '') {
searchForm.dqname = $('#dqnameSearch').val();
}
}
//快递大小
var kddxTypesSelectSearchInput = document.getElementById("kddxTypesSelectSearch");
if(kddxTypesSelectSearchInput != null){
var kddxTypesIndex = kddxTypesSelectSearchInput.selectedIndex;
if( kddxTypesIndex != 0){
searchForm.kddxTypes= document.getElementById("kddxTypesSelectSearch").options[kddxTypesIndex].value;
}
}
var pickupTimeStartSearch = $('#pickupTimeStartSearch');
if( pickupTimeStartSearch != null){
if (pickupTimeStartSearch.val() != null && pickupTimeStartSearch.val() != '') {
searchForm.pickupTimeStart = $('#pickupTimeStartSearch').val();
}
}
var pickupTimeEndSearch = $('#pickupTimeEndSearch');
if( pickupTimeEndSearch != null){
if (pickupTimeEndSearch.val() != null && pickupTimeEndSearch.val() != '') {
searchForm.pickupTimeEnd = $('#pickupTimeEndSearch').val();
}
}
getDataList();
}
// 获取数据列表
function getDataList() {
http("daiqu/page", "GET", {
page: pageIndex,
limit: pageSize,
sort: sortColumn,
order: sortOrder,
//本表的
dqname: searchForm.dqname,
kddxTypes: searchForm.kddxTypes,
pickupTimeStart: searchForm.pickupTimeStart,
pickupTimeEnd: searchForm.pickupTimeEnd,
//级联表的
name: searchForm.name,
sexTypes: searchForm.sexTypes,
zdname: searchForm.zdname,
}, (res) => {
if(res.code == 0)
{
clear();
$("#thisTbody").html("");
dataList = res.data.list;
totalPage = res.data.totalPage;
//var tbody = document.getElementById('tbMain');
for (var i = 0; i < dataList.length; i++) { //遍历一下表格数据  
var trow = setDataRow(dataList[i], i); //定义一个方法,返回tr数据 
$('#thisTbody').append(trow);
}
pagination(); //渲染翻页组件
getRoleButtons();// 权限按钮控制
}
})
;
}
// 渲染表格数据
function setDataRow(item, number) {
//创建行 
var row = document.createElement('tr');
row.setAttribute('class', 'useOnce');
//创建勾选框
var checkbox = document.createElement('td');
var checkboxDiv = document.createElement('div');
checkboxDiv.setAttribute("class", "custom-control custom-checkbox");
var checkboxInput = document.createElement('input');
checkboxInput.setAttribute("class", "custom-control-input");
checkboxInput.setAttribute("type", "checkbox");
checkboxInput.setAttribute('name', 'chk');
checkboxInput.setAttribute('value', item.id);
checkboxInput.setAttribute("id", number);
checkboxDiv.appendChild(checkboxInput);
var checkboxLabel = document.createElement('label');
checkboxLabel.setAttribute("class", "custom-control-label");
checkboxLabel.setAttribute("for", number);
checkboxDiv.appendChild(checkboxLabel);
checkbox.appendChild(checkboxDiv);
row.appendChild(checkbox)
//快递名称
var dqnameCell = document.createElement('td');
dqnameCell.innerHTML = item.dqname;
row.appendChild(dqnameCell);
//用户名称
var nameCell = document.createElement('td');
nameCell.innerHTML = item.name;
row.appendChild(nameCell);
//站点名称
var zdnameCell = document.createElement('td');
zdnameCell.innerHTML = item.zdname;
row.appendChild(zdnameCell);
//站点地址
var addressCell = document.createElement('td');
addressCell.innerHTML = item.address;
row.appendChild(addressCell);
//快递大小
var kddxTypesCell = document.createElement('td');
kddxTypesCell.innerHTML = item.kddxValue;
row.appendChild(kddxTypesCell);
//手机号
var dqphoneCell = document.createElement('td');
dqphoneCell.innerHTML = item.dqphone;
row.appendChild(dqphoneCell);
//取件码
var takecodeCell = document.createElement('td');
takecodeCell.innerHTML = item.takecode;
row.appendChild(takecodeCell);
//快递状态
var kdztTypesCell = document.createElement('td');
kdztTypesCell.innerHTML = item.kdztValue;
row.appendChild(kdztTypesCell);
//取件时间
var pickupTimeCell = document.createElement('td');
if(item.pickupTime != null){
pickupTimeCell.innerHTML = item.pickupTime;
}else{
pickupTimeCell.innerHTML = "暂无被取时间";
}
row.appendChild(pickupTimeCell);
//每行按钮
var btnGroup = document.createElement('td');
//修改按钮
var editBtn = document.createElement('button');
var editAttr = 'edit(' + item.id + ')';
editBtn.setAttribute("type", "button");
editBtn.setAttribute("class", "btn btn-warning btn-sm 修改");
editBtn.setAttribute("onclick", editAttr);
editBtn.innerHTML = "修改"
btnGroup.appendChild(editBtn)
//删除按钮
var deleteBtn = document.createElement('button');
var deleteAttr = 'remove(' + item.id + ')';
deleteBtn.setAttribute("type", "button");
deleteBtn.setAttribute("class", "btn btn-danger btn-sm 删除");
deleteBtn.setAttribute("onclick", deleteAttr);
deleteBtn.innerHTML = "删除"
btnGroup.appendChild(deleteBtn)
if(item.kdztValue == "待取"){
//详情按钮
var detailBtn = document.createElement('button');
var detailAttr = "pickUp(" + item.id + ')';
detailBtn.setAttribute("type", "button");
detailBtn.setAttribute("class", "btn btn-info btn-sm 取件");
detailBtn.setAttribute("onclick", detailAttr);
detailBtn.innerHTML = "立即取件"
btnGroup.appendChild(detailBtn)
}
if(item.kdztValue == "待取"){
//详情按钮
var detailBtn = document.createElement('button');
var detailAttr = "replaceExpress(" + item.id + ')';
detailBtn.setAttribute("type", "button");
detailBtn.setAttribute("class", "btn btn-success btn-sm 发布订单");
detailBtn.setAttribute("onclick", detailAttr);
detailBtn.innerHTML = "发布代取订单"
btnGroup.appendChild(detailBtn)
}
row.appendChild(btnGroup)
return row;
}
// 翻页
function pageNumChange(val) {
if (val == 'pre') {
pageIndex--;
} else if (val == 'next') {
pageIndex++;
} else {
pageIndex = val;
}
getDataList();
}
// 下载
function download(url) {
window.open(url);
}
// 渲染翻页组件
function pagination() {
var beginIndex = pageIndex;
var endIndex = pageIndex;
var point = 4;
//计算页码
for (var i = 0; i < 3; i++) {
if (endIndex == totalPage) {
break;
}
endIndex++;
point--;
}
for (var i = 0; i < 3; i++) {
if (beginIndex == 1) {
break;
}
beginIndex--;
point--;
}
if (point > 0) {
while (point > 0) {
if (endIndex == totalPage) {
break;
}
endIndex++;
point--;
}
while (point > 0) {
if (beginIndex == 1) {
break;
}
beginIndex--;
point--
}
}
// 是否显示 前一页 按钮
if (pageIndex > 1) {
$('#tableId_previous').show();
} else {
$('#tableId_previous').hide();
}
// 渲染页码按钮
for (var i = beginIndex; i <= endIndex; i++) {
var pageNum = document.createElement('li');
pageNum.setAttribute('onclick', "pageNumChange(" + i + ")");
if (pageIndex == i) {
pageNum.setAttribute('class', 'paginate_button page-item active useOnce');
} else {
pageNum.setAttribute('class', 'paginate_button page-item useOnce');
}
var pageHref = document.createElement('a');
pageHref.setAttribute('class', 'page-link');
pageHref.setAttribute('href', '#');
pageHref.setAttribute('aria-controls', 'tableId');
pageHref.setAttribute('data-dt-idx', i);
pageHref.setAttribute('tabindex', 0);
pageHref.innerHTML = i;
pageNum.appendChild(pageHref);
$('#tableId_next').before(pageNum);
}
// 是否显示 下一页 按钮
if (pageIndex < totalPage) {
$('#tableId_next').show();
$('#tableId_next a').attr('data-dt-idx', endIndex + 1);
} else {
$('#tableId_next').hide();
}
var pageNumInfo = "当前第 " + pageIndex + " 页,共 " + totalPage + " 页";
$('#tableId_info').html(pageNumInfo);
}
// 跳转到指定页
function toThatPage() {
//var index = document.getElementById('pageIndexInput').value;
if (index < 0 || index > totalPage) {
alert('请输入正确的页码');
} else {
pageNumChange(index);
}
}
// 全选/全不选
function chooseAll() {
checkAll = !checkAll;
var boxs = document.getElementsByName("chk");
for (var i = 0; i < boxs.length; i++) {
boxs[i].checked = checkAll;
}
}
// 批量删除
function deleteMore() {
ids = []
var boxs = document.getElementsByName("chk");
for (var i = 0; i < boxs.length; i++) {
if (boxs[i].checked) {
ids.push(boxs[i].value)
}
}
if (ids.length == 0) {
alert('请勾选要删除的记录');
} else {
remove(ids);
}
}
// 删除
function remove(id) {
var mymessage = confirm("真的要删除吗?");
if (mymessage == true) {
var paramArray = [];
if (id == ids) {
paramArray = id;
} else {
paramArray.push(id);
}
httpJson("daiqu/delete", "POST", paramArray, (res) => {
if(res.code == 0
)
{
getDataList();
alert('删除成功');
}
})
;
}
else {
alert("已取消操作");
}
}
//取件
function pickUp(id) {
var mymessage = confirm("你确定要取这件快递吗?");
if (mymessage == true) {
paramArray = id;
httpJson("daiqu/pickUp", "POST", paramArray, (res) => {
if(res.code == 0
)
{
getDataList();
alert('取件成功');
}
})
;
}
else {
alert("已取消操作");
}
}
//发布代取订单
function replaceExpress(id) {
var mymessage = confirm("你确定要对这件快递发起代取订单吗?");
if (mymessage == true) {
paramArray = id;
httpJson("daiqu/replaceExpress", "POST", paramArray, (res) => {
if(res.code == 0
)
{
getDataList();
alert('请求发布成功');
}
})
;
}
else {
alert("已取消操作");
}
}
// 用户登出
<%@ include file="../../static/logout.jsp"%>
//修改
function edit(id) {
window.sessionStorage.setItem('updateId', id)
window.location.href = "add-or-update.jsp"
}
//清除会重复渲染的节点
function clear() {
var elements = document.getElementsByClassName('useOnce');
for (var i = elements.length - 1; i >= 0; i--) {
elements[i].parentNode.removeChild(elements[i]);
}
}
//添加
function add() {
window.sessionStorage.setItem("adddaiqu", "adddaiqu");
window.location.href = "add-or-update.jsp"
}
//报表
function graph() {
window.location.href = "graph.jsp"
}
// 查看详情
function detail(id) {
window.sessionStorage.setItem("updateId", id);
window.location.href = "info.jsp";
}
//填充级联表搜索下拉框
function sexTypesSelectSearch() {
var sexTypesSelectSearch = document.getElementById('sexTypesSelectSearch');
if(sexTypesSelectSearch != null) {
sexTypesSelectSearch.add(new Option('-请选择-',''));
if (sexTypesOptions != null && sexTypesOptions.length > 0){
for (var i = 0; i < sexTypesOptions.length; i++) {
sexTypesSelectSearch.add(new Option(sexTypesOptions[i].indexName, sexTypesOptions[i].codeIndex));
}
}
}
}
//填充本表搜索下拉框
function kddxTypesSelectSearch() {
var kddxTypesSelectSearch = document.getElementById('kddxTypesSelectSearch');
if(kddxTypesSelectSearch != null) {
kddxTypesSelectSearch.add(new Option('-请选择-',''));
if (kddxTypesOptions != null && kddxTypesOptions.length > 0){
for (var i = 0; i < kddxTypesOptions.length; i++) {
kddxTypesSelectSearch.add(new Option(kddxTypesOptions[i].indexName,kddxTypesOptions[i].codeIndex));
}
}
}
}
//查询级联表搜索条件所有列表
function sexTypesSelect() {
//填充下拉框选项
http("dictionary/page?page=1&limit=100&sort=&order=&dicCode=sex_types", "GET", {}, (res) => {
if(res.code == 0){
sexTypesOptions = res.data.list;
}
});
}
//查询当前表搜索条件所有列表
function kddxTypesSelect() {
//填充下拉框选项
http("dictionary/page?page=1&limit=100&sort=&order=&dicCode=kddx_types", "GET", {}, (res) => {
if(res.code == 0){
kddxTypesOptions = res.data.list;
}
});
}
$(document).ready(function () {
//激活翻页按钮
$('#tableId_previous').attr('class', 'paginate_button page-item previous')
$('#tableId_next').attr('class', 'paginate_button page-item next')
//隐藏原生搜索框
$('#tableId_filter').hide()
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
setMenu();
init();
//查询级联表的搜索下拉框
sexTypesSelect();
//查询当前表的搜索下拉框
kddxTypesSelect();
getDataList();
//级联表的下拉框赋值
sexTypesSelectSearch();
//当前表的下拉框赋值
kddxTypesSelectSearch();
<%@ include file="../../static/myInfo.js"%>
});
</script>
</body>
</html>

@ -0,0 +1,487 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<link href="${pageContext.request.contextPath}/resources/css/bootstrap-select.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
.error {
color: red;
}
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">管理</li>
<li class="breadcrumb-item active">编辑</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<!-- 级联表的字段 -->
<!-- 当前表的字段 -->
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>用户名称</label>
<input id="name" name="name" class="form-control"
placeholder="用户名称">
</div>
<div class="form-group col-md-6">
<label>账号</label>
<input id="username" name="username" class="form-control"
placeholder="账号">
</div>
<div class="form-group col-md-6">
<label>性别</label>
<select id="sexTypesSelect" name="sexTypes" class="form-control">
</select>
</div>
<div class="form-group col-md-6">
<label>头像</label>
<img id="imgPhotoImg" src="" width="100" height="100">
<input name="file" type="file" id="imgPhotoupload"
class="form-control-file">
<input name="imgPhoto" id="imgPhoto-input" type="hidden">
</div>
<div class="form-group col-md-6">
<label>联系电话</label>
<input id="phone" name="phone" class="form-control"
onchange="phoneChickValue(this)" placeholder="联系电话">
</div>
<div class="form-group col-md-12 mb-3">
<button id="submitBtn" type="button" class="btn btn-primary btn-lg">提交</button>
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">返回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.fileupload.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/card.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js">
</script><script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/bootstrap-select.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "daiquren";
var pageType = "add-or-update";
var updateId = "";
var crossTableId = -1;
var crossTableName = '';
var ruleForm = {};
var crossRuleForm = {};
// 下拉框数组
<!-- 当前表的下拉框数组 -->
var sexTypesOptions = [];
<!-- 级联表的下拉框数组 -->
var ruleForm = {};
// 文件上传
function upload() {
<!-- 当前表的文件上传 -->
$('#imgPhotoupload').fileupload({
url: baseUrl + 'file/upload',
headers: {token: window.sessionStorage.getItem("token")},
dataType: 'json',
done: function (e, data) {
var photoUrl= baseUrl + 'file/download?fileName=' + data.result.file;
document.getElementById('imgPhotoImg').setAttribute('src',photoUrl);
document.getElementById('imgPhoto-input').setAttribute('value',photoUrl);
}
});
}
// 表单提交
function submit() {
if (validform() == true && compare() == true) {
let data = {};
getContent();
let value = $('#addOrUpdateForm').serializeArray();
$.each(value, function (index, item) {
data[item.name] = item.value;
});
let json = JSON.stringify(data);
var urlParam;
var successMes = '';
if (updateId != null && updateId != "null" && updateId != '') {
urlParam = 'update';
successMes = '修改成功';
} else {
urlParam = 'save';
successMes = '添加成功';
}
httpJson("daiquren/" + urlParam, "POST", data, (res) => {
if(res.code == 0)
{
window.sessionStorage.removeItem('adddaiquren');
window.sessionStorage.removeItem('updateId');
let flag = true;
if (flag) {
alert(successMes);
}
if (window.sessionStorage.getItem('onlyme') != null && window.sessionStorage.getItem('onlyme') == "true") {
window.sessionStorage.removeItem('onlyme');
window.sessionStorage.setItem("reload","reload");
window.parent.location.href = "${pageContext.request.contextPath}/index.jsp";
} else {
window.location.href = "list.jsp";
}
}
});
} else {
alert("表单未填完整或有错误");
}
}
// 查询列表
<!-- 查询当前表的所有列表 -->
function sexTypesSelect() {
//填充下拉框选项
http("dictionary/page?page=1&limit=100&sort=&order=&dicCode=sex_types", "GET", {}, (res) => {
if(res.code == 0){
sexTypesOptions = res.data.list;
}
});
}
<!-- 查询级联表的所有列表 -->
// 初始化下拉框
<!-- 初始化当前表的下拉框 -->
function initializationSextypesSelect(){
var sexTypesSelect = document.getElementById('sexTypesSelect');
if(sexTypesSelect != null && sexTypesOptions != null && sexTypesOptions.length > 0 ){
for (var i = 0; i < sexTypesOptions.length; i++) {
sexTypesSelect.add(new Option(sexTypesOptions[i].indexName,sexTypesOptions[i].codeIndex));
}
}
}
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
// 下拉框选项回显
function setSelectOption() {
<!-- 当前表的下拉框回显 -->
var sexTypesSelect = document.getElementById("sexTypesSelect");
if(sexTypesSelect != null && sexTypesOptions != null && sexTypesOptions.length > 0 ) {
for (var i = 0; i < sexTypesOptions.length; i++) {
if (sexTypesOptions[i].codeIndex == ruleForm.sexTypes) {//下拉框value对比,如果一致就赋值汉字
sexTypesSelect.options[i].selected = true;
}
}
}
<!-- 级联表的下拉框回显 -->
}
// 填充富文本框
function setContent() {
<!-- 当前表的填充富文本框 -->
}
// 获取富文本框内容
function getContent() {
<!-- 获取当前表的富文本框内容 -->
}
//数字检查
<!-- 当前表的数字检查 -->
function phoneChickValue(e){
var this_val = e.value || 0;
var reg=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
if(!reg.test(this_val)){
e.value = "";
alert("手机号不正确");
return false;
}
}
function exit() {
window.sessionStorage.removeItem("updateId");
window.sessionStorage.removeItem('adddaiquren');
window.location.href = "list.jsp";
}
// 表单校验
function validform() {
return $("#addOrUpdateForm").validate({
rules: {
name: "required",
username: "required",
password: "required",
sexTypes: "required",
imgPhoto: "required",
phone: "required",
role: "required",
},
messages: {
name: "用户名称不能为空",
username: "账号不能为空",
password: "密码不能为空",
sexTypes: "性别不能为空",
imgPhoto: "头像不能为空",
phone: "联系电话不能为空",
role: "身份不能为空",
}
}).form();
}
// 获取当前详情
function getDetails() {
var adddaiquren = window.sessionStorage.getItem("adddaiquren");
if (adddaiquren != null && adddaiquren != "" && adddaiquren != "null") {
window.sessionStorage.removeItem('adddaiquren');
//注册表单验证
$(validform());
$('#submitBtn').text('新增');
} else {
$('#submitBtn').text('修改');
var userId = window.sessionStorage.getItem('userId');
updateId = userId;//先赋值登录用户id
var uId = window.sessionStorage.getItem('updateId');//获取修改传过来的id
if (uId != null && uId != "" && uId != "null") {
//如果修改id不为空就赋值修改id
updateId = uId;
}
window.sessionStorage.removeItem('updateId');
http("daiquren/info/" + updateId, "GET", {}, (res) => {
if(res.code == 0)
{
ruleForm = res.data
// 是/否下拉框回显
setSelectOption();
// 设置图片src
showImg();
// 数据填充
dataBind();
// 富文本框回显
setContent();
//注册表单验证
$(validform());
}
});
}
}
// 清除可能会重复渲染的selection
function clear(className) {
var elements = document.getElementsByClassName(className);
for (var i = elements.length - 1; i >= 0; i--) {
elements[i].parentNode.removeChild(elements[i]);
}
}
function dateTimePick() {
}
function dataBind() {
<!-- 级联表的数据回显 -->
<!-- 当前表的数据回显 -->
$("#updateId").val(ruleForm.id);
$("#name").val(ruleForm.name);
$("#username").val(ruleForm.username);
$("#password").val(ruleForm.password);
$("#phone").val(ruleForm.phone);
$("#role").val(ruleForm.role);
}
<!-- 级联表的数据回显 -->
//图片显示
function showImg() {
<!-- 当前表的图片 -->
$("#imgPhotoImg").attr("src",ruleForm.imgPhoto);
<!-- 级联表的图片 -->
}
<!-- 级联表的图片 -->
$(document).ready(function () {
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
//设置导航栏菜单
setMenu();
$('#exitBtn').on('click', function (e) {
e.preventDefault();
exit();
});
//初始化时间插件
dateTimePick();
//查询所有下拉框
<!-- 当前表的下拉框 -->
sexTypesSelect();
<!-- 查询级联表的下拉框(用id做option,用名字及其他参数做名字级联修改) -->
// 初始化下拉框
<!-- 初始化当前表的下拉框 -->
initializationSextypesSelect();
<!-- 初始化级联表的下拉框 -->
$(".selectpicker" ).selectpicker('refresh');
getDetails();
//初始化上传按钮
upload();
<%@ include file="../../static/myInfo.js"%>
$('#submitBtn').on('click', function (e) {
e.preventDefault();
//console.log("点击了...提交按钮");
submit();
});
readonly();
});
function readonly() {
if (window.sessionStorage.getItem('role') != '管理员') {
$('#jifen').attr('readonly', 'readonly');
//$('#money').attr('readonly', 'readonly');
}
}
//比较大小
function compare() {
var largerVal = null;
var smallerVal = null;
if (largerVal != null && smallerVal != null) {
if (largerVal <= smallerVal) {
alert(smallerName + '不能大于等于' + largerName);
return false;
}
}
return true;
}
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,245 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto" id="navUl">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">管理</li>
<li class="breadcrumb-item active">登记</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<!-- 级联表所有字段 -->
<!-- 本表所有字段 -->
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>用户名称</label>
<input id="name" name="name" class="form-control"
v-model="ruleForm.name" readonly>
</div>
<div class="form-group col-md-6">
<label>账号</label>
<input id="username" name="username" class="form-control"
v-model="ruleForm.username" readonly>
</div>
<div class="form-group col-md-6">
<label>性别</label>
<input id="sexValue" name="sexValue" class="form-control"
v-model="ruleForm.sexValue" readonly>
</div>
<div class="form-group col-md-6">
<label>头像</label>
<img id="imgPhotoImg" width="100" height="100">
</div>
<div class="form-group col-md-6">
<label>联系电话</label>
<input id="phone" name="phone" class="form-control"
v-model="ruleForm.phone" readonly>
</div>
<div class="form-group col-md-6">
<label>身份</label>
<input id="role" name="role" class="form-control"
v-model="ruleForm.role" readonly>
</div>
<div class="form-group col-md-12 mb-3">
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">返回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "daiquren";
var pageType = "add-or-update";
var updateId = "";
var sexTypesOptions = [];
var ruleForm = {};
var vm = new Vue({
el: '#addOrUpdateForm',
data: {
ruleForm: {},
},
beforeCreate: function () {
var id = window.sessionStorage.getItem("updateId");
if (id != null && id != "" && id != "null") {
$.ajax({
type: "GET",
url: baseUrl + "daiquren/info/" + id,
beforeSend: function (xhr) {
xhr.setRequestHeader("token", window.sessionStorage.getItem('token'));
},
success: function (res) {
if (res.code == 0) {
vm.ruleForm = res.data;
ruleForm = res.data;
showImg();
setContent();
} else if (res.code == 401) {
<%@ include file="../../static/toLogin.jsp"%>
} else {
alert(res.msg)
}
},
});
}
},
methods: {}
});
// 填充富文本框
function setContent() {
}
//图片显示
function showImg() {
$("#imgPhotoImg").attr("src", ruleForm.imgPhoto);
}
function exit() {
window.sessionStorage.removeItem("updateId");
window.sessionStorage.removeItem('adddaiquren');
window.location.href = "list.jsp";
}
// 下载
function download(fileName) {
var url = baseUrl+'file/download?fileName='+fileName;
window.open(url);
}
//设置下载
function setDownloadBtn() {
}
$(document).ready(function () {
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
setMenu();
$('#exitBtn').on('click', function (e) {
e.preventDefault();
exit();
});
<%@ include file="../../static/myInfo.js"%>
});
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,607 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<!-- font-awesome -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/font-awesome.min.css">
</head>
<style>
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">管理</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">管理</li>
<li class="breadcrumb-item active">列表</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">列表</h3>
<div class="table-responsive mb-3">
<div class="col-sm-12">
<label>
用户名称
<input type="text" id="nameSearch" style="width: 140px;" class="form-control form-control-sm"
placeholder="用户名称" aria-controls="tableId">
</label>
<label>
性别
<select name="sexTypesSelectSearch" style="width: 100px;" id="sexTypesSelectSearch" class="form-control form-control-sm"
aria-controls="tableId">
</select>
</label>
<button onclick="search()" type="button" class="btn btn-primary">查询</button>
<br/>
<button onclick="add()" type="button" class="btn btn-success 新增">添加</button>
<button onclick="graph()" type="button" class="btn btn-success 报表">报表</button>
<button onclick="deleteMore()" type="button" class="btn btn-danger 删除">批量删除</button>
</div>
<table id="tableId" class="table table-bordered table-striped">
<thead>
<tr>
<th class="no-sort" style="min-width: 35px;">
<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="select-all"
onclick="chooseAll()">
<label class="custom-control-label" for="select-all"></label>
</div>
</th>
<th >用户名称</th>
<th >账号</th>
<th >性别</th>
<th >头像</th>
<th >联系电话</th>
<th >身份</th>
<th>操作</th>
</tr>
</thead>
<tbody id="thisTbody">
</tbody>
</table>
<div class="col-md-6 col-sm-3">
<div class="dataTables_length" id="tableId_length">
<select name="tableId_length" aria-controls="tableId" id="selectPageSize"
onchange="changePageSize()">
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
条 每页
</div>
</div>
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-end">
<li class="page-item" id="tableId_previous" onclick="pageNumChange('pre')">
<a class="page-link" href="#" tabindex="-1">上一页</a>
</li>
<li class="page-item" id="tableId_next" onclick="pageNumChange('next')">
<a class="page-link" href="#">下一页</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script language="javascript" type="text/javascript"
src="${pageContext.request.contextPath}/resources/My97DatePicker/WdatePicker.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
<%@ include file="../../static/getRoleButtons.js"%>
<%@ include file="../../static/crossBtnControl.js"%>
var tableName = "daiquren";
var pageType = "list";
var searchForm = {key: ""};
var pageIndex = 1;
var pageSize = 10;
var totalPage = 0;
var dataList = [];
var sortColumn = '';
var sortOrder = '';
var ids = [];
var checkAll = false;
var sexTypesOptions = [];
function init() {
// 满足条件渲染提醒接口
}
// 改变每页记录条数
function changePageSize() {
var selection = document.getElementById('selectPageSize');
var index = selection.selectedIndex;
pageSize = selection.options[index].value;
getDataList();
}
// 查询
function search() {
searchForm = {key: ""};
<!-- 级联表的级联字典表 -->
<!-- 本表的查询条件 -->
//用户名称
var nameSearchInput = $('#nameSearch');
if( nameSearchInput != null){
if (nameSearchInput.val() != null && nameSearchInput.val() != '') {
searchForm.name = $('#nameSearch').val();
}
}
//性别
var sexTypesSelectSearchInput = document.getElementById("sexTypesSelectSearch");
if(sexTypesSelectSearchInput != null){
var sexTypesIndex = sexTypesSelectSearchInput.selectedIndex;
if( sexTypesIndex != 0){
searchForm.sexTypes= document.getElementById("sexTypesSelectSearch").options[sexTypesIndex].value;
}
}
getDataList();
}
// 获取数据列表
function getDataList() {
http("daiquren/page", "GET", {
page: pageIndex,
limit: pageSize,
sort: sortColumn,
order: sortOrder,
//本表的
name: searchForm.name,
sexTypes: searchForm.sexTypes,
//级联表的
}, (res) => {
if(res.code == 0)
{
clear();
$("#thisTbody").html("");
dataList = res.data.list;
totalPage = res.data.totalPage;
//var tbody = document.getElementById('tbMain');
for (var i = 0; i < dataList.length; i++) { //遍历一下表格数据  
var trow = setDataRow(dataList[i], i); //定义一个方法,返回tr数据 
$('#thisTbody').append(trow);
}
pagination(); //渲染翻页组件
getRoleButtons();// 权限按钮控制
}
})
;
}
// 渲染表格数据
function setDataRow(item, number) {
//创建行 
var row = document.createElement('tr');
row.setAttribute('class', 'useOnce');
//创建勾选框
var checkbox = document.createElement('td');
var checkboxDiv = document.createElement('div');
checkboxDiv.setAttribute("class", "custom-control custom-checkbox");
var checkboxInput = document.createElement('input');
checkboxInput.setAttribute("class", "custom-control-input");
checkboxInput.setAttribute("type", "checkbox");
checkboxInput.setAttribute('name', 'chk');
checkboxInput.setAttribute('value', item.id);
checkboxInput.setAttribute("id", number);
checkboxDiv.appendChild(checkboxInput);
var checkboxLabel = document.createElement('label');
checkboxLabel.setAttribute("class", "custom-control-label");
checkboxLabel.setAttribute("for", number);
checkboxDiv.appendChild(checkboxLabel);
checkbox.appendChild(checkboxDiv);
row.appendChild(checkbox)
//用户名称
var nameCell = document.createElement('td');
nameCell.innerHTML = item.name;
row.appendChild(nameCell);
//账号
var usernameCell = document.createElement('td');
usernameCell.innerHTML = item.username;
row.appendChild(usernameCell);
//性别
var sexTypesCell = document.createElement('td');
sexTypesCell.innerHTML = item.sexValue;
row.appendChild(sexTypesCell);
//头像
var imgPhotoCell = document.createElement('td');
var imgPhotoImg = document.createElement('img');
var imgPhotoImgValue = item.imgPhoto;
if(imgPhotoImgValue !=null && imgPhotoImgValue !='' && imgPhotoImgValue !='null'){
imgPhotoImg.setAttribute('src', imgPhotoImgValue);
imgPhotoImg.setAttribute('height', 100);
imgPhotoImg.setAttribute('width', 100);
imgPhotoCell.appendChild(imgPhotoImg);
}else{
imgPhotoCell.innerHTML = "暂无图片";
}
row.appendChild(imgPhotoCell);
//联系电话
var phoneCell = document.createElement('td');
phoneCell.innerHTML = item.phone;
row.appendChild(phoneCell);
//身份
var roleCell = document.createElement('td');
roleCell.innerHTML = item.role;
row.appendChild(roleCell);
//每行按钮
var btnGroup = document.createElement('td');
//详情按钮
var detailBtn = document.createElement('button');
var detailAttr = "detail(" + item.id + ')';
detailBtn.setAttribute("type", "button");
detailBtn.setAttribute("class", "btn btn-info btn-sm 查看");
detailBtn.setAttribute("onclick", detailAttr);
detailBtn.innerHTML = "查看"
btnGroup.appendChild(detailBtn)
//修改按钮
var editBtn = document.createElement('button');
var editAttr = 'edit(' + item.id + ')';
editBtn.setAttribute("type", "button");
editBtn.setAttribute("class", "btn btn-warning btn-sm 修改");
editBtn.setAttribute("onclick", editAttr);
editBtn.innerHTML = "修改"
btnGroup.appendChild(editBtn)
//删除按钮
var deleteBtn = document.createElement('button');
var deleteAttr = 'remove(' + item.id + ')';
deleteBtn.setAttribute("type", "button");
deleteBtn.setAttribute("class", "btn btn-danger btn-sm 删除");
deleteBtn.setAttribute("onclick", deleteAttr);
deleteBtn.innerHTML = "删除"
btnGroup.appendChild(deleteBtn)
row.appendChild(btnGroup)
return row;
}
// 翻页
function pageNumChange(val) {
if (val == 'pre') {
pageIndex--;
} else if (val == 'next') {
pageIndex++;
} else {
pageIndex = val;
}
getDataList();
}
// 下载
function download(url) {
window.open(url);
}
// 渲染翻页组件
function pagination() {
var beginIndex = pageIndex;
var endIndex = pageIndex;
var point = 4;
//计算页码
for (var i = 0; i < 3; i++) {
if (endIndex == totalPage) {
break;
}
endIndex++;
point--;
}
for (var i = 0; i < 3; i++) {
if (beginIndex == 1) {
break;
}
beginIndex--;
point--;
}
if (point > 0) {
while (point > 0) {
if (endIndex == totalPage) {
break;
}
endIndex++;
point--;
}
while (point > 0) {
if (beginIndex == 1) {
break;
}
beginIndex--;
point--
}
}
// 是否显示 前一页 按钮
if (pageIndex > 1) {
$('#tableId_previous').show();
} else {
$('#tableId_previous').hide();
}
// 渲染页码按钮
for (var i = beginIndex; i <= endIndex; i++) {
var pageNum = document.createElement('li');
pageNum.setAttribute('onclick', "pageNumChange(" + i + ")");
if (pageIndex == i) {
pageNum.setAttribute('class', 'paginate_button page-item active useOnce');
} else {
pageNum.setAttribute('class', 'paginate_button page-item useOnce');
}
var pageHref = document.createElement('a');
pageHref.setAttribute('class', 'page-link');
pageHref.setAttribute('href', '#');
pageHref.setAttribute('aria-controls', 'tableId');
pageHref.setAttribute('data-dt-idx', i);
pageHref.setAttribute('tabindex', 0);
pageHref.innerHTML = i;
pageNum.appendChild(pageHref);
$('#tableId_next').before(pageNum);
}
// 是否显示 下一页 按钮
if (pageIndex < totalPage) {
$('#tableId_next').show();
$('#tableId_next a').attr('data-dt-idx', endIndex + 1);
} else {
$('#tableId_next').hide();
}
var pageNumInfo = "当前第 " + pageIndex + " 页,共 " + totalPage + " 页";
$('#tableId_info').html(pageNumInfo);
}
// 跳转到指定页
function toThatPage() {
//var index = document.getElementById('pageIndexInput').value;
if (index < 0 || index > totalPage) {
alert('请输入正确的页码');
} else {
pageNumChange(index);
}
}
// 全选/全不选
function chooseAll() {
checkAll = !checkAll;
var boxs = document.getElementsByName("chk");
for (var i = 0; i < boxs.length; i++) {
boxs[i].checked = checkAll;
}
}
// 批量删除
function deleteMore() {
ids = []
var boxs = document.getElementsByName("chk");
for (var i = 0; i < boxs.length; i++) {
if (boxs[i].checked) {
ids.push(boxs[i].value)
}
}
if (ids.length == 0) {
alert('请勾选要删除的记录');
} else {
remove(ids);
}
}
// 删除
function remove(id) {
var mymessage = confirm("真的要删除吗?");
if (mymessage == true) {
var paramArray = [];
if (id == ids) {
paramArray = id;
} else {
paramArray.push(id);
}
httpJson("daiquren/delete", "POST", paramArray, (res) => {
if(res.code == 0
)
{
getDataList();
alert('删除成功');
}
})
;
}
else {
alert("已取消操作");
}
}
// 用户登出
<%@ include file="../../static/logout.jsp"%>
//修改
function edit(id) {
window.sessionStorage.setItem('updateId', id)
window.location.href = "add-or-update.jsp"
}
//清除会重复渲染的节点
function clear() {
var elements = document.getElementsByClassName('useOnce');
for (var i = elements.length - 1; i >= 0; i--) {
elements[i].parentNode.removeChild(elements[i]);
}
}
//添加
function add() {
window.sessionStorage.setItem("adddaiquren", "adddaiquren");
window.location.href = "add-or-update.jsp"
}
//报表
function graph() {
window.location.href = "graph.jsp"
}
// 查看详情
function detail(id) {
window.sessionStorage.setItem("updateId", id);
window.location.href = "info.jsp";
}
//填充级联表搜索下拉框
//填充本表搜索下拉框
function sexTypesSelectSearch() {
var sexTypesSelectSearch = document.getElementById('sexTypesSelectSearch');
if(sexTypesSelectSearch != null) {
sexTypesSelectSearch.add(new Option('-请选择-',''));
if (sexTypesOptions != null && sexTypesOptions.length > 0){
for (var i = 0; i < sexTypesOptions.length; i++) {
sexTypesSelectSearch.add(new Option(sexTypesOptions[i].indexName,sexTypesOptions[i].codeIndex));
}
}
}
}
//查询级联表搜索条件所有列表
//查询当前表搜索条件所有列表
function sexTypesSelect() {
//填充下拉框选项
http("dictionary/page?page=1&limit=100&sort=&order=&dicCode=sex_types", "GET", {}, (res) => {
if(res.code == 0){
sexTypesOptions = res.data.list;
}
});
}
$(document).ready(function () {
//激活翻页按钮
$('#tableId_previous').attr('class', 'paginate_button page-item previous')
$('#tableId_next').attr('class', 'paginate_button page-item next')
//隐藏原生搜索框
$('#tableId_filter').hide()
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
setMenu();
init();
//查询级联表的搜索下拉框
//查询当前表的搜索下拉框
sexTypesSelect();
getDataList();
//级联表的下拉框赋值
//当前表的下拉框赋值
sexTypesSelectSearch();
<%@ include file="../../static/myInfo.js"%>
});
</script>
</body>
</html>

@ -0,0 +1,449 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<link href="${pageContext.request.contextPath}/resources/css/bootstrap-select.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
.error {
color: red;
}
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑字典表</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">字典表管理</li>
<li class="breadcrumb-item active">编辑字典表</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">字典表信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<!-- 级联表的字段 -->
<!-- 当前表的字段 -->
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>字段</label>
<input id="dicCode" name="dicCode" class="form-control"
placeholder="字段">
</div>
<div class="form-group col-md-6">
<label>字段名</label>
<input id="dicName" name="dicName" class="form-control"
placeholder="字段名">
</div>
<div class="form-group col-md-6">
<label>编码</label>
<input id="codeIndex" name="codeIndex" class="form-control"
onchange="codeIndexChickValue(this)" placeholder="编码">
</div>
<div class="form-group col-md-6">
<label>编码名字</label>
<input id="indexName" name="indexName" class="form-control"
placeholder="编码名字">
</div>
<input id="superId" name="superId" type="hidden">
<div class="form-group col-md-12 mb-3">
<button id="submitBtn" type="button" class="btn btn-primary btn-lg">提交</button>
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">返回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.fileupload.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/card.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js">
</script><script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/bootstrap-select.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "dictionary";
var pageType = "add-or-update";
var updateId = "";
var crossTableId = -1;
var crossTableName = '';
var ruleForm = {};
var crossRuleForm = {};
// 下拉框数组
<!-- 当前表的下拉框数组 -->
<!-- 级联表的下拉框数组 -->
var ruleForm = {};
// 文件上传
function upload() {
<!-- 当前表的文件上传 -->
}
// 表单提交
function submit() {
if (validform() == true && compare() == true) {
let data = {};
getContent();
if($("#superId") !=null){
var superId = $("#superId").val();
if(superId == null || superId =='' || superId == 'null'){
alert("父字段id不能为空");
return;
}
}
let value = $('#addOrUpdateForm').serializeArray();
$.each(value, function (index, item) {
data[item.name] = item.value;
});
let json = JSON.stringify(data);
var urlParam;
var successMes = '';
if (updateId != null && updateId != "null" && updateId != '') {
urlParam = 'update';
successMes = '修改成功';
} else {
urlParam = 'save';
successMes = '添加成功';
}
httpJson("dictionary/" + urlParam, "POST", data, (res) => {
if(res.code == 0)
{
window.sessionStorage.removeItem('adddictionary');
window.sessionStorage.removeItem('updateId');
let flag = true;
if (flag) {
alert(successMes);
}
if (window.sessionStorage.getItem('onlyme') != null && window.sessionStorage.getItem('onlyme') == "true") {
window.sessionStorage.removeItem('onlyme');
window.sessionStorage.setItem("reload","reload");
window.parent.location.href = "${pageContext.request.contextPath}/index.jsp";
} else {
window.location.href = "list.jsp";
}
}
});
} else {
alert("表单未填完整或有错误");
}
}
// 查询列表
<!-- 查询当前表的所有列表 -->
<!-- 查询级联表的所有列表 -->
// 初始化下拉框
<!-- 初始化当前表的下拉框 -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
<!-- 初始化级联表的下拉框(要根据内容修改) -->
// 下拉框选项回显
function setSelectOption() {
<!-- 当前表的下拉框回显 -->
<!-- 级联表的下拉框回显 -->
}
// 填充富文本框
function setContent() {
<!-- 当前表的填充富文本框 -->
}
// 获取富文本框内容
function getContent() {
<!-- 获取当前表的富文本框内容 -->
}
//数字检查
<!-- 当前表的数字检查 -->
function codeIndexChickValue(e){
var this_val = e.value || 0;
/*if(this_val == 0){
e.value = "";
alert("0不允许输入");
return false;
}*/
var reg=/^[0-9]*$/;
if(!reg.test(this_val)){
e.value = "";
alert("输入不合法");
return false;
}
}
function exit() {
window.sessionStorage.removeItem("updateId");
window.sessionStorage.removeItem('adddictionary');
window.location.href = "list.jsp";
}
// 表单校验
function validform() {
return $("#addOrUpdateForm").validate({
rules: {
dicCode: "required",
dicName: "required",
codeIndex: "required",
indexName: "required",
superId: "required",
},
messages: {
dicCode: "字段不能为空",
dicName: "字段名不能为空",
codeIndex: "编码不能为空",
indexName: "编码名字不能为空",
superId: "父字段id不能为空",
}
}).form();
}
// 获取当前详情
function getDetails() {
var adddictionary = window.sessionStorage.getItem("adddictionary");
if (adddictionary != null && adddictionary != "" && adddictionary != "null") {
window.sessionStorage.removeItem('adddictionary');
//注册表单验证
$(validform());
$('#submitBtn').text('新增');
} else {
$('#submitBtn').text('修改');
var userId = window.sessionStorage.getItem('userId');
updateId = userId;//先赋值登录用户id
var uId = window.sessionStorage.getItem('updateId');//获取修改传过来的id
if (uId != null && uId != "" && uId != "null") {
//如果修改id不为空就赋值修改id
updateId = uId;
}
window.sessionStorage.removeItem('updateId');
http("dictionary/info/" + updateId, "GET", {}, (res) => {
if(res.code == 0)
{
ruleForm = res.data
// 是/否下拉框回显
setSelectOption();
// 设置图片src
showImg();
// 数据填充
dataBind();
// 富文本框回显
setContent();
//注册表单验证
$(validform());
}
});
}
}
// 清除可能会重复渲染的selection
function clear(className) {
var elements = document.getElementsByClassName(className);
for (var i = elements.length - 1; i >= 0; i--) {
elements[i].parentNode.removeChild(elements[i]);
}
}
function dateTimePick() {
}
function dataBind() {
<!-- 级联表的数据回显 -->
<!-- 当前表的数据回显 -->
$("#updateId").val(ruleForm.id);
$("#dicCode").val(ruleForm.dicCode);
$("#dicName").val(ruleForm.dicName);
$("#codeIndex").val(ruleForm.codeIndex);
$("#indexName").val(ruleForm.indexName);
$("#superId").val(ruleForm.superId);
}
<!-- 级联表的数据回显 -->
//图片显示
function showImg() {
<!-- 当前表的图片 -->
<!-- 级联表的图片 -->
}
<!-- 级联表的图片 -->
$(document).ready(function () {
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
//设置导航栏菜单
setMenu();
$('#exitBtn').on('click', function (e) {
e.preventDefault();
exit();
});
//初始化时间插件
dateTimePick();
//查询所有下拉框
<!-- 当前表的下拉框 -->
<!-- 查询级联表的下拉框(用id做option,用名字及其他参数做名字级联修改) -->
// 初始化下拉框
<!-- 初始化当前表的下拉框 -->
<!-- 初始化级联表的下拉框 -->
$(".selectpicker" ).selectpicker('refresh');
getDetails();
//初始化上传按钮
upload();
<%@ include file="../../static/myInfo.js"%>
$('#submitBtn').on('click', function (e) {
e.preventDefault();
//console.log("点击了...提交按钮");
submit();
});
readonly();
});
function readonly() {
if (window.sessionStorage.getItem('role') != '管理员') {
$('#jifen').attr('readonly', 'readonly');
//$('#money').attr('readonly', 'readonly');
}
}
//比较大小
function compare() {
var largerVal = null;
var smallerVal = null;
if (largerVal != null && smallerVal != null) {
if (largerVal <= smallerVal) {
alert(smallerName + '不能大于等于' + largerName);
return false;
}
}
return true;
}
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,233 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto" id="navUl">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑字典表</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">字典表管理</li>
<li class="breadcrumb-item active">字典表登记</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">字典表信息</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<!-- 级联表所有字段 -->
<!-- 本表所有字段 -->
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-6">
<label>字段</label>
<input id="dicCode" name="dicCode" class="form-control"
v-model="ruleForm.dicCode" readonly>
</div>
<div class="form-group col-md-6">
<label>字段名</label>
<input id="dicName" name="dicName" class="form-control"
v-model="ruleForm.dicName" readonly>
</div>
<div class="form-group col-md-6">
<label>编码</label>
<input id="codeIndex" name="codeIndex" class="form-control"
v-model="ruleForm.codeIndex" readonly>
</div>
<div class="form-group col-md-6">
<label>编码名字</label>
<input id="indexName" name="indexName" class="form-control"
v-model="ruleForm.indexName" readonly>
</div>
<input id="superId" name="superId" v-model="ruleForm.superId" readonly type="hidden">
<div class="form-group col-md-12 mb-3">
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">返回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "dictionary";
var pageType = "add-or-update";
var updateId = "";
var ruleForm = {};
var vm = new Vue({
el: '#addOrUpdateForm',
data: {
ruleForm: {},
},
beforeCreate: function () {
var id = window.sessionStorage.getItem("updateId");
if (id != null && id != "" && id != "null") {
$.ajax({
type: "GET",
url: baseUrl + "dictionary/info/" + id,
beforeSend: function (xhr) {
xhr.setRequestHeader("token", window.sessionStorage.getItem('token'));
},
success: function (res) {
if (res.code == 0) {
vm.ruleForm = res.data;
ruleForm = res.data;
showImg();
setContent();
} else if (res.code == 401) {
<%@ include file="../../static/toLogin.jsp"%>
} else {
alert(res.msg)
}
},
});
}
},
methods: {}
});
// 填充富文本框
function setContent() {
}
//图片显示
function showImg() {
}
function exit() {
window.sessionStorage.removeItem("updateId");
window.sessionStorage.removeItem('adddictionary');
window.location.href = "list.jsp";
}
// 下载
function download(fileName) {
var url = baseUrl+'file/download?fileName='+fileName;
window.open(url);
}
//设置下载
function setDownloadBtn() {
}
$(document).ready(function () {
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
setMenu();
$('#exitBtn').on('click', function (e) {
e.preventDefault();
exit();
});
<%@ include file="../../static/myInfo.js"%>
});
// 用户登出
<%@ include file="../../static/logout.jsp"%>
</script>
</body>
</html>

@ -0,0 +1,527 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<!-- font-awesome -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/font-awesome.min.css">
</head>
<style>
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">字典表管理</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">字典表管理</li>
<li class="breadcrumb-item active">字典表列表</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">字典表列表</h3>
<div class="table-responsive mb-3">
<div class="col-sm-12">
<button onclick="search()" type="button" class="btn btn-primary">查询</button>
<br/>
<button onclick="add()" type="button" class="btn btn-success 新增">添加</button>
<button onclick="graph()" type="button" class="btn btn-success 报表">报表</button>
<button onclick="deleteMore()" type="button" class="btn btn-danger 删除">批量删除</button>
</div>
<table id="tableId" class="table table-bordered table-striped">
<thead>
<tr>
<th class="no-sort" style="min-width: 35px;">
<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="select-all"
onclick="chooseAll()">
<label class="custom-control-label" for="select-all"></label>
</div>
</th>
<th >字段</th>
<th >字段名</th>
<th >编码</th>
<th >编码名字</th>
<th>操作</th>
</tr>
</thead>
<tbody id="thisTbody">
</tbody>
</table>
<div class="col-md-6 col-sm-3">
<div class="dataTables_length" id="tableId_length">
<select name="tableId_length" aria-controls="tableId" id="selectPageSize"
onchange="changePageSize()">
<option value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
条 每页
</div>
</div>
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-end">
<li class="page-item" id="tableId_previous" onclick="pageNumChange('pre')">
<a class="page-link" href="#" tabindex="-1">上一页</a>
</li>
<li class="page-item" id="tableId_next" onclick="pageNumChange('next')">
<a class="page-link" href="#">下一页</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script language="javascript" type="text/javascript"
src="${pageContext.request.contextPath}/resources/My97DatePicker/WdatePicker.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
<%@ include file="../../static/getRoleButtons.js"%>
<%@ include file="../../static/crossBtnControl.js"%>
var tableName = "dictionary";
var pageType = "list";
var searchForm = {key: ""};
var pageIndex = 1;
var pageSize = 10;
var totalPage = 0;
var dataList = [];
var sortColumn = '';
var sortOrder = '';
var ids = [];
var checkAll = false;
function init() {
// 满足条件渲染提醒接口
}
// 改变每页记录条数
function changePageSize() {
var selection = document.getElementById('selectPageSize');
var index = selection.selectedIndex;
pageSize = selection.options[index].value;
getDataList();
}
// 查询
function search() {
searchForm = {key: ""};
<!-- 级联表的级联字典表 -->
<!-- 本表的查询条件 -->
getDataList();
}
// 获取数据列表
function getDataList() {
http("dictionary/page", "GET", {
page: pageIndex,
limit: pageSize,
sort: sortColumn,
order: sortOrder,
//本表的
//级联表的
}, (res) => {
if(res.code == 0)
{
clear();
$("#thisTbody").html("");
dataList = res.data.list;
totalPage = res.data.totalPage;
//var tbody = document.getElementById('tbMain');
for (var i = 0; i < dataList.length; i++) { //遍历一下表格数据  
var trow = setDataRow(dataList[i], i); //定义一个方法,返回tr数据 
$('#thisTbody').append(trow);
}
pagination(); //渲染翻页组件
getRoleButtons();// 权限按钮控制
}
})
;
}
// 渲染表格数据
function setDataRow(item, number) {
//创建行 
var row = document.createElement('tr');
row.setAttribute('class', 'useOnce');
//创建勾选框
var checkbox = document.createElement('td');
var checkboxDiv = document.createElement('div');
checkboxDiv.setAttribute("class", "custom-control custom-checkbox");
var checkboxInput = document.createElement('input');
checkboxInput.setAttribute("class", "custom-control-input");
checkboxInput.setAttribute("type", "checkbox");
checkboxInput.setAttribute('name', 'chk');
checkboxInput.setAttribute('value', item.id);
checkboxInput.setAttribute("id", number);
checkboxDiv.appendChild(checkboxInput);
var checkboxLabel = document.createElement('label');
checkboxLabel.setAttribute("class", "custom-control-label");
checkboxLabel.setAttribute("for", number);
checkboxDiv.appendChild(checkboxLabel);
checkbox.appendChild(checkboxDiv);
row.appendChild(checkbox)
//字段
var dicCodeCell = document.createElement('td');
dicCodeCell.innerHTML = item.dicCode;
row.appendChild(dicCodeCell);
//字段名
var dicNameCell = document.createElement('td');
dicNameCell.innerHTML = item.dicName;
row.appendChild(dicNameCell);
//编码
var codeIndexCell = document.createElement('td');
codeIndexCell.innerHTML = item.codeIndex;
row.appendChild(codeIndexCell);
//编码名字
var indexNameCell = document.createElement('td');
indexNameCell.innerHTML = item.indexName;
row.appendChild(indexNameCell);
//每行按钮
var btnGroup = document.createElement('td');
//详情按钮
var detailBtn = document.createElement('button');
var detailAttr = "detail(" + item.id + ')';
detailBtn.setAttribute("type", "button");
detailBtn.setAttribute("class", "btn btn-info btn-sm 查看");
detailBtn.setAttribute("onclick", detailAttr);
detailBtn.innerHTML = "查看"
btnGroup.appendChild(detailBtn)
//修改按钮
var editBtn = document.createElement('button');
var editAttr = 'edit(' + item.id + ')';
editBtn.setAttribute("type", "button");
editBtn.setAttribute("class", "btn btn-warning btn-sm 修改");
editBtn.setAttribute("onclick", editAttr);
editBtn.innerHTML = "修改"
btnGroup.appendChild(editBtn)
//删除按钮
var deleteBtn = document.createElement('button');
var deleteAttr = 'remove(' + item.id + ')';
deleteBtn.setAttribute("type", "button");
deleteBtn.setAttribute("class", "btn btn-danger btn-sm 删除");
deleteBtn.setAttribute("onclick", deleteAttr);
deleteBtn.innerHTML = "删除"
btnGroup.appendChild(deleteBtn)
row.appendChild(btnGroup)
return row;
}
// 翻页
function pageNumChange(val) {
if (val == 'pre') {
pageIndex--;
} else if (val == 'next') {
pageIndex++;
} else {
pageIndex = val;
}
getDataList();
}
// 下载
function download(url) {
window.open(url);
}
// 渲染翻页组件
function pagination() {
var beginIndex = pageIndex;
var endIndex = pageIndex;
var point = 4;
//计算页码
for (var i = 0; i < 3; i++) {
if (endIndex == totalPage) {
break;
}
endIndex++;
point--;
}
for (var i = 0; i < 3; i++) {
if (beginIndex == 1) {
break;
}
beginIndex--;
point--;
}
if (point > 0) {
while (point > 0) {
if (endIndex == totalPage) {
break;
}
endIndex++;
point--;
}
while (point > 0) {
if (beginIndex == 1) {
break;
}
beginIndex--;
point--
}
}
// 是否显示 前一页 按钮
if (pageIndex > 1) {
$('#tableId_previous').show();
} else {
$('#tableId_previous').hide();
}
// 渲染页码按钮
for (var i = beginIndex; i <= endIndex; i++) {
var pageNum = document.createElement('li');
pageNum.setAttribute('onclick', "pageNumChange(" + i + ")");
if (pageIndex == i) {
pageNum.setAttribute('class', 'paginate_button page-item active useOnce');
} else {
pageNum.setAttribute('class', 'paginate_button page-item useOnce');
}
var pageHref = document.createElement('a');
pageHref.setAttribute('class', 'page-link');
pageHref.setAttribute('href', '#');
pageHref.setAttribute('aria-controls', 'tableId');
pageHref.setAttribute('data-dt-idx', i);
pageHref.setAttribute('tabindex', 0);
pageHref.innerHTML = i;
pageNum.appendChild(pageHref);
$('#tableId_next').before(pageNum);
}
// 是否显示 下一页 按钮
if (pageIndex < totalPage) {
$('#tableId_next').show();
$('#tableId_next a').attr('data-dt-idx', endIndex + 1);
} else {
$('#tableId_next').hide();
}
var pageNumInfo = "当前第 " + pageIndex + " 页,共 " + totalPage + " 页";
$('#tableId_info').html(pageNumInfo);
}
// 跳转到指定页
function toThatPage() {
//var index = document.getElementById('pageIndexInput').value;
if (index < 0 || index > totalPage) {
alert('请输入正确的页码');
} else {
pageNumChange(index);
}
}
// 全选/全不选
function chooseAll() {
checkAll = !checkAll;
var boxs = document.getElementsByName("chk");
for (var i = 0; i < boxs.length; i++) {
boxs[i].checked = checkAll;
}
}
// 批量删除
function deleteMore() {
ids = []
var boxs = document.getElementsByName("chk");
for (var i = 0; i < boxs.length; i++) {
if (boxs[i].checked) {
ids.push(boxs[i].value)
}
}
if (ids.length == 0) {
alert('请勾选要删除的记录');
} else {
remove(ids);
}
}
// 删除
function remove(id) {
var mymessage = confirm("真的要删除吗?");
if (mymessage == true) {
var paramArray = [];
if (id == ids) {
paramArray = id;
} else {
paramArray.push(id);
}
httpJson("dictionary/delete", "POST", paramArray, (res) => {
if(res.code == 0
)
{
getDataList();
alert('删除成功');
}
})
;
}
else {
alert("已取消操作");
}
}
// 用户登出
<%@ include file="../../static/logout.jsp"%>
//修改
function edit(id) {
window.sessionStorage.setItem('updateId', id)
window.location.href = "add-or-update.jsp"
}
//清除会重复渲染的节点
function clear() {
var elements = document.getElementsByClassName('useOnce');
for (var i = elements.length - 1; i >= 0; i--) {
elements[i].parentNode.removeChild(elements[i]);
}
}
//添加
function add() {
window.sessionStorage.setItem("adddictionary", "adddictionary");
window.location.href = "add-or-update.jsp"
}
//报表
function graph() {
window.location.href = "graph.jsp"
}
// 查看详情
function detail(id) {
window.sessionStorage.setItem("updateId", id);
window.location.href = "info.jsp";
}
//填充级联表搜索下拉框
//填充本表搜索下拉框
//查询级联表搜索条件所有列表
//查询当前表搜索条件所有列表
$(document).ready(function () {
//激活翻页按钮
$('#tableId_previous').attr('class', 'paginate_button page-item previous')
$('#tableId_next').attr('class', 'paginate_button page-item next')
//隐藏原生搜索框
$('#tableId_filter').hide()
//设置右上角用户名
$('.dropdown-menu h5').html(window.sessionStorage.getItem('username'))
//设置项目名
$('.sidebar-header h3 a').html(projectName)
setMenu();
init();
//查询级联表的搜索下拉框
//查询当前表的搜索下拉框
getDataList();
//级联表的下拉框赋值
//当前表的下拉框赋值
<%@ include file="../../static/myInfo.js"%>
});
</script>
</body>
</html>

@ -0,0 +1,263 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<%@ include file="../../static/head.jsp" %>
<link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
rel="stylesheet">
<script type="text/javascript" charset="utf-8">
window.UEDITOR_HOME_URL = "${pageContext.request.contextPath}/resources/ueditor/"; //UEDITOR_HOME_URL、config、all这三个顺序不能改变
</script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<style>
.error {
color: red;
}
</style>
<body>
<!-- Pre Loader -->
<div class="loading">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<!--/Pre Loader -->
<div class="wrapper">
<!-- Page Content -->
<div id="content">
<!-- Top Navigation -->
<%@ include file="../../static/topNav.jsp" %>
<!-- Menu -->
<div class="container menu-nav">
<nav class="navbar navbar-expand-lg lochana-bg text-white">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="ti-menu text-white"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul id="navUl" class="navbar-nav mr-auto">
</ul>
</div>
</nav>
</div>
<!-- /Menu -->
<!-- Breadcrumb -->
<!-- Page Title -->
<div class="container mt-0">
<div class="row breadcrumb-bar">
<div class="col-md-6">
<h3 class="block-title">编辑</h3>
</div>
<div class="col-md-6">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="${pageContext.request.contextPath}/index.jsp">
<span class="ti-home"></span>
</a>
</li>
<li class="breadcrumb-item">管理</li>
<li class="breadcrumb-item active">编辑</li>
</ol>
</div>
</div>
</div>
<!-- /Page Title -->
<!-- /Breadcrumb -->
<!-- Main Content -->
<div class="container" style="width: 500px">
<div class="row" center>
<!-- Widget Item -->
<div class="col-md-12">
<div class="widget-area-2 lochana-box-shadow">
<h3 class="widget-title">忘记密码</h3>
<form id="addOrUpdateForm">
<div class="form-row">
<input id="updateId" name="id" type="hidden">
<div class="form-group col-md-12">
<label>用户名称</label>
<input id="name" name="name" class="form-control"
placeholder="用户名称">
</div>
<div class="form-group col-md-12">
<label>账号</label>
<input id="account" name="account" class="form-control"
placeholder="账号">
</div>
<div class="form-group col-md-12 mb-3">
<button id="exitBtn" type="button" class="btn btn-primary btn-lg">取消</button>
<button id="submitBtn" type="button" class="btn btn-primary btn-lg">找回</button>
</div>
</div>
</form>
</div>
</div>
<!-- /Widget Item -->
</div>
</div>
<!-- /Main Content -->
</div>
<!-- /Page Content -->
</div>
<!-- Back to Top -->
<a id="back-to-top" href="#" class="back-to-top">
<span class="ti-angle-up"></span>
</a>
<!-- /Back to Top -->
<%@ include file="../../static/foot.jsp" %>
<script src="${pageContext.request.contextPath}/resources/js/vue.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.ui.widget.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.fileupload.js"></script>
<script src="${pageContext.request.contextPath}/resources/js/jquery.form.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/validate/card.js"></script>
<script type="text/javascript" charset="utf-8"
src="${pageContext.request.contextPath}/resources/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
<%@ include file="../../utils/menu.jsp"%>
<%@ include file="../../static/setMenu.js"%>
<%@ include file="../../utils/baseUrl.jsp"%>
var tableName = "yonghu";
var pageType = "add-or-update";
var updateId = "";
var crossTableId = -1;
var crossTableName = '';
var ruleForm = {};
var crossRuleForm = {};
var sbTypesOptions = [];
var ruleForm = {};
var vm = new Vue({
el: '#addOrUpdateForm',
data: {
ruleForm: {},
},
beforeCreate: function () {
var id = window.sessionStorage.getItem("updateId");
if (id != null && id != "" && id != "null") {
$.ajax({
type: "GET",
url: baseUrl + "yonghu/info/" + id,
beforeSend: function (xhr) {
xhr.setRequestHeader("token", window.sessionStorage.getItem('token'));
},
success: function (res) {
if (res.code == 0) {
vm.ruleForm = res.data;
} else if (res.code == 401) {
<%@ include file="../../static/toLogin.jsp"%>
} else {
alert(res.msg)
}
},
});
}
},
methods: {}
});
// 表单提交
function submit() {
if (validform() == true) {
let data = {};
let value = $('#addOrUpdateForm').serializeArray();
$.each(value, function (index, item) {
data[item.name] = item.value;
});
let json = JSON.stringify(data);
httpJson("yonghu/resetPass", "POST", data, (res) => {
if(res.code == 0){
alert("您的密码已经修改为123456");
window.parent.location.href = "../../login.jsp";
}
})
;
} else {
alert("表单未填完整或有错误");
}
}
//搜素输入检查
function idChickValue(e){
var this_val = e.value || 0;
var reg=/^[0-9]*$/;
if(!reg.test(this_val)){
e.value = "";
alert("输入不合法");
return false;
}
}
function balanceChickValue(e){
var this_val = e.value || 0;
var reg=/^[0-9]+.?[0-9]{1,2}$/;
if(!reg.test(this_val)){
e.value = "";
alert("输入不合法");
return false;
}
}
function creditChickValue(e){
var this_val = e.value || 0;
var reg=/^[0-9]*$/;
if(!reg.test(this_val)){
e.value = "";
alert("输入不合法");
return false;
}
}
function exit() {
window.location.href = "../../login.jsp";
}
// 表单校验
function validform() {
return $("#addOrUpdateForm").validate({
rules: {
name: "required",
account: "required",
password: "required",
password2: "required",
},
messages: {
name: "用户名不能为空",
account: "账号不能为空",
password: "密码不能为空",
password2: "确认密码不能为空",
}
}).form();
}
$(document).ready(function () {
<%@ include file="../../static/myInfo.js"%>
$('#submitBtn').on('click', function (e) {
e.preventDefault();
//console.log("点击了...提交按钮");
submit();
});
});
</script>
</body>
</html>

@ -0,0 +1,26 @@
function crossBtnControl(btnName){
var role = window.sessionStorage.getItem('role');
for(var i=0;i<menus.length;i++){
// 找到当前登录角色的菜单
if(menus[i].roleName == role){
var menu = menus[i].backMenu;
for(var j=0;j<menu.length;j++){
// 一级菜单
var menuChild = menu[j].child;
var secondMenuName = "";
for(var k=0;k<menuChild.length;k++){
//定位到当前list页
if(menuChild[k].tableName == tableName && k == 0){
var allButtons = menuChild[k].buttons;
if(allButtons.includes(btnName)){
return true;
}else{
return false;
}
}
}
}
}
}
}

@ -0,0 +1,13 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!-- Jquery Library-->
<script src="${pageContext.request.contextPath}/resources/js/jquery-3.2.1.min.js"></script>
<!-- Popper Library-->
<script src="${pageContext.request.contextPath}/resources/js/popper.min.js"></script>
<!-- Bootstrap Library-->
<script src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js"></script>
<!-- Datatable -->
<script src="${pageContext.request.contextPath}/resources/datatable/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/datatable/dataTables.bootstrap4.min.js"></script>
<!-- Custom Script-->
<script src="${pageContext.request.contextPath}/resources/js/custom.js"></script>

@ -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<buttons.length;l++){
if(allButtons.includes(buttons[l])){
var index = allButtons.indexOf(buttons[l]);
allButtons.splice(index,1);
//console.log("l="+l+","+allButtons);
}
}
}
//console.log("you can't see: "+allButtons);
for (var m=0; m<allButtons.length; m++) {
var elements = document.getElementsByClassName(allButtons[m]);
for (var n = elements.length - 1; n >= 0; n--) {
elements[n].parentNode.removeChild(elements[n]);
}
}
}
}
}
}
}
}

@ -0,0 +1,25 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>校园快递一站式服务系统</title>
<!-- Fav Icon Link -->
<link rel="shortcut icon" type="image/png" href="${pageContext.request.contextPath}/resources/images/fav.png">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">
<!-- themify icons CSS -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/themify-icons.css">
<!-- Animations CSS -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/animate.css">
<!-- Main CSS -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/styles.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/green.css" id="style_theme">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/responsive.css">
<!-- morris charts -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/charts/css/morris.css">
<!-- jvectormap -->
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/jquery-jvectormap.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/datatable/dataTables.bootstrap4.min.css">
<script src="${pageContext.request.contextPath}/resources/js/modernizr.min.js"></script>

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

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

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

@ -0,0 +1,51 @@
function setMenu(){
if(window.sessionStorage.getItem('role') != '管理员'){
var accountTableName = window.sessionStorage.getItem('accountTableName');
$('#side-menu').append('<li><a href="javascript:void(0);" data-toggle="collapse" data-target="#app_dr"><div class="pull-left"><i class="zmdi zmdi-apps mr-20"></i><span class="right-nav-text">个人中心</span></div><div class="pull-right"><i class="zmdi zmdi-caret-down"></i></div><div class="clearfix"></div></a><ul id="app_dr" class="collapse collapse-level-1"><li><a href="' + baseUrl + 'jsp/modules/center/updatePassword.jsp" onclick="navClick(this);return false;">修改密码</a></li><li><a href="${pageContext.request.contextPath}/jsp/modules/' + accountTableName + '/add-or-update.jsp" onclick="navClick(this);return false;">个人信息</a></li></ul></li>');
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('<li><a href="javascript:void(0);" data-toggle="collapse" data-target="#app_dr"><div class="pull-left"><i class="zmdi zmdi-apps mr-20"></i><span class="right-nav-text">个人中心</span></div><div class="pull-right"><i class="zmdi zmdi-caret-down"></i></div><div class="clearfix"></div></a><ul id="app_dr" class="collapse collapse-level-1"><li><a href="' + baseUrl + 'jsp/modules/center/updatePassword.jsp" onclick="navClick(this);return false;">修改密码</a></li><li><a href="' + baseUrl + 'jsp/modules/center/info.jsp" onclick="navClick(this);return false;">个人信息</a></li></ul></li>');
}
var role = window.sessionStorage.getItem('role');
var menusHtml = '';
for(var i=0;i<menus.length;i++){
// 找到当前登录角色的菜单
if(menus[i].roleName == role){
var menuHtml = '';
var menu = menus[i].backMenu;
for(var j=0;j<menu.length;j++){
// 一级菜单
menuHtml += '<li><a href="javascript:void(0);" data-toggle="collapse" data-target="#app_m' + j + '"><div class="pull-left"><i class="zmdi zmdi-apps mr-20"></i><span class="right-nav-text">' + menu[j].menu + '</span></div><div class="pull-right"><i class="zmdi zmdi-caret-down"></i></div><div class="clearfix"></div></a><ul id="app_m' + j + '" class="collapse collapse-level-1">';
var menuSubHtml = '';
var secondMenuName = "";
var menuChild = menu[j].child;
for(var k=0;k<menuChild.length;k++){
// 二级菜单
if(secondMenuName == menuChild[k].tableName && secondMenuName != ""){
menuSubHtml += '<li><a href="${pageContext.request.contextPath}/jsp/modules/' + menuChild[k].tableName + '/graph.jsp" onclick="navClick(this);return false;">' + menuChild[k].menu + '</a></li>';
}else{
menuSubHtml += '<li><a href="${pageContext.request.contextPath}/jsp/modules/' + menuChild[k].tableName + '/list.jsp" onclick="navClick(this);return false;">' + menuChild[k].menu + '</a></li>';
secondMenuName = menuChild[k].tableName;
}
}
menuHtml += menuSubHtml + '</ul></li>';
}
menusHtml += menuHtml;
}
}
$('#side-menu').append(menusHtml);
if(hasMessage != null && hasMessage == '是' && role == '管理员'){
$('#side-menu').append('<li><a href="javascript:void(0);" data-toggle="collapse" data-target="#app_dr1"><div class="pull-left"><i class="zmdi zmdi-apps mr-20"></i><span class="right-nav-text">留言管理</span></div><div class="pull-right"><i class="zmdi zmdi-caret-down"></i></div><div class="clearfix"></div></a><ul id="app_dr1" class="collapse collapse-level-1"><li><a href="' + baseUrl + 'jsp/modules/messages/list.jsp" onclick="navClick(this);return false;">留言列表</a></li></ul></li>');
}
}
window.navClick = function(obj, rootNavName, subNavName) {
$('iframe').attr('src', obj.href);
}

@ -0,0 +1,5 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!-- token过期或未登录时强制跳转到登录页 -->
alert('token过期或未登录!')
window.location.href="${pageContext.request.contextPath}/jsp/login.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)
}
});
}

@ -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 = '';
Loading…
Cancel
Save