Jelajahi Sumber

增加字段year用于判断年份

郭超 4 tahun lalu
induk
melakukan
4dbe917efb

+ 1 - 0
src/main/java/mooctest/org/backend/site/data/vo/NotificationVO.java

@@ -21,6 +21,7 @@ public class NotificationVO {
     private int isThirdParty;
     private int deletedStatus;
     private Timestamp createTime;
+    private int year;
 
     public NotificationVO(Notification notification){
         BeanUtils.copyProperties(notification, this);

+ 1 - 0
src/main/java/mooctest/org/backend/site/domainObject/Notification.java

@@ -25,6 +25,7 @@ public class Notification {
     private int deletedStatus;
     private int isChangingCreateTime = 0;
     private Timestamp createTime;
+    private int year;
 
 
     public Notification createNotification(){

+ 2 - 0
src/main/java/mooctest/org/backend/site/model/NotificationPO.java

@@ -43,4 +43,6 @@ public class NotificationPO implements Serializable {
     @Column(name = "N_CREATE_TIME")
     private Timestamp createTime;
 
+    @Column(name = "N_YEAR")
+    private int year;
 }

+ 1 - 1
src/main/resources/application.yml

@@ -1,4 +1,4 @@
-server.port: 8090
+server.port: 8092
 spring:
   datasource:
     driver-class-name: com.mysql.jdbc.Driver