Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String
### Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String
mabatis 中代码
<if test="establishmentTime != null and establishmentTime != '' ">#{establishmentTime},</if>
出错原因: mybatis中时间判断不能判断是否为空串
处理方法 删除 and establishmentTime != ''
<if test="establishmentTime != null ">establishment_time,</if>
就可以成功的存入了