SENDPLANMapper.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.tianbo.analysis.dao.SENDPLANMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.SENDPLAN" >
<id column="CARRIER" property="carrier" jdbcType="VARCHAR" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from CGONMS.SENDPLAN
where CARRIER = #{carrier,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.SENDPLAN" >
insert into CGONMS.SENDPLAN (CARRIER)
values (#{carrier,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.SENDPLAN" >
insert into CGONMS.SENDPLAN
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="carrier != null" >
CARRIER,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="list" parameterType="java.lang.String" resultMap="BaseResultMap">
select CARRIER from CGONMS.SENDPLAN
<if test="carrier != null and carrier != ''" >
where CARRIER = #{carrier,jdbcType=VARCHAR}
</if>
</select>
</mapper>