123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?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.kmall.api.dao.ApiSysParamMapper" >
- <resultMap id="BaseResultMap" type="com.kmall.api.entity.SysParam" >
- <id column="param_id" property="paramId" jdbcType="INTEGER" />
- <result column="param_name" property="paramName" jdbcType="VARCHAR" />
- <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
- <result column="mod_time" property="modTime" jdbcType="TIMESTAMP" />
- <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- param_id, param_name, creater_sn, create_time, moder_sn, mod_time, tstm
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_param
- where param_id = #{paramId,jdbcType=INTEGER}
- </select>
- <delete id="delete" parameterType="java.lang.Integer" >
- delete from sys_param
- where param_id = #{paramId,jdbcType=INTEGER}
- </delete>
- <insert id="save" parameterType="com.kmall.api.entity.SysParam" useGeneratedKeys="true" keyProperty="id">
- insert into sys_param
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="paramId != null" >
- param_id,
- </if>
- <if test="paramName != null" >
- param_name,
- </if>
- <if test="createrSn != null" >
- creater_sn,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="moderSn != null" >
- moder_sn,
- </if>
- <if test="modTime != null" >
- mod_time,
- </if>
- <if test="tstm != null" >
- tstm,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="paramId != null" >
- #{paramId,jdbcType=INTEGER},
- </if>
- <if test="paramName != null" >
- #{paramName,jdbcType=VARCHAR},
- </if>
- <if test="createrSn != null" >
- #{createrSn,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="moderSn != null" >
- #{moderSn,jdbcType=VARCHAR},
- </if>
- <if test="modTime != null" >
- #{modTime,jdbcType=TIMESTAMP},
- </if>
- <if test="tstm != null" >
- #{tstm,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="update" parameterType="com.kmall.api.entity.SysParam" >
- update sys_param
- <set >
- <if test="paramName != null" >
- param_name = #{paramName,jdbcType=VARCHAR},
- </if>
- <if test="createrSn != null" >
- creater_sn = #{createrSn,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="moderSn != null" >
- moder_sn = #{moderSn,jdbcType=VARCHAR},
- </if>
- <if test="modTime != null" >
- mod_time = #{modTime,jdbcType=TIMESTAMP},
- </if>
- <if test="tstm != null" >
- tstm = #{tstm,jdbcType=TIMESTAMP},
- </if>
- </set>
- where param_id = #{paramId,jdbcType=INTEGER}
- </update>
- </mapper>
|