Browse Source

update db

deason 1 year ago
parent
commit
167b22d9d2

+ 3 - 3
install/mysql/init/exam_reserve_db.sql

@@ -3,8 +3,8 @@ create table t_system_property
     id          bigint       not null auto_increment,
     create_time bigint       not null comment '创建时间',
     update_time bigint       not null comment '更新时间',
-    `key`       varchar(50)  not null comment '属性键',
-    value       varchar(500) not null comment '属性值',
+    prop_key    varchar(50)  not null comment '属性键',
+    prop_value  varchar(500) not null comment '属性值',
     PRIMARY KEY (id)
 ) comment '系统属性表';
 
@@ -185,7 +185,7 @@ create table t_operate_log
 insert into t_org(id, name, enable, create_time, update_time)
 values (1, '广东开发大学', 1, now(), now());
 
-insert into t_system_property(`key`, value, create_time, update_time)
+insert into t_system_property(prop_key, prop_value, create_time, update_time)
 values ('CATEGORY_LEVEL', '[{"level":1,"title":"城市"},{"level":2,"title":"教学点"}]', now(), now());
 
 insert into t_user (role, name, login_name, password, mobile, category_id, org_id, enable, create_time, update_time)

+ 3 - 6
src/main/java/com/qmth/exam/reserve/entity/SystemPropertyEntity.java

@@ -1,9 +1,7 @@
 package com.qmth.exam.reserve.entity;
 
-import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.qmth.exam.reserve.entity.base.BaseEntity;
-
 import lombok.Getter;
 import lombok.Setter;
 
@@ -17,12 +15,11 @@ public class SystemPropertyEntity extends BaseEntity {
     /**
      * 属性键
      */
-    @TableField("`key`")
-    private String key;
+    private String propKey;
 
     /**
      * 属性值
      */
-    @TableField("`value`")
-    private String value;
+    private String propValue;
+
 }