Antiloveg 8 年 前
コミット
f5666bd60b
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      src/main/java/com/goafanti/common/model/Activity.java

+ 2 - 2
src/main/java/com/goafanti/common/model/Activity.java

@@ -270,10 +270,10 @@ public class Activity {
 	}
 	
 	public Integer getActivityStatus(){
-		if (this.endTime == null){
+		if (this.enrollDeadline == null){
 			return ActivityStatus.ENROLL.getCode();
 		} 
-		if (new Date().getTime() > this.endTime.getTime()){
+		if (new Date().getTime() > this.enrollDeadline.getTime()){
 			return ActivityStatus.CLOSED.getCode();
 		}
 		return ActivityStatus.ENROLL.getCode();