summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortanghao <[email protected]>2024-11-15 11:04:08 +0800
committertanghao <[email protected]>2024-11-15 11:04:08 +0800
commit368fddb2730dfb25a3eb2a575a56634c67de060e (patch)
tree06812356c8cfbc789be95d6db8522823870609c4
parent11a1100c105b72a821c22b0befac987399c06ed4 (diff)
fix:增加起停用标识
-rw-r--r--cn-admin/src/main/java/net/geedge/modules/entity/entity/EntityProfiles.java2
-rw-r--r--cn-admin/src/main/java/net/geedge/modules/entity/entity/EntitySources.java2
-rw-r--r--cn-admin/src/main/resources/db/V24.11.06__add entity profiles sources table.sql6
-rw-r--r--cn-admin/src/main/resources/mapper/entity/EntityProfilesDao.xml1
-rw-r--r--cn-admin/src/main/resources/mapper/entity/EntitySourcesDao.xml1
5 files changed, 10 insertions, 2 deletions
diff --git a/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntityProfiles.java b/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntityProfiles.java
index a062977..4e300da 100644
--- a/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntityProfiles.java
+++ b/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntityProfiles.java
@@ -18,6 +18,8 @@ public class EntityProfiles {
private String relations;
+ private Integer enable;
+
private Date ctime;
private Date utime;
diff --git a/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntitySources.java b/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntitySources.java
index 6c792fa..2cb9660 100644
--- a/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntitySources.java
+++ b/cn-admin/src/main/java/net/geedge/modules/entity/entity/EntitySources.java
@@ -18,6 +18,8 @@ public class EntitySources {
private String lookups;
+ private Integer enable;
+
private String description;
private Date ctime;
diff --git a/cn-admin/src/main/resources/db/V24.11.06__add entity profiles sources table.sql b/cn-admin/src/main/resources/db/V24.11.06__add entity profiles sources table.sql
index df33187..8e16d07 100644
--- a/cn-admin/src/main/resources/db/V24.11.06__add entity profiles sources table.sql
+++ b/cn-admin/src/main/resources/db/V24.11.06__add entity profiles sources table.sql
@@ -6,8 +6,9 @@ CREATE TABLE `entity_profiles` (
`relations` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`ctime` datetime(0) NOT NULL,
`utime` datetime(0) NOT NULL,
+ `enable` tinyint(1) NULL DEFAULT 1,
PRIMARY KEY (`id`) USING BTREE
-) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
DROP TABLE IF EXISTS `entity_sources`;
CREATE TABLE `entity_sources` (
@@ -19,5 +20,6 @@ CREATE TABLE `entity_sources` (
`description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`ctime` datetime(0) NOT NULL,
`utime` datetime(0) NOT NULL,
+ `enable` tinyint(1) NULL DEFAULT 1,
PRIMARY KEY (`id`) USING BTREE
-) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; \ No newline at end of file
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; \ No newline at end of file
diff --git a/cn-admin/src/main/resources/mapper/entity/EntityProfilesDao.xml b/cn-admin/src/main/resources/mapper/entity/EntityProfilesDao.xml
index 2015dc8..bd2c49f 100644
--- a/cn-admin/src/main/resources/mapper/entity/EntityProfilesDao.xml
+++ b/cn-admin/src/main/resources/mapper/entity/EntityProfilesDao.xml
@@ -8,6 +8,7 @@
<result property="sourceId" column="source_id"></result>
<result property="entities" column="entities"></result>
<result property="relations" column="relations"></result>
+ <result property="enable" column="enable"></result>
<result property="ctime" column="ctime"></result>
<result property="utime" column="utime"></result>
<association columnPrefix="es_" property="entitySource" javaType="net.geedge.modules.entity.entity.EntitySources">
diff --git a/cn-admin/src/main/resources/mapper/entity/EntitySourcesDao.xml b/cn-admin/src/main/resources/mapper/entity/EntitySourcesDao.xml
index d414734..2f539d1 100644
--- a/cn-admin/src/main/resources/mapper/entity/EntitySourcesDao.xml
+++ b/cn-admin/src/main/resources/mapper/entity/EntitySourcesDao.xml
@@ -8,6 +8,7 @@
<result property="dataFormat" column="data_format"></result>
<result property="fields" column="fields"></result>
<result property="lookups" column="lookups"></result>
+ <result property="enable" column="enable"></result>
<result property="description" column="description"></result>
<result property="ctime" column="ctime"></result>
<result property="utime" column="utime"></result>