<?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.boco.nbd.wios.manage.mapper.def.MenuMapper" > <resultMap id="BaseResultMap" type="com.boco.nbd.wios.manage.entity.bo.Menu" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> <id column="id" property="id" jdbcType="VARCHAR" /> <result column="parent_id" property="parentId" jdbcType="VARCHAR" /> <result column="icon" property="icon" jdbcType="VARCHAR" /> <result column="e_name" property="eName" jdbcType="VARCHAR" /> <result column="c_name" property="cName" jdbcType="VARCHAR" /> <result column="path" property="path" jdbcType="VARCHAR" /> <result column="type" property="type" jdbcType="INTEGER" /> <result column="status" property="status" jdbcType="INTEGER" /> <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> </resultMap> <sql id="Example_Where_Clause" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> <where > <foreach collection="oredCriteria" item="criteria" separator="or" > <if test="criteria.valid" > <trim prefix="(" suffix=")" prefixOverrides="and" > <foreach collection="criteria.criteria" item="criterion" > <choose > <when test="criterion.noValue" > and ${criterion.condition} </when> <when test="criterion.singleValue" > and ${criterion.condition} #{criterion.value} </when> <when test="criterion.betweenValue" > and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} </when> <when test="criterion.listValue" > and ${criterion.condition} <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," > #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Update_By_Example_Where_Clause" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> <where > <foreach collection="example.oredCriteria" item="criteria" separator="or" > <if test="criteria.valid" > <trim prefix="(" suffix=")" prefixOverrides="and" > <foreach collection="criteria.criteria" item="criterion" > <choose > <when test="criterion.noValue" > and ${criterion.condition} </when> <when test="criterion.singleValue" > and ${criterion.condition} #{criterion.value} </when> <when test="criterion.betweenValue" > and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} </when> <when test="criterion.listValue" > and ${criterion.condition} <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," > #{listItem} </foreach> </when> </choose> </foreach> </trim> </if> </foreach> </where> </sql> <sql id="Base_Column_List" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> id, parent_id, icon, e_name, c_name, path, type, status, create_time </sql> <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.boco.nbd.wios.manage.entity.bo.MenuCriteria" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> select <if test="distinct" > distinct </if> <include refid="Base_Column_List" /> from wb_menu <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null" > order by ${orderByClause} </if> </select> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> select <include refid="Base_Column_List" /> from wb_menu where id = #{id,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> delete from wb_menu where id = #{id,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="com.boco.nbd.wios.manage.entity.bo.MenuCriteria" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> delete from wb_menu <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="com.boco.nbd.wios.manage.entity.bo.Menu" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> insert into wb_menu (id, parent_id, icon, e_name, c_name, path, type, status, create_time ) values (#{id,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{eName,jdbcType=VARCHAR}, #{cName,jdbcType=VARCHAR}, #{path,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP} ) </insert> <insert id="insertSelective" parameterType="com.boco.nbd.wios.manage.entity.bo.Menu" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> insert into wb_menu <trim prefix="(" suffix=")" suffixOverrides="," > <if test="id != null" > id, </if> <if test="parentId != null" > parent_id, </if> <if test="icon != null" > icon, </if> <if test="eName != null" > e_name, </if> <if test="cName != null" > c_name, </if> <if test="path != null" > path, </if> <if test="type != null" > type, </if> <if test="status != null" > status, </if> <if test="createTime != null" > create_time, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="id != null" > #{id,jdbcType=VARCHAR}, </if> <if test="parentId != null" > #{parentId,jdbcType=VARCHAR}, </if> <if test="icon != null" > #{icon,jdbcType=VARCHAR}, </if> <if test="eName != null" > #{eName,jdbcType=VARCHAR}, </if> <if test="cName != null" > #{cName,jdbcType=VARCHAR}, </if> <if test="path != null" > #{path,jdbcType=VARCHAR}, </if> <if test="type != null" > #{type,jdbcType=INTEGER}, </if> <if test="status != null" > #{status,jdbcType=INTEGER}, </if> <if test="createTime != null" > #{createTime,jdbcType=TIMESTAMP}, </if> </trim> </insert> <select id="countByExample" parameterType="com.boco.nbd.wios.manage.entity.bo.MenuCriteria" resultType="java.lang.Integer" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> select count(*) from wb_menu <if test="_parameter != null" > <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> update wb_menu <set > <if test="record.id != null" > id = #{record.id,jdbcType=VARCHAR}, </if> <if test="record.parentId != null" > parent_id = #{record.parentId,jdbcType=VARCHAR}, </if> <if test="record.icon != null" > icon = #{record.icon,jdbcType=VARCHAR}, </if> <if test="record.eName != null" > e_name = #{record.eName,jdbcType=VARCHAR}, </if> <if test="record.cName != null" > c_name = #{record.cName,jdbcType=VARCHAR}, </if> <if test="record.path != null" > path = #{record.path,jdbcType=VARCHAR}, </if> <if test="record.type != null" > type = #{record.type,jdbcType=INTEGER}, </if> <if test="record.status != null" > status = #{record.status,jdbcType=INTEGER}, </if> <if test="record.createTime != null" > create_time = #{record.createTime,jdbcType=TIMESTAMP}, </if> </set> <if test="_parameter != null" > <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> update wb_menu set id = #{record.id,jdbcType=VARCHAR}, parent_id = #{record.parentId,jdbcType=VARCHAR}, icon = #{record.icon,jdbcType=VARCHAR}, e_name = #{record.eName,jdbcType=VARCHAR}, c_name = #{record.cName,jdbcType=VARCHAR}, path = #{record.path,jdbcType=VARCHAR}, type = #{record.type,jdbcType=INTEGER}, status = #{record.status,jdbcType=INTEGER}, create_time = #{record.createTime,jdbcType=TIMESTAMP} <if test="_parameter != null" > <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="com.boco.nbd.wios.manage.entity.bo.Menu" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> update wb_menu <set > <if test="parentId != null" > parent_id = #{parentId,jdbcType=VARCHAR}, </if> <if test="icon != null" > icon = #{icon,jdbcType=VARCHAR}, </if> <if test="eName != null" > e_name = #{eName,jdbcType=VARCHAR}, </if> <if test="cName != null" > c_name = #{cName,jdbcType=VARCHAR}, </if> <if test="path != null" > path = #{path,jdbcType=VARCHAR}, </if> <if test="type != null" > type = #{type,jdbcType=INTEGER}, </if> <if test="status != null" > status = #{status,jdbcType=INTEGER}, </if> <if test="createTime != null" > create_time = #{createTime,jdbcType=TIMESTAMP}, </if> </set> where id = #{id,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.boco.nbd.wios.manage.entity.bo.Menu" > <!-- WARNING - @mbggenerated This element is automatically generated by MyBatis Generator, do not modify. This element was generated on Wed May 27 14:31:46 CST 2020. --> update wb_menu set parent_id = #{parentId,jdbcType=VARCHAR}, icon = #{icon,jdbcType=VARCHAR}, e_name = #{eName,jdbcType=VARCHAR}, c_name = #{cName,jdbcType=VARCHAR}, path = #{path,jdbcType=VARCHAR}, type = #{type,jdbcType=INTEGER}, status = #{status,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=VARCHAR} </update> </mapper>