异常特征:java.lang.IllegalArgumentException: invalid comparison: java.time.LocalDateTime and java.lang.String
### Error updating database. Cause: java.lang.IllegalArgumentException: invalid comparison: java.time.LocalDateTime and java.lang.String
### The error may exist in file [E:\Projects\02.VitalLink\Server\vital-link\vital-server\target\classes\mapper\doctor\DoctorAccountMapper.xml]
### The error may involve cn.edu.hactcm.vitallink.doctor.mapper.DoctorAccountMapper.updateInfo
### The error occurred while executing an update
将
<if test="updateTime != null and updateTime != ''">update_time = #{updateTime}</if>
改为
<if test="updateTime != null">update_time = #{updateTime}</if>
官方:
LocalDateTime是Java 8时间类型,与空字符串’'类型不兼容(MyBatis OGNL表达式限制)
根据MyBatis 3.5官方文档第14.2节,时间类型字段应仅做null检查



![LINUX网络基础 [一] - 初识网络,理解网络协议](https://i-blog.csdnimg.cn/direct/2d1aa133b8ff403ca066c39aae6e5181.gif)




![Android ChatOn-v1.66.536-598-[构建于ChatGPT和GPT-4o之上]](https://i-blog.csdnimg.cn/direct/5b0b070c70864b2fb25f348dad9ae8d1.png)







![[自动驾驶-传感器融合] 多激光雷达的外参标定](https://i-blog.csdnimg.cn/direct/d246557947b14893b37309775eb04cdc.png)