mybatis操作动态表+动态字段+存储过程

存储过程 statementType="CALLABLE"

<!-- 计算金额存储过程-->
<update id="getCalcDistributorSettle" statementType="CALLABLE" parameterType="java.util.Map">
<![CDATA[
CALL procCalcDistributorSettle (#{ID},#{message})
]]>
</update>

 

动态表+动态字段配置 statementType="STATEMENT"

<update id="updateMemberFiled" parameterType="map" statementType="STATEMENT">

<![CDATA[

update Member m
set
${filed_companyAddress} = '${companyAddress}'
where memberID = '${memberID}'

]]>

</update>

 

posted @ 2015-10-19 10:07  星辰之力  阅读(1806)  评论(0编辑  收藏  举报