标签:one day ifnull order date type col set sql
<update id="updateAccount" parameterType="Object" >
update member set editdate=now(),bonus=ifnull(bonus,0)+#{bonus},money=ifnull(money,0)+#{money},orderTicket=ifnull(orderTicket,0)+#{orderTicket }
<if test="colddays !=null and colddays >=0">
,colddays=#{colddays}
</if>
where id=#{id}
</update>
标签:one day ifnull order date type col set sql
原文地址:http://www.cnblogs.com/ronniery/p/7976428.html