StatementMapper.xml
812 Bytes
<?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="cn.runsa.crmapp.common.mapper.StatementMapper">
<delete id="delete" parameterType="java.lang.String">
delete from crm_statements
where `ID` = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert">
insert into crm_statements (`ID`, `INDEX`, `STMT`)
values
<foreach collection="list" item="it" separator=",">
(#{it.id,jdbcType=VARCHAR},
#{it.index,jdbcType=INTEGER},
#{it.stmt,jdbcType=LONGVARCHAR})
</foreach>
</insert>
<select id="execute" statementType="CALLABLE" parameterType="java.lang.String" resultType="java.lang.Boolean">
{call crm_pdu_common_exe(#{id,mode=IN,jdbcType=VARCHAR})}
</select>
</mapper>