123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?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.SysFunctionMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysFunction" >
- <id column="SF_ID" property="sfId" jdbcType="INTEGER" />
- <result column="SF_Name" property="sfName" jdbcType="VARCHAR" />
- <result column="SF_Intro" property="sfIntro" jdbcType="VARCHAR" />
- <result column="SF_Icon" property="sfIcon" jdbcType="VARCHAR" />
- <result column="SF_Sort" property="sfSort" jdbcType="INTEGER" />
- <result column="UI_ID_Add" property="uiIdAdd" jdbcType="VARCHAR" />
- <result column="SF_AddDate" property="sfAdddate" jdbcType="TIMESTAMP" />
- <result column="UI_ID_Update" property="uiIdUpdate" jdbcType="VARCHAR" />
- <result column="SF_UpdateDate" property="sfUpdatedate" jdbcType="TIMESTAMP" />
- <result column="SF_IsDel" property="sfIsdel" jdbcType="INTEGER" />
- <result column="SF_URL" property="sfUrl" jdbcType="VARCHAR" />
- <result column="SF_MenuType" property="sfMenutype" jdbcType="INTEGER" />
- <result column="SF_ShowType" property="sfShowtype" jdbcType="INTEGER" />
- <result column="SF_ISFixed" property="sfIsfixed" jdbcType="INTEGER" />
- <result column="SF_IsExternal_Link" property="sfIsExternalLink" jdbcType="INTEGER" />
- <result column="SF_Component" property="sfComponent" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- SF_ID, SF_Name, SF_Intro, SF_Icon, SF_Sort, UI_ID_Add, SF_AddDate, UI_ID_Update,
- SF_UpdateDate, SF_IsDel, SF_URL, SF_MenuType, SF_ShowType, SF_ISFixed, SF_IsExternal_Link, SF_Component
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_function
- where SF_ID = #{sfId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_function
- where SF_ID = #{sfId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
- insert into sys_function (SF_ID, SF_Name, SF_Intro,
- SF_Icon, SF_Sort, UI_ID_Add,
- SF_AddDate, UI_ID_Update, SF_UpdateDate,
- SF_IsDel, SF_URL, SF_MenuType,
- SF_ShowType, SF_ISFixed)
- values (#{sfId,jdbcType=INTEGER}, #{sfName,jdbcType=VARCHAR}, #{sfIntro,jdbcType=VARCHAR},
- #{sfIcon,jdbcType=VARCHAR}, #{sfSort,jdbcType=INTEGER}, #{uiIdAdd,jdbcType=VARCHAR},
- #{sfAdddate,jdbcType=TIMESTAMP}, #{uiIdUpdate,jdbcType=VARCHAR}, #{sfUpdatedate,jdbcType=TIMESTAMP},
- #{sfIsdel,jdbcType=INTEGER}, #{sfUrl,jdbcType=VARCHAR}, #{sfMenutype,jdbcType=INTEGER},
- #{sfShowtype,jdbcType=INTEGER}, #{sfIsfixed,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
- insert into sys_function
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="SF_ID != null" >
- SF_ID,
- </if>
- <if test="SF_Name != null" >
- SF_Name,
- </if>
- <if test="SF_Intro != null" >
- SF_Intro,
- </if>
- <if test="SF_Icon != null" >
- SF_Icon,
- </if>
- <if test="SF_Sort != null" >
- SF_Sort,
- </if>
- <if test="UI_ID_Add != null" >
- UI_ID_Add,
- </if>
- <if test="SF_AddDate != null" >
- SF_AddDate,
- </if>
- <if test="UI_ID_Update != null" >
- UI_ID_Update,
- </if>
- <if test="SF_UpdateDate != null" >
- SF_UpdateDate,
- </if>
- <if test="SF_IsDel != null" >
- SF_IsDel,
- </if>
- <if test="SF_URL != null" >
- SF_URL,
- </if>
- <if test="SF_MenuType != null" >
- SF_MenuType,
- </if>
- <if test="SF_ShowType != null" >
- SF_ShowType,
- </if>
- <if test="SF_ISFixed != null" >
- SF_ISFixed,
- </if>
- <if test="SF_IsExternal_Link != null" >
- SF_IsExternal_Link,
- </if>
- <if test="SF_Component != null" >
- SF_Component,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="sfId != null" >
- #{sfId,jdbcType=INTEGER},
- </if>
- <if test="sfName != null" >
- #{sfName,jdbcType=VARCHAR},
- </if>
- <if test="sfIntro != null" >
- #{sfIntro,jdbcType=VARCHAR},
- </if>
- <if test="sfIcon != null" >
- #{sfIcon,jdbcType=VARCHAR},
- </if>
- <if test="sfSort != null" >
- #{sfSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="sfAdddate != null" >
- #{sfAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="sfUpdatedate != null" >
- #{sfUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="sfIsdel != null" >
- #{sfIsdel,jdbcType=INTEGER},
- </if>
- <if test="sfUrl != null" >
- #{sfUrl,jdbcType=VARCHAR},
- </if>
- <if test="sfMenutype != null" >
- #{sfMenutype,jdbcType=INTEGER},
- </if>
- <if test="sfShowtype != null" >
- #{sfShowtype,jdbcType=INTEGER},
- </if>
- <if test="sfIsfixed != null" >
- #{sfIsfixed,jdbcType=INTEGER},
- </if>
- <if test="sfIsExternalLink != null" >
- #{sfIsExternalLink,jdbcType=INTEGER},
- </if>
- <if test="sfComponent != null" >
- #{sfComponent,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
- update sys_function
- <set >
- <if test="sfName != null" >
- SF_Name = #{sfName,jdbcType=VARCHAR},
- </if>
- <if test="sfIntro != null" >
- SF_Intro = #{sfIntro,jdbcType=VARCHAR},
- </if>
- <if test="sfIcon != null" >
- SF_Icon = #{sfIcon,jdbcType=VARCHAR},
- </if>
- <if test="sfSort != null" >
- SF_Sort = #{sfSort,jdbcType=INTEGER},
- </if>
- <if test="uiIdAdd != null" >
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- </if>
- <if test="sfAdddate != null" >
- SF_AddDate = #{sfAdddate,jdbcType=TIMESTAMP},
- </if>
- <if test="uiIdUpdate != null" >
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- </if>
- <if test="sfUpdatedate != null" >
- SF_UpdateDate = #{sfUpdatedate,jdbcType=TIMESTAMP},
- </if>
- <if test="sfIsdel != null" >
- SF_IsDel = #{sfIsdel,jdbcType=INTEGER},
- </if>
- <if test="sfUrl != null" >
- SF_URL = #{sfUrl,jdbcType=VARCHAR},
- </if>
- <if test="sfMenutype != null" >
- SF_MenuType = #{sfMenutype,jdbcType=INTEGER},
- </if>
- <if test="sfShowtype != null" >
- SF_ShowType = #{sfShowtype,jdbcType=INTEGER},
- </if>
- <if test="sfIsfixed != null" >
- SF_ISFixed = #{sfIsfixed,jdbcType=INTEGER},
- </if>
- <if test="sfIsExternalLink != null" >
- SF_IsExternal_Link = #{sfIsExternalLink,jdbcType=INTEGER},
- </if>
- <if test="sfComponent != null" >
- SF_Component = #{sfComponent,jdbcType=VARCHAR},
- </if>
- </set>
- where SF_ID = #{sfId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysFunction" >
- update sys_function
- set SF_Name = #{sfName,jdbcType=VARCHAR},
- SF_Intro = #{sfIntro,jdbcType=VARCHAR},
- SF_Icon = #{sfIcon,jdbcType=VARCHAR},
- SF_Sort = #{sfSort,jdbcType=INTEGER},
- UI_ID_Add = #{uiIdAdd,jdbcType=VARCHAR},
- SF_AddDate = #{sfAdddate,jdbcType=TIMESTAMP},
- UI_ID_Update = #{uiIdUpdate,jdbcType=VARCHAR},
- SF_UpdateDate = #{sfUpdatedate,jdbcType=TIMESTAMP},
- SF_IsDel = #{sfIsdel,jdbcType=INTEGER},
- SF_URL = #{sfUrl,jdbcType=VARCHAR},
- SF_MenuType = #{sfMenutype,jdbcType=INTEGER},
- SF_ShowType = #{sfShowtype,jdbcType=INTEGER},
- SF_ISFixed = #{sfIsfixed,jdbcType=INTEGER}
- where SF_ID = #{sfId,jdbcType=INTEGER}
- </update>
- </mapper>
|