|
|
@@ -3,7 +3,10 @@ package com.goafanti.portal.bo;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
+import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
+
|
|
|
import com.goafanti.achievement.bo.InputAchievement;
|
|
|
+import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.enums.AchievementCategory;
|
|
|
import com.goafanti.common.enums.AchievementDataCategory;
|
|
|
import com.goafanti.common.enums.Maturity;
|
|
|
@@ -58,6 +61,13 @@ public class AchievementObject extends InputAchievement {
|
|
|
public void setReleaseDate(Date releaseDate) {
|
|
|
this.releaseDate = releaseDate;
|
|
|
}
|
|
|
+ public String getReleaseDateFormattedDate() {
|
|
|
+ if (this.releaseDate == null) {
|
|
|
+ return null;
|
|
|
+ } else {
|
|
|
+ return DateFormatUtils.format(this.getReleaseDate(), AFTConstants.YYYYMMDDHHMMSS);
|
|
|
+ }
|
|
|
+ }
|
|
|
public String getFieldAS() {
|
|
|
return fieldAS;
|
|
|
}
|
|
|
@@ -166,7 +176,13 @@ public class AchievementObject extends InputAchievement {
|
|
|
public void setCreateTime(Date createTime) {
|
|
|
this.createTime = createTime;
|
|
|
}
|
|
|
-
|
|
|
+ public String getCreateTimeFormattedDate() {
|
|
|
+ if (this.createTime == null) {
|
|
|
+ return null;
|
|
|
+ } else {
|
|
|
+ return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|