CONFIG_USER_CUSTOMCODEMapper.xml 1.3 KB
<?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.sunyo.wlpt.base.dao.CONFIG_USER_CUSTOMCODEMapper">
  <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
    <result column="userID" jdbcType="INTEGER" property="userid" />
    <result column="customCode" jdbcType="VARCHAR" property="customcode" />
  </resultMap>
  <insert id="insert" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
    insert into CONFIG_USER_CUSTOMCODE (userID, customCode)
    values (#{userid,jdbcType=INTEGER}, #{customcode,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
    insert into CONFIG_USER_CUSTOMCODE
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="userid != null">
        userID,
      </if>
      <if test="customcode != null">
        customCode,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="userid != null">
        #{userid,jdbcType=INTEGER},
      </if>
      <if test="customcode != null">
        #{customcode,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>