newsInterestBo.java 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.goafanti.news.bo;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.goafanti.common.constant.AFTConstants;
  5. public class newsInterestBo {
  6. private String id;
  7. private String title;
  8. private Date createTime;
  9. private Integer type;
  10. public String getId() {
  11. return id;
  12. }
  13. public void setId(String id) {
  14. this.id = id;
  15. }
  16. public String getTitle() {
  17. return title;
  18. }
  19. public void setTitle(String title) {
  20. this.title = title;
  21. }
  22. public Date getCreateTime() {
  23. return createTime;
  24. }
  25. public void setCreateTime(Date createTime) {
  26. this.createTime = createTime;
  27. }
  28. public String getCreateTimeFormattedDate() {
  29. if (this.createTime == null) {
  30. return null;
  31. } else {
  32. return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDD);
  33. }
  34. }
  35. public Integer getType() {
  36. return type;
  37. }
  38. public void setType(Integer type) {
  39. this.type = type;
  40. }
  41. }