mybatis 操作动态表+动态字段+存储过程
2012-07-18 11:44 javaspring 阅读(610) 评论(0) 编辑 收藏 举报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>
转载请注明出处:http://blog.csdn.net/yjflinchong/article/details/7758581