123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?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.xinxin.topro.base.mysqlmapper.SysMenuMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysMenu" >
- <id column="SM_ID" property="smId" jdbcType="INTEGER" />
- <result column="SS_ID" property="ssId" jdbcType="INTEGER" />
- <result column="SM_SupID" property="smSupid" jdbcType="INTEGER" />
- <result column="SM_Parameter" property="smParameter" jdbcType="VARCHAR" />
- <result column="SM_Icon" property="smIcon" jdbcType="VARCHAR" />
- <result column="SM_Sort" property="smSort" jdbcType="INTEGER" />
- <result column="SM_Name" property="smName" jdbcType="VARCHAR" />
- <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
- <result column="SM_AddDate" property="smAdddate" jdbcType="TIMESTAMP" />
- <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
- <result column="SM_UpdateDate" property="smUpdatedate" jdbcType="TIMESTAMP" />
- <result column="SM_IsDel" property="smIsdel" jdbcType="INTEGER" />
- <result column="SF_ID" property="sfId" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- SM_ID, SS_ID, SM_SupID, SM_Parameter, SM_Icon, SM_Sort, SM_Name, UI_ID_Add, SM_AddDate,
- UI_ID_Update, SM_UpdateDate, SM_IsDel, SF_ID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_menu
- where SM_ID = #{smId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_menu
- where SM_ID = #{smId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
- insert into sys_menu (SM_ID, SS_ID, SM_SupID,
- SM_Parameter, SM_Icon, SM_Sort,
- SM_Name, UI_ID_Add, SM_AddDate,
- UI_ID_Update, SM_UpdateDate, SM_IsDel,
- SF_ID)
- values (#{smId,jdbcType=INTEGER}, #{ssId,jdbcType=INTEGER}, #{smSupid,jdbcType=INTEGER},
- #{smParameter,jdbcType=VARCHAR}, #{smIcon,jdbcType=VARCHAR}, #{smSort,jdbcType=INTEGER},
- #{smName,jdbcType=VARCHAR}, #{uiIdAdd,jdbcType=VARCHAR}, #{smAdddate,jdbcType=TIMESTAMP},
- #{uiIdUpdate,jdbcType=VARCHAR}, #{smUpdatedate,jdbcType=TIMESTAMP}, #{smIsdel,jdbcType=INTEGER},
- #{sfId,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
- insert into sys_menu
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="smId != null" >
- SM_ID,
- </if>
- <if test="ssId != null" >
- SS_ID,
- </if>
- <if test="smSupid != null" >
- SM_SupID,
- </if>
- <if test="smParameter != null" >
- SM_Parameter,
- </if>
- <if test="smIcon != null" >
- SM_Icon,
- </if>
- <if test="smSort != null" >
- SM_Sort,
- </if>
- <if test="smName != null" >
- SM_Name,
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add,
- </if>
- <if test="smAdddate != null" >
- SM_AddDate,
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update,
- </if>
- <if test="smUpdatedate != null" >
- SM_UpdateDate,
- </if>
- <if test="smIsdel != null" >
- SM_IsDel,
- </if>
- <if test="sfId != null" >
- SF_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="smId != null" >
- #{smId,jdbcType=INTEGER},
- </if>
- <if test="ssId != null" >
- #{ssId,jdbcType=INTEGER},
- </if>
- <if test="smSupid != null" >
- #{smSupid,jdbcType=INTEGER},
- </if>
- <if test="smParameter != null" >
- #{smParameter,jdbcType=VARCHAR},
- </if>
- <if test="smIcon != null" >
- #{smIcon,jdbcType=VARCHAR},
- </if>
- <if test="smSort != null" >
- #{smSort,jdbcType=INTEGER},
- </if>
- <if test="smName != null" >
- #{smName,jdbcType=VARCHAR},
- </if>
- <if test="uiIdAdd != null" >
- #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="smAdddate != null" >
- #{smAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="smUpdatedate != null" >
- #{smUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="smIsdel != null" >
- #{smIsdel,jdbcType=INTEGER},
- </if>
- <if test="sfId != null" >
- #{sfId,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
- update sys_menu
- <set >
- <if test="ssId != null" >
- SS_ID = #{ssId,jdbcType=INTEGER},
- </if>
- <if test="smSupid != null" >
- SM_SupID = #{smSupid,jdbcType=INTEGER},
- </if>
- <if test="smParameter != null" >
- SM_Parameter = #{smParameter,jdbcType=VARCHAR},
- </if>
- <if test="smIcon != null" >
- SM_Icon = #{smIcon,jdbcType=VARCHAR},
- </if>
- <if test="smSort != null" >
- SM_Sort = #{smSort,jdbcType=INTEGER},
- </if>
- <if test="smName != null" >
- SM_Name = #{smName,jdbcType=VARCHAR},
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="smAdddate != null" >
- SM_AddDate = #{smAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="smUpdatedate != null" >
- SM_UpdateDate = #{smUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="smIsdel != null" >
- SM_IsDel = #{smIsdel,jdbcType=INTEGER},
- </if>
- <if test="sfId != null" >
- SF_ID = #{sfId,jdbcType=INTEGER},
- </if>
- </set>
- where SM_ID = #{smId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysMenu" >
- update sys_menu
- set SS_ID = #{ssId,jdbcType=INTEGER},
- SM_SupID = #{smSupid,jdbcType=INTEGER},
- SM_Parameter = #{smParameter,jdbcType=VARCHAR},
- SM_Icon = #{smIcon,jdbcType=VARCHAR},
- SM_Sort = #{smSort,jdbcType=INTEGER},
- SM_Name = #{smName,jdbcType=VARCHAR},
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- SM_AddDate = #{smAdddate,jdbcType=TIMESTAMP},
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- SM_UpdateDate = #{smUpdatedate,jdbcType=TIMESTAMP},
- SM_IsDel = #{smIsdel,jdbcType=INTEGER},
- SF_ID = #{sfId,jdbcType=INTEGER}
- where SM_ID = #{smId,jdbcType=INTEGER}
- </update>
- </mapper>
|