فهرست منبع

feat(评测改造):
1.修改sql

chenbh 2 سال پیش
والد
کامیت
85e577186c

+ 1 - 4
dcuc-auth-service/src/main/java/com/dragoninfo/dcuc/auth/element/entity/ElementUserRel.java

@@ -1,11 +1,9 @@
 package com.dragoninfo.dcuc.auth.element.entity;
 package com.dragoninfo.dcuc.auth.element.entity;
 
 
-import com.baomidou.mybatisplus.annotation.*;
 import com.dragonsoft.duceap.base.annotations.audit.DeletedBy;
 import com.dragonsoft.duceap.base.annotations.audit.DeletedBy;
 import com.dragonsoft.duceap.base.annotations.audit.DeletedDate;
 import com.dragonsoft.duceap.base.annotations.audit.DeletedDate;
 import com.dragonsoft.duceap.core.persistent.audit.JpaAuditingEntityListener;
 import com.dragonsoft.duceap.core.persistent.audit.JpaAuditingEntityListener;
 import lombok.Data;
 import lombok.Data;
-import org.apache.ibatis.type.JdbcType;
 import org.hibernate.annotations.GenericGenerator;
 import org.hibernate.annotations.GenericGenerator;
 import org.springframework.data.annotation.CreatedBy;
 import org.springframework.data.annotation.CreatedBy;
 import org.springframework.data.annotation.CreatedDate;
 import org.springframework.data.annotation.CreatedDate;
@@ -20,7 +18,7 @@ import java.util.Date;
 @EntityListeners({JpaAuditingEntityListener.class})
 @EntityListeners({JpaAuditingEntityListener.class})
 @Data
 @Data
 @Entity
 @Entity
-@TableName("T_AUTH_ELEMENT_USER_REL")
+@Table(name = "T_AUTH_ELEMENT_USER_REL")
 public class ElementUserRel{
 public class ElementUserRel{
 
 
     /**
     /**
@@ -57,7 +55,6 @@ public class ElementUserRel{
     /**
     /**
      * 是否删除
      * 是否删除
      */
      */
-    @TableLogic
     @Column(name = "DELETED")
     @Column(name = "DELETED")
     private String deleted = "0";
     private String deleted = "0";
 
 

+ 18 - 1
dcuc-auth-service/src/main/resources/config/mysql/V4_3_0031__UpdateEnvment.sql

@@ -39,4 +39,21 @@ UPDATE t_audit_warning_programme
 SET rule_content   = '{"limitIp":""}',
 SET rule_content   = '{"limitIp":""}',
     rule_explain   = '用户鉴权的IP处于被限制的ip段内',
     rule_explain   = '用户鉴权的IP处于被限制的ip段内',
     content_format = '#主体#鉴权时,使用IP是:#ip#,处于被限制的ip段内。'
     content_format = '#主体#鉴权时,使用IP是:#ip#,处于被限制的ip段内。'
-WHERE type = 'YHYCIPJQYJ';
+WHERE type = 'YHYCIPJQYJ';
+
+INSERT INTO `t_md_sys_code_dic`(`code_id`, `datasource_id`, `name`, `entity_name`, `code_field`, `name_field`,
+                                `py_field`, `wb_field`, `order_field`, `segment_rule`, `view_sql`, `load_type`,
+                                `parent_code_field`)
+VALUES ('DM_ACTIVE_STATUS', NULL, '起停用状态', 'DM_ACTIVE_STATUS', 'CODE', 'VALUE', NULL, NULL, NULL, NULL, NULL,
+        '1', NULL);
+
+CREATE TABLE `DM_ACTIVE_STATUS`
+(
+    `CODE`  varchar(10) NOT NULL,
+    `VALUE` varchar(20) NOT NULL,
+    PRIMARY KEY (`CODE`)
+);
+INSERT INTO DM_ACTIVE_STATUS(CODE, VALUE)
+VALUES ('0', '停用');
+INSERT INTO DM_ACTIVE_STATUS(CODE, VALUE)
+VALUES ('1', '启用');