我有点傻……
sql update语法,修改的字段之间要用,连接,而不是and
否则就会报错Truncated incorrect DOUBLE value……
如:
update teacher set IMAGE_URL = #{1} and UPDATE_TIME=now() where TEACHER_MOBILE = #{0} 错误
update teacher set IMAGE_URL = #{1},UPDATE_TIME=now() where TEACHER_MOBILE = #{0} 正确
基础很重要!