update online del_flag
This commit is contained in:
parent
209ae25e34
commit
27c826567a
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -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"
|
||||
}
|
@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectOnlineMbList" parameterType="OnlineMb" resultMap="OnlineMbResult">
|
||||
<include refid="selectOnlineMbVo"/>
|
||||
<where>
|
||||
online_mb.del_flag != 1
|
||||
<if test="tag != null and tag != ''"> and tag = #{tag}</if>
|
||||
<if test="tagId != null and tagId != ''"> and tag_id = #{tagId}</if>
|
||||
<if test="parameterType != null and parameterType != ''"> and parameter_type = #{parameterType}</if>
|
||||
@ -46,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectOnlineMbByMbId" parameterType="Long" resultMap="OnlineMbResult">
|
||||
<include refid="selectOnlineMbVo"/>
|
||||
where online_mb.mb_id = #{mbId}
|
||||
where online_mb.mb_id = #{mbId} and online_mb.del_flag != 1
|
||||
</select>
|
||||
|
||||
<insert id="insertOnlineMb" parameterType="OnlineMb">
|
||||
@ -102,15 +103,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="permissionType != null and permissionType != ''">permission_type = #{permissionType},</if>
|
||||
<if test="permissionValue != null and permissionValue != ''">permission_value = #{permissionValue},</if>
|
||||
</trim>
|
||||
where online_mb.mb_id = #{mbId}
|
||||
where online_mb.mb_id = #{mbId} and online_mb.del_flag != 1
|
||||
</update>
|
||||
|
||||
<delete id="deleteOnlineMbByMbId" parameterType="Long">
|
||||
delete from online_mb where mb_id = #{mbId}
|
||||
update online_mb set del_flag = 1 where mb_id = #{mbId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOnlineMbByMbIds" parameterType="String">
|
||||
delete from online_mb where mb_id in
|
||||
update online_mb set del_flag = 1 where mb_id in
|
||||
<foreach item="mbId" collection="array" open="(" separator="," close=")">
|
||||
#{mbId}
|
||||
</foreach>
|
||||
|
@ -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 = '在线接口';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user