From 2fcd97552d16718cc7997629fd637a73a5a4483f Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: 星期一, 19 六月 2023 14:44:19 +0800
Subject: [PATCH] 删除

---
 src/main/java/com/gk/firework/Mapper/mybatis/HiddenDangerMenuMapper.xml |  175 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 175 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/HiddenDangerMenuMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/HiddenDangerMenuMapper.xml
new file mode 100644
index 0000000..f146695
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/HiddenDangerMenuMapper.xml
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.gk.firework.Mapper.HiddenDangerMenuMapper" >
+  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.HiddenDangerMenu" >
+    <!--          -->
+    <id column="id" property="id" jdbcType="BIGINT" />
+    <result column="name" property="name" jdbcType="VARCHAR" />
+    <result column="parentid" property="parentid" jdbcType="BIGINT" />
+    <result column="level" property="level" jdbcType="INTEGER" />
+    <result column="validflag" property="validflag" jdbcType="BIT" />
+    <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
+    <result column="createby" property="createby" jdbcType="VARCHAR" />
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
+    <result column="updateby" property="updateby" jdbcType="VARCHAR" />
+    <collection property="submenu"
+        ofType="com.gk.firework.Domain.HiddenDangerMenu"
+        column="id"
+        select="getSubMenu"></collection>
+  </resultMap>
+  <sql id="Base_Column_List" >
+    <!--          -->
+    id, name, parentid, level, validflag, createtime, createby, updatetime, updateby
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
+    <!--          -->
+    select 
+    <include refid="Base_Column_List" />
+    from hiddendangermenu
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+    <select id="selectMenu" resultMap="BaseResultMap">
+        select
+        id,
+        name,
+        parentid,
+        level
+        from hiddendangermenu
+        where validflag = 1
+        and parentid is null
+    </select>
+
+  <select id="getSubMenu" resultMap="BaseResultMap">
+        select
+        id,
+        name,
+        parentid,
+        level
+        from hiddendangermenu
+        where validflag = 1
+        and parentid = #{id}
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+    <!--          -->
+    delete from hiddendangermenu
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" parameterType="com.gk.firework.Domain.HiddenDangerMenu" >
+    <!--          -->
+    insert into hiddendangermenu (id, name, parentid, 
+      level, validflag, createtime, 
+      createby, updatetime, updateby
+      )
+    values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{parentid,jdbcType=BIGINT}, 
+      #{level,jdbcType=INTEGER}, #{validflag,jdbcType=BIT}, #{createtime,jdbcType=TIMESTAMP}, 
+      #{createby,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{updateby,jdbcType=VARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.gk.firework.Domain.HiddenDangerMenu" >
+    <!--          -->
+    insert into hiddendangermenu
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        id,
+      </if>
+      <if test="name != null" >
+        name,
+      </if>
+      <if test="parentid != null" >
+        parentid,
+      </if>
+      <if test="level != null" >
+        level,
+      </if>
+      <if test="validflag != null" >
+        validflag,
+      </if>
+      <if test="createtime != null" >
+        createtime,
+      </if>
+      <if test="createby != null" >
+        createby,
+      </if>
+      <if test="updatetime != null" >
+        updatetime,
+      </if>
+      <if test="updateby != null" >
+        updateby,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="name != null" >
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="parentid != null" >
+        #{parentid,jdbcType=BIGINT},
+      </if>
+      <if test="level != null" >
+        #{level,jdbcType=INTEGER},
+      </if>
+      <if test="validflag != null" >
+        #{validflag,jdbcType=BIT},
+      </if>
+      <if test="createtime != null" >
+        #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createby != null" >
+        #{createby,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null" >
+        #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateby != null" >
+        #{updateby,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.HiddenDangerMenu" >
+    <!--          -->
+    update hiddendangermenu
+    <set >
+      <if test="name != null" >
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="parentid != null" >
+        parentid = #{parentid,jdbcType=BIGINT},
+      </if>
+      <if test="level != null" >
+        level = #{level,jdbcType=INTEGER},
+      </if>
+      <if test="validflag != null" >
+        validflag = #{validflag,jdbcType=BIT},
+      </if>
+      <if test="createtime != null" >
+        createtime = #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createby != null" >
+        createby = #{createby,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null" >
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateby != null" >
+        updateby = #{updateby,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.HiddenDangerMenu" >
+    <!--          -->
+    update hiddendangermenu
+    set name = #{name,jdbcType=VARCHAR},
+      parentid = #{parentid,jdbcType=BIGINT},
+      level = #{level,jdbcType=INTEGER},
+      validflag = #{validflag,jdbcType=BIT},
+      createtime = #{createtime,jdbcType=TIMESTAMP},
+      createby = #{createby,jdbcType=VARCHAR},
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      updateby = #{updateby,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.2