STATIC_CUSTOMCODE_CUSTOMNAMEMapper.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.STATIC_CUSTOMCODE_CUSTOMNAMEMapper" >
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.STATIC_CUSTOMCODE_CUSTOMNAME" >
<result column="customCode" property="customcode" jdbcType="VARCHAR" />
<result column="customName" property="customname" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.sunyo.wlpt.base.model.STATIC_CUSTOMCODE_CUSTOMNAME" >
insert into STATIC_CUSTOMCODE_CUSTOMNAME (customCode, customName)
values (#{customcode,jdbcType=VARCHAR}, #{customname,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.STATIC_CUSTOMCODE_CUSTOMNAME" >
insert into STATIC_CUSTOMCODE_CUSTOMNAME
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="customcode != null" >
customCode,
</if>
<if test="customname != null" >
customName,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="customcode != null" >
#{customcode,jdbcType=VARCHAR},
</if>
<if test="customname != null" >
#{customname,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>