mybatis日期插入错误

时间:2017-01-26 08:59:42

标签: java mysql mybatis

我使用MySQL数据库,我想更新日期列,控制台显示此信息:

 update license_user SET account = ?, password = ?, salt = ?, status = ?, type = ?, email = ?, phone = ?, lastLoginDate = ?, lastLoginIp = ?, createDate = ? where id = ? 
[com.manji.persist.mapper.UserEntityMapper.updateByPrimaryKeySelective]-[DEBUG] - ==> Parameters: usertest_(String), Tx+G003oENaw9OtwBsEasQ==(String), 9876463965d11612c1c65cc01c6214d3(String), 0(Integer), 0(Integer), xxxxxxxxx@126.com(String), xxxxxxxxx(String), 2017-01-26 16:34:29.498(Timestamp), 127.0.0.1(String), 2017-01-11 14:00:00.0(Timestamp), 4(Long)

日期值为2017-01-26 16:34:29.498,但是数据库插入了不同的值2017-01-26 02:34:29,我不知道如何解决这个问题,你能给我一些建议,非常感谢。

0 个答案:

没有答案