例子:
xml:
<update id="addUserPoints">
UPDATE userinfo SET points = points + #{addPoints} WHERE openid = #{openId}
</update>
mapper:
int addUserPoints(String openId, int addPoints);
例子:
xml:
<update id="addUserPoints">
UPDATE userinfo SET points = points + #{addPoints} WHERE openid = #{openId}
</update>
mapper:
int addUserPoints(String openId, int addPoints);