diff --git a/.vscode/settings.json b/.vscode/settings.json index 5e809b3..f2dfa53 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,9 @@ }, "java.compile.nullAnalysis.mode": "disabled", "maven.view": "hierarchical", + "maven.executable.options": "-T 4", + "maven.pomfile.autoUpdateEffectivePOM": true, + "java.debug.settings.hotCodeReplace": "auto", + "spring-boot.ls.java.home": "", // "java.compile.nullAnalysis.mode": "automatic" } \ No newline at end of file diff --git a/ruoyi-online/src/main/resources/mapper/online/OnlineMbMapper.xml b/ruoyi-online/src/main/resources/mapper/online/OnlineMbMapper.xml index eafa549..1e03f18 100644 --- a/ruoyi-online/src/main/resources/mapper/online/OnlineMbMapper.xml +++ b/ruoyi-online/src/main/resources/mapper/online/OnlineMbMapper.xml @@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where online_mb.mb_id = #{mbId} + where online_mb.mb_id = #{mbId} and online_mb.del_flag != 1 @@ -102,15 +103,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" permission_type = #{permissionType}, permission_value = #{permissionValue}, - where online_mb.mb_id = #{mbId} + where online_mb.mb_id = #{mbId} and online_mb.del_flag != 1 - delete from online_mb where mb_id = #{mbId} + update online_mb set del_flag = 1 where mb_id = #{mbId} - delete from online_mb where mb_id in + update online_mb set del_flag = 1 where mb_id in #{mbId} diff --git a/sql/online.sql b/sql/online.sql index 66e633b..f8d6793 100644 --- a/sql/online.sql +++ b/sql/online.sql @@ -15,6 +15,7 @@ CREATE TABLE online_mb ( dept_id char(1) NULL COMMENT '是否需要deptId', permission_type varchar(255) NULL COMMENT '许可类型', permission_value varchar(255) NULL COMMENT '许可值', + del_flag varchar(10) NOT NULL COMMENT '删除标志(0代表存在 1代表删除)', PRIMARY KEY (mb_id) ) ENGINE = InnoDB COMMENT = '在线接口';