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://www.zuiniusn.com 原创文章,未经博主允许不得转载。
时间: 2024-10-29 19:07:29