Kaynağa Gözat

fix bug:表名稱錯誤

lijie 2 yıl önce
ebeveyn
işleme
318670b97e

+ 1 - 1
adm-business/adm-server/src/main/java/com/persagy/adm/server/algorithm/entity/AdmProject.java

@@ -13,7 +13,7 @@ import lombok.Data;
  * @author : lijie
  * Update By 2022/1/11 20:01
  */
-@TableName(value ="revit_project",autoResultMap = true)
+@TableName(value ="project",autoResultMap = true)
 @Data
 public class AdmProject extends AuditableEntity<AdmProject> {
 

+ 1 - 1
adm-business/adm-server/src/main/java/com/persagy/adm/server/algorithm/entity/AdmProjectUser.java

@@ -8,7 +8,7 @@ import lombok.Data;
  * 项目用户关系表
  * @TableName project_user
  */
-@TableName(value ="revit_project_user")
+@TableName(value ="project_user")
 @Data
 public class AdmProjectUser extends AuditableEntity<AdmProjectUser> {
 

+ 1 - 0
adm-business/adm-server/src/main/resources/db/init/data.sql

@@ -0,0 +1 @@
+SHOW TABLES;

+ 2 - 2
adm-business/adm-server/src/main/resources/db/init/schema.sql

@@ -341,7 +341,7 @@ CREATE TABLE IF NOT EXISTS `adm_upload_log`  (
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 24145 DEFAULT CHARSET=utf8mb4 COMMENT = '客户端上传日志' ROW_FORMAT = Dynamic;
 
-CREATE TABLE IF NOT EXISTS `revit_project`  (
+CREATE TABLE IF NOT EXISTS `project`  (
   `id` varchar(80) NOT NULL COMMENT '项目id',
   `name` varchar(50) NULL DEFAULT NULL COMMENT '项目名称',
   `config_json` json NOT NULL COMMENT '模型解析的配置',
@@ -358,7 +358,7 @@ CREATE TABLE IF NOT EXISTS `revit_project`  (
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT = Dynamic;
 
-CREATE TABLE IF NOT EXISTS `revit_project_user`  (
+CREATE TABLE IF NOT EXISTS `project_user`  (
   `id` varchar(36) NOT NULL COMMENT '表主键',
   `project_id` varchar(36) NOT NULL COMMENT '项目id',
   `user_id` varchar(36) NOT NULL COMMENT '用户id',