<?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.manage.dao.T_MenuMapper">
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <resultMap id="BaseResultMap" type="com.manage.entity.T_Menu">
    <id column="menu_id" jdbcType="INTEGER" property="menuId" />
    <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
    <result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
    <result column="menu_url" jdbcType="VARCHAR" property="menuUrl" />
    <result column="menu_desc" jdbcType="VARCHAR" property="menuDesc" />
    <result column="menu_method" jdbcType="VARCHAR" property="menuMethod" />
    <result column="menu_sys" jdbcType="VARCHAR" property="menuSys" />
    <result column="menu_parent_id" jdbcType="INTEGER" property="menuParentId" />
    <result column="menu_status" jdbcType="VARCHAR" property="menuStatus" />
    <result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
    <result column="menu_remark" jdbcType="VARCHAR" property="menuRemark" />
    <result column="menu_creater" jdbcType="VARCHAR" property="menuCreater" />
    <result column="menu_createTime" jdbcType="VARCHAR" property="menuCreatetime" />
    <result column="menu_updater" jdbcType="VARCHAR" property="menuUpdater" />
    <result column="menu_updateTime" jdbcType="VARCHAR" property="menuUpdatetime" />
  </resultMap>
  <sql id="Base_Column_List">
    menu_id, menu_name, menu_icon, menu_url, menu_desc, menu_method, menu_sys, menu_parent_id, 
    menu_status, menu_sort, menu_remark, menu_creater, menu_createTime, menu_updater, 
    menu_updateTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_menu
    where menu_id = #{menuId,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.manage.entity.T_Menu">
    insert into t_menu (menu_id, menu_name, menu_icon, 
      menu_url, menu_desc, menu_method, 
      menu_sys, menu_parent_id, menu_status, 
      menu_sort, menu_remark, menu_creater, 
      menu_createTime, menu_updater, menu_updateTime
      )
    values (#{menuId,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR}, #{menuIcon,jdbcType=VARCHAR}, 
      #{menuUrl,jdbcType=VARCHAR}, #{menuDesc,jdbcType=VARCHAR}, #{menuMethod,jdbcType=VARCHAR}, 
      #{menuSys,jdbcType=VARCHAR}, #{menuParentId,jdbcType=INTEGER}, #{menuStatus,jdbcType=VARCHAR}, 
      #{menuSort,jdbcType=INTEGER}, #{menuRemark,jdbcType=VARCHAR}, #{menuCreater,jdbcType=VARCHAR}, 
      #{menuCreatetime,jdbcType=VARCHAR}, #{menuUpdater,jdbcType=VARCHAR}, #{menuUpdatetime,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.manage.entity.T_Menu">
    insert into t_menu
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        menu_id,
      </if>
      <if test="menuName != null">
        menu_name,
      </if>
      <if test="menuIcon != null">
        menu_icon,
      </if>
      <if test="menuUrl != null">
        menu_url,
      </if>
      <if test="menuDesc != null">
        menu_desc,
      </if>
      <if test="menuMethod != null">
        menu_method,
      </if>
      <if test="menuSys != null">
        menu_sys,
      </if>
      <if test="menuParentId != null">
        menu_parent_id,
      </if>
      <if test="menuStatus != null">
        menu_status,
      </if>
      <if test="menuSort != null">
        menu_sort,
      </if>
      <if test="menuRemark != null">
        menu_remark,
      </if>
      <if test="menuCreater != null">
        menu_creater,
      </if>
      <if test="menuCreatetime != null">
        menu_createTime,
      </if>
      <if test="menuUpdater != null">
        menu_updater,
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="menuId != null">
        #{menuId,jdbcType=INTEGER},
      </if>
      <if test="menuName != null">
        #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.manage.entity.T_Menu">
    update t_menu
    <set>
      <if test="menuName != null">
        menu_name = #{menuName,jdbcType=VARCHAR},
      </if>
      <if test="menuIcon != null">
        menu_icon = #{menuIcon,jdbcType=VARCHAR},
      </if>
      <if test="menuUrl != null">
        menu_url = #{menuUrl,jdbcType=VARCHAR},
      </if>
      <if test="menuDesc != null">
        menu_desc = #{menuDesc,jdbcType=VARCHAR},
      </if>
      <if test="menuMethod != null">
        menu_method = #{menuMethod,jdbcType=VARCHAR},
      </if>
      <if test="menuSys != null">
        menu_sys = #{menuSys,jdbcType=VARCHAR},
      </if>
      <if test="menuParentId != null">
        menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      </if>
      <if test="menuStatus != null">
        menu_status = #{menuStatus,jdbcType=VARCHAR},
      </if>
      <if test="menuSort != null">
        menu_sort = #{menuSort,jdbcType=INTEGER},
      </if>
      <if test="menuRemark != null">
        menu_remark = #{menuRemark,jdbcType=VARCHAR},
      </if>
      <if test="menuCreater != null">
        menu_creater = #{menuCreater,jdbcType=VARCHAR},
      </if>
      <if test="menuCreatetime != null">
        menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdater != null">
        menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      </if>
      <if test="menuUpdatetime != null">
        menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR},
      </if>
    </set>
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.manage.entity.T_Menu">
    update t_menu
    set menu_name = #{menuName,jdbcType=VARCHAR},
      menu_icon = #{menuIcon,jdbcType=VARCHAR},
      menu_url = #{menuUrl,jdbcType=VARCHAR},
      menu_desc = #{menuDesc,jdbcType=VARCHAR},
      menu_method = #{menuMethod,jdbcType=VARCHAR},
      menu_sys = #{menuSys,jdbcType=VARCHAR},
      menu_parent_id = #{menuParentId,jdbcType=INTEGER},
      menu_status = #{menuStatus,jdbcType=VARCHAR},
      menu_sort = #{menuSort,jdbcType=INTEGER},
      menu_remark = #{menuRemark,jdbcType=VARCHAR},
      menu_creater = #{menuCreater,jdbcType=VARCHAR},
      menu_createTime = #{menuCreatetime,jdbcType=VARCHAR},
      menu_updater = #{menuUpdater,jdbcType=VARCHAR},
      menu_updateTime = #{menuUpdatetime,jdbcType=VARCHAR}
    where menu_id = #{menuId,jdbcType=INTEGER}
  </update>
</mapper>