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