123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?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.SysParameterMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.SysParameter">
- <id column="SP_ID" property="spId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER"/>
- <result column="SP_Classify" property="spClassify" jdbcType="INTEGER" />
- <result column="SP_ParmDm" property="spParmdm" jdbcType="VARCHAR" />
- <result column="SP_Des" property="spDes" jdbcType="VARCHAR" />
- <result column="SP_Type" property="spType" jdbcType="VARCHAR" />
- <result column="SP_Value" property="spValue" jdbcType="VARCHAR" />
- <result column="UI_ID" property="uiId" jdbcType="VARCHAR" />
- <result column="SP_Date" property="spDate" jdbcType="TIMESTAMP" />
- <result column="SP_IsDel" property="spIsdel" jdbcType="INTEGER" />
- <result column="SP_PinyinCode" property="spPincode" jdbcType="VARCHAR"/>
- <result column="SP_WubiCode" property="spWubicode" jdbcType="VARCHAR"/>
- <result column="SP_OtherCode" property="spOthercode" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List" >
- SP_ID, HI_ID,SP_Classify, SP_ParmDm, SP_Des, SP_Type, SP_Value, UI_ID, SP_Date, SP_IsDel,SP_PinyinCode,SP_WubiCode,SP_OtherCode
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_parameter
- where SP_ID = #{spId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_parameter
- where SP_ID = #{spId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.SysParameter" >
- insert into sys_parameter (SP_ID, HI_ID,SP_Classify, SP_ParmDm,
- SP_Des, SP_Type, SP_Value,
- UI_ID, SP_Date, SP_IsDel,SP_PinyinCode,SP_WubiCode,SP_OtherCode
- )
- values (#{spId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER},#{spClassify,jdbcType=INTEGER}, #{spParmdm,jdbcType=VARCHAR},
- #{spDes,jdbcType=VARCHAR}, #{spType,jdbcType=VARCHAR}, #{spValue,jdbcType=VARCHAR},
- #{uiId,jdbcType=VARCHAR}, #{spDate,jdbcType=TIMESTAMP}, #{spIsdel,jdbcType=INTEGER},
- #{spPincode,jdbcType=VARCHAR},#{spWubicode,jdbcType=VARCHAR},#{spOthercode,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysParameter" >
- insert into sys_parameter
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="spId != null" >
- SP_ID,
- </if>
- <if test="spClassify != null" >
- SP_Classify,
- </if>
- <if test="spParmdm != null" >
- SP_ParmDm,
- </if>
- <if test="spDes != null" >
- SP_Des,
- </if>
- <if test="spType != null" >
- SP_Type,
- </if>
- <if test="spValue != null" >
- SP_Value,
- </if>
- <if test="uiId != null" >
- UI_ID,
- </if>
- <if test="spDate != null" >
- SP_Date,
- </if>
- <if test="spIsdel != null" >
- SP_IsDel,
- </if>
- <if test="spPincode != null">
- SP_PinyinCode,
- </if>
- <if test="spWubicode">
- SP_WubiCode,
- </if>
- <if test="spOthercode">
- SP_OtherCode,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="spId != null" >
- #{spId,jdbcType=INTEGER},
- </if>
- <if test="spClassify != null" >
- #{spClassify,jdbcType=INTEGER},
- </if>
- <if test="spParmdm != null" >
- #{spParmdm,jdbcType=VARCHAR},
- </if>
- <if test="spDes != null" >
- #{spDes,jdbcType=VARCHAR},
- </if>
- <if test="spType != null" >
- #{spType,jdbcType=VARCHAR},
- </if>
- <if test="spValue != null" >
- #{spValue,jdbcType=VARCHAR},
- </if>
- <if test="uiId != null" >
- #{uiId,jdbcType=VARCHAR},
- </if>
- <if test="spDate != null" >
- #{spDate,jdbcType=TIMESTAMP},
- </if>
- <if test="spIsdel != null" >
- #{spIsdel,jdbcType=INTEGER},
- </if>
- <if test="spPincode !=null">
- #{spPincode,jdbcType=VARCHAR},
- </if>
- <if test="spWubicode !=null">
- #{spWubicode,jdbcType=VARCHAR},
- </if>
- <if test="spOthercode !=null">
- #{spOthercode,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.SysParameter" >
- update sys_parameter
- <set >
- <if test="spClassify != null" >
- SP_Classify = #{spClassify,jdbcType=INTEGER},
- </if>
- <if test="spParmdm != null" >
- SP_ParmDm = #{spParmdm,jdbcType=VARCHAR},
- </if>
- <if test="spDes != null" >
- SP_Des = #{spDes,jdbcType=VARCHAR},
- </if>
- <if test="spType != null" >
- SP_Type = #{spType,jdbcType=VARCHAR},
- </if>
- <if test="spValue != null" >
- SP_Value = #{spValue,jdbcType=VARCHAR},
- </if>
- <if test="uiId != null" >
- UI_ID = #{uiId,jdbcType=VARCHAR},
- </if>
- <if test="spDate != null" >
- SP_Date = #{spDate,jdbcType=TIMESTAMP},
- </if>
- <if test="spIsdel != null" >
- SP_IsDel = #{spIsdel,jdbcType=INTEGER},
- </if>
- <if test="spPincode !=null">
- #{spPincode,jdbcType=VARCHAR},
- </if>
- <if test="spWubicode !=null">
- #{spWubicode,jdbcType=VARCHAR},
- </if>
- <if test="spOthercode !=null">
- #{spOthercode,jdbcType=VARCHAR},
- </if>
- </set>
- where SP_ID = #{spId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.SysParameter" >
- update sys_parameter
- set SP_Classify = #{spClassify,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER},
- SP_ParmDm = #{spParmdm,jdbcType=VARCHAR},
- SP_Des = #{spDes,jdbcType=VARCHAR},
- SP_Type = #{spType,jdbcType=VARCHAR},
- SP_Value = #{spValue,jdbcType=VARCHAR},
- UI_ID = #{uiId,jdbcType=VARCHAR},
- SP_Date = #{spDate,jdbcType=TIMESTAMP},
- SP_IsDel = #{spIsdel,jdbcType=INTEGER},
- SP_PinyinCode = #{spPincode,jdbcType=VARCHAR},
- SP_WubiCode = #{spWubicode,jdbcType=VARCHAR},
- SP_OtherCode = #{spPincode,jdbcType=VARCHAR}
- where SP_ID = #{spId,jdbcType=INTEGER}
- </update>
- <select id="selectValueByPramDM" resultType="java.lang.String" parameterType="java.lang.String">
- select SP_VALUE
- FROM sys_parameter
- WHERE SP_Classify = 1 and SP_IsDel = 0 and SP_ParmDm=#{spParmdm,jdbcType=VARCHAR}
- </select>
- <select id="selectValueByHiIdPramDM" resultType="java.lang.String">
- select SP_VALUE
- FROM sys_parameter
- WHERE SP_Classify = 1 and SP_IsDel = 0 and SP_ParmDm = #{pramDM,jdbcType=VARCHAR}
- and HI_ID = #{hiId,jdbcType=INTEGER}
- </select>
- <select id="selectByParamDm" resultType="com.xinxin.topro.base.mysqlmodel.SysParameter"
- parameterType="java.lang.String">
- select
- SP_ID spId,
- HI_ID hiId,
- SP_Classify spClassify,
- SP_ParmDm spParmdm,
- SP_Des spDes,
- SP_Type spType,
- SP_Value spValue,
- UI_ID uiId,
- SP_Date spDate,
- SP_IsDel spIsdel,
- SP_PinyinCode spPincode,
- SP_WubiCode spWubicode,
- SP_OtherCode spOthercode
- from sys_parameter
- where SP_IsDel = 0
- and SP_ParmDm = #{spParmDm,jdbcType=VARCHAR}
- </select>
- <select id="selectAll" resultMap="BaseResultMap">
- select
- SP_ID spId,
- HI_ID hiId,
- SP_Classify spClassify,
- SP_ParmDm spParmdm,
- SP_Des spDes,
- SP_Type spType,
- SP_Value spValue,
- UI_ID uiId,
- SP_Date spDate,
- SP_IsDel spIsdel,
- SP_PinyinCode spPincode,
- SP_WubiCode spWubicode,
- SP_OtherCode spOthercode
- from sys_parameter
- where SP_IsDel = 0;
- </select>
- <select id="selectAllClassify" resultMap="BaseResultMap" parameterType="java.lang.Integer">
- select
- SP_ID spId,
- HI_ID hiId,
- SP_Classify spClassify,
- SP_ParmDm spParmdm,
- SP_Des spDes,
- SP_Type spType,
- SP_Value spValue,
- UI_ID uiId,
- SP_Date spDate,
- SP_IsDel spIsdel,
- SP_PinyinCode spPincode,
- SP_WubiCode spWubicode,
- SP_OtherCode spOthercode
- from sys_parameter
- where SP_IsDel = 0
- and SP_Classify= #{classify,jdbcType=VARCHAR}
- </select>
- <select id="selectByClassifyName">
- </select>
- </mapper>
|