Bläddra i källkod

[update] message:1.海报、悄悄话表增加开始时间、结束时间字段类型调整为字符串

kelei 6 månader sedan
förälder
incheckning
86d554691d

+ 2 - 2
admin/src/main/java/com/flyer/foster/entity/PosterLib.java

@@ -46,12 +46,12 @@ public class PosterLib implements Serializable {
     /**
      * 开始时间
      */
-    private LocalDateTime startTime;
+    private String startTime;
 
     /**
      * 结束时间
      */
-    private LocalDateTime endTime;
+    private String endTime;
 
     /**
      * 状态-{0.不可用 1.可用}

+ 2 - 2
admin/src/main/java/com/flyer/foster/entity/Whisper.java

@@ -41,12 +41,12 @@ public class Whisper implements Serializable {
     /**
      * 开始时间
      */
-    private LocalDateTime startTime;
+    private String startTime;
 
     /**
      * 结束时间
      */
-    private LocalDateTime endTime;
+    private String endTime;
 
     /**
      * 状态-{0.不可用 1.可用}

+ 5 - 5
admin/src/main/resources/mysql/ddl/init-table.sql

@@ -283,10 +283,10 @@ create table tb_whisper
     comment '悄悄话';
 
 alter table tb_poster_lib
-    add column name varchar(32) not null comment '海报名称' after id,
-    add column start_time datetime comment '开始时间' after url,
-    add column end_time   datetime comment '结束时间' after start_time;
+    add column name       varchar(32) not null comment '海报名称' after id,
+    add column start_time varchar(10) comment '开始时间' after url,
+    add column end_time   varchar(10) comment '结束时间' after start_time;
 
 alter table tb_whisper
-    add column start_time datetime comment '开始时间' after content,
-    add column end_time   datetime comment '结束时间' after start_time;
+    add column start_time varchar(10) comment '开始时间' after content,
+    add column end_time   varchar(10) comment '结束时间' after start_time;