123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <?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.pubservice.mysqlmapper.SysRightMenuMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.pubservice.mysqlModel.SysRightMenu" >
- <id column="SRM_ID" property="srmId" jdbcType="INTEGER" />
- <result column="SS_ID" property="ssId" jdbcType="INTEGER" />
- <result column="SRM_Type" property="srmType" jdbcType="INTEGER" />
- <result column="SM_ID" property="smId" jdbcType="INTEGER" />
- <result column="SRM_MenuCode" property="srmMenucode" jdbcType="VARCHAR" />
- <result column="SRM_Level" property="srmLevel" jdbcType="INTEGER" />
- <result column="SRM_SupID" property="srmSupid" jdbcType="INTEGER" />
- <result column="SRM_Sort" property="srmSort" jdbcType="INTEGER" />
- <result column="SRM_Name" property="srmName" jdbcType="VARCHAR" />
- <result column="SRM_IsDel" property="srmIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- SRM_ID, SS_ID, SRM_Type, SM_ID, SRM_MenuCode, SRM_Level, SRM_SupID, SRM_Sort, SRM_Name,
- SRM_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_right_menu
- where SRM_IsDel = 0 and SRM_ID = #{srmId,jdbcType=INTEGER}
- </select>
- <select id="getSystemSsId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_right_menu
- where SRM_IsDel = 0 and SS_ID = #{ssId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_right_menu
- where SRM_ID = #{srmId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.pubservice.mysqlModel.SysRightMenu" >
- insert into sys_right_menu (SRM_ID, SS_ID, SRM_Type,
- SM_ID, SRM_MenuCode, SRM_Level,
- SRM_SupID, SRM_Sort, SRM_Name,
- SRM_IsDel)
- values (#{srmId,jdbcType=INTEGER}, #{ssId,jdbcType=INTEGER}, #{srmType,jdbcType=INTEGER},
- #{smId,jdbcType=INTEGER}, #{srmMenucode,jdbcType=VARCHAR}, #{srmLevel,jdbcType=INTEGER},
- #{srmSupid,jdbcType=INTEGER}, #{srmSort,jdbcType=INTEGER}, #{srmName,jdbcType=VARCHAR},
- #{srmIsdel,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.SysRightMenu" >
- insert into sys_right_menu
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="srmId != null" >
- SRM_ID,
- </if>
- <if test="ssId != null" >
- SS_ID,
- </if>
- <if test="srmType != null" >
- SRM_Type,
- </if>
- <if test="smId != null" >
- SM_ID,
- </if>
- <if test="srmMenucode != null" >
- SRM_MenuCode,
- </if>
- <if test="srmLevel != null" >
- SRM_Level,
- </if>
- <if test="srmSupid != null" >
- SRM_SupID,
- </if>
- <if test="srmSort != null" >
- SRM_Sort,
- </if>
- <if test="srmName != null" >
- SRM_Name,
- </if>
- <if test="srmIsdel != null" >
- SRM_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="srmId != null" >
- #{srmId,jdbcType=INTEGER},
- </if>
- <if test="ssId != null" >
- #{ssId,jdbcType=INTEGER},
- </if>
- <if test="srmType != null" >
- #{srmType,jdbcType=INTEGER},
- </if>
- <if test="smId != null" >
- #{smId,jdbcType=INTEGER},
- </if>
- <if test="srmMenucode != null" >
- #{srmMenucode,jdbcType=VARCHAR},
- </if>
- <if test="srmLevel != null" >
- #{srmLevel,jdbcType=INTEGER},
- </if>
- <if test="srmSupid != null" >
- #{srmSupid,jdbcType=INTEGER},
- </if>
- <if test="srmSort != null" >
- #{srmSort,jdbcType=INTEGER},
- </if>
- <if test="srmName != null" >
- #{srmName,jdbcType=VARCHAR},
- </if>
- <if test="srmIsdel != null" >
- #{srmIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.SysRightMenu" >
- update sys_right_menu
- <set >
- <if test="ssId != null" >
- SS_ID = #{ssId,jdbcType=INTEGER},
- </if>
- <if test="srmType != null" >
- SRM_Type = #{srmType,jdbcType=INTEGER},
- </if>
- <if test="smId != null" >
- SM_ID = #{smId,jdbcType=INTEGER},
- </if>
- <if test="srmMenucode != null" >
- SRM_MenuCode = #{srmMenucode,jdbcType=VARCHAR},
- </if>
- <if test="srmLevel != null" >
- SRM_Level = #{srmLevel,jdbcType=INTEGER},
- </if>
- <if test="srmSupid != null" >
- SRM_SupID = #{srmSupid,jdbcType=INTEGER},
- </if>
- <if test="srmSort != null" >
- SRM_Sort = #{srmSort,jdbcType=INTEGER},
- </if>
- <if test="srmName != null" >
- SRM_Name = #{srmName,jdbcType=VARCHAR},
- </if>
- <if test="srmIsdel != null" >
- SRM_IsDel = #{srmIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where SRM_ID = #{srmId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.SysRightMenu" >
- update sys_right_menu
- set SS_ID = #{ssId,jdbcType=INTEGER},
- SRM_Type = #{srmType,jdbcType=INTEGER},
- SM_ID = #{smId,jdbcType=INTEGER},
- SRM_MenuCode = #{srmMenucode,jdbcType=VARCHAR},
- SRM_Level = #{srmLevel,jdbcType=INTEGER},
- SRM_SupID = #{srmSupid,jdbcType=INTEGER},
- SRM_Sort = #{srmSort,jdbcType=INTEGER},
- SRM_Name = #{srmName,jdbcType=VARCHAR},
- SRM_IsDel = #{srmIsdel,jdbcType=INTEGER}
- where SRM_ID = #{srmId,jdbcType=INTEGER}
- </update>
- </mapper>
|