修复Notification实体类updateTime字段导致的SQL错误

问题:审核通过时发送通知失败,提示'Unknown column update_time in field list'
原因:Notification实体类定义了updateTime字段并标记为自动填充,但数据库表sys_notification中没有此字段
解决:将updateTime字段标记为exist=false,表示此字段不存在于数据库表中
This commit is contained in:
Your Name 2026-01-02 18:52:42 +08:00
parent 302def1e7c
commit 7d881ab617

View File

@ -109,9 +109,9 @@ public class Notification implements Serializable {
private LocalDateTime createTime;
/**
* 更新时间
* 更新时间(表中不存在此字段,标记为不存在)
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@TableField(exist = false)
private LocalDateTime updateTime;
/**