diff --git a/db/schema.sql b/db/schema.sql index b515d1f..45a44a5 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -36,7 +36,7 @@ create table habit_record update_time datetime null, name varchar(100) not null, date date not null comment '重要的日期', - type enum ('anniversary', 'commemoration') default 'anniversary' not null + type enum ('ANNIVERSARY', 'COMMEMORATION') default 'ANNIVERSARY' not null ) comment '周年纪念日'; diff --git a/src/main/java/com/dota/nexus/service/impl/AnniversaryServiceImpl.java b/src/main/java/com/dota/nexus/service/impl/AnniversaryServiceImpl.java index 741b310..4950d63 100644 --- a/src/main/java/com/dota/nexus/service/impl/AnniversaryServiceImpl.java +++ b/src/main/java/com/dota/nexus/service/impl/AnniversaryServiceImpl.java @@ -35,9 +35,9 @@ public class AnniversaryServiceImpl extends ServiceImpl