<update id="addIntegral">
update t_integral set integral =integral+5,modifyDate=#{date}
where TO_DAYS( NOW( )) - TO_DAYS( modifyDate) >=1 and phone =#{phone}
</update>
使用mysql进行语句会反会一个执行行数,插入的条数能够判断是否加积分成功
传入当前时间,和用户手机号
<update id="addIntegral">
update t_integral set integral =integral+5,modifyDate=#{date}
where TO_DAYS( NOW( )) - TO_DAYS( modifyDate) >=1 and phone =#{phone}
</update>
使用mysql进行语句会反会一个执行行数,插入的条数能够判断是否加积分成功
传入当前时间,和用户手机号