ObjectInterestListBo.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.goafanti.demand.bo;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.goafanti.common.constant.AFTConstants;
  5. public class ObjectInterestListBo {
  6. /**
  7. * ID
  8. */
  9. private String id;
  10. /**
  11. * 类型
  12. */
  13. private Integer type;
  14. /**
  15. * 名称
  16. */
  17. private String name;
  18. /**
  19. * 时间
  20. */
  21. private Date createTime;
  22. /**
  23. * 兴趣数
  24. */
  25. private String countInterest;
  26. private String uid;
  27. public Integer getType() {
  28. return type;
  29. }
  30. public void setType(Integer type) {
  31. this.type = type;
  32. }
  33. public String getName() {
  34. return name;
  35. }
  36. public void setName(String name) {
  37. this.name = name;
  38. }
  39. public Date getCreateTime() {
  40. return createTime;
  41. }
  42. public void setCreateTime(Date createTime) {
  43. this.createTime = createTime;
  44. }
  45. public String getCreateTimeFormattedDate() {
  46. if (this.createTime == null) {
  47. return null;
  48. } else {
  49. return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
  50. }
  51. }
  52. public String getCountInterest() {
  53. return String.valueOf(Integer.valueOf(countInterest)+20);
  54. }
  55. public void setCountInterest(String countInterest) {
  56. this.countInterest = countInterest;
  57. }
  58. public String getId() {
  59. return id;
  60. }
  61. public void setId(String id) {
  62. this.id = id;
  63. }
  64. public String getUid() {
  65. return uid;
  66. }
  67. public void setUid(String uid) {
  68. this.uid = uid;
  69. }
  70. }