Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
🐛 Fixing sql bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhongyue248 committed May 13, 2019
1 parent a2bd3bf commit 1566505
Show file tree
Hide file tree
Showing 27 changed files with 51 additions and 50 deletions.
3 changes: 3 additions & 0 deletions lesson-cloud-core/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spring:
# port: 5672
# username: guest
# password: guest
data:
rest:
default-page-size: 10
jpa:
show-sql: true
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:13
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:22
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand All @@ -46,8 +46,7 @@ public class SysUser extends BaseEntity implements Serializable {
* 密码
*/
@Size(max = 255, message = "pwd 不能大于 255 位")
@com.fasterxml.jackson.annotation.JsonProperty
(access = com.fasterxml.jackson.annotation.JsonProperty.Access.WRITE_ONLY)
@com.fasterxml.jackson.annotation.JsonIgnore
private java.lang.String pwd;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author echo
* @version 1.0
* @date 2019-5-8 16:03:14
* @date 2019-5-13 22:20:23
*/
@Data
@Cacheable
Expand Down
45 changes: 22 additions & 23 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
Target Server Version : 50722
File Encoding : 65001
Date: 06/05/2019 21:31:32
Date: 13/05/2019 21:33:58
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;


-- ----------------------------
-- Table structure for course
-- ----------------------------
Expand All @@ -33,8 +32,8 @@ CREATE TABLE `course`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE
Expand Down Expand Up @@ -98,8 +97,8 @@ CREATE TABLE `exam`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE
Expand Down Expand Up @@ -127,8 +126,8 @@ CREATE TABLE `exam_history`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE,
Expand Down Expand Up @@ -162,8 +161,8 @@ CREATE TABLE `exam_rule`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE,
Expand Down Expand Up @@ -301,8 +300,8 @@ CREATE TABLE `paper`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE,
Expand Down Expand Up @@ -335,8 +334,8 @@ CREATE TABLE `paper_detail`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE,
Expand Down Expand Up @@ -527,8 +526,8 @@ CREATE TABLE `student`
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE
Expand All @@ -551,9 +550,9 @@ CREATE TABLE `sys_data`
`brief` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
`type` tinyint(4) NULL DEFAULT 0 COMMENT '0:学校,1:学院,2:系部,3:专业,4:班级,5:性别,6:学历,7:学位,8:教师毕业专业,9:民族,10:研究方向,11:职称',
`sort` smallint(6) NULL DEFAULT 1 COMMENT '同一type数据(如:学校)的排序顺序,值大于等于1',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建用户名称',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_user` bigint(20) NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
Expand Down Expand Up @@ -622,9 +621,9 @@ CREATE TABLE `sys_res`
`method` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '允许使用的方法:GET、POST、PUT、PATCH、DELETE、ALL',
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型:1 功能 2 权限',
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建用户名称',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_user` bigint(20) NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
Expand Down Expand Up @@ -836,12 +835,12 @@ CREATE TABLE `teacher`
`subject_category` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属学科门类',
`id_number` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '身份证号码',
`phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`e-mail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`sort` smallint(6) NULL DEFAULT NULL COMMENT '排序',
`create_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建日期',
`modify_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_user` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`modify_user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '末次更新用户名称',
`modify_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '末次更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`is_enable` binary(1) NOT NULL DEFAULT 1 COMMENT '是否可用,1:可用,0:不可用',
PRIMARY KEY (`id`) USING BTREE
Expand Down

0 comments on commit 1566505

Please sign in to comment.