DemandManageListBo.java 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. package com.goafanti.demand.bo;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  6. import com.goafanti.common.constant.AFTConstants;
  7. public class DemandManageListBo {
  8. private String id;
  9. /**
  10. * 编号
  11. */
  12. private Integer serialNumber;
  13. /**
  14. * 数据类别(0-个人需求,1-单位需求)
  15. */
  16. private Integer dataCategory;
  17. /**
  18. * 名称
  19. */
  20. private String name;
  21. /**
  22. * 关键词
  23. */
  24. private String keyword;
  25. /**
  26. * 信息来源(0-平台采集,1-客户发布)
  27. */
  28. private Integer infoSources;
  29. private String username;
  30. /**
  31. * 需求类型
  32. */
  33. private Integer demandType;
  34. private Date validityPeriod;
  35. private String employerName;
  36. private String province;
  37. private Integer status;
  38. /**
  39. * 是否发布(0-未发布,1-发布)
  40. */
  41. private Integer releaseStatus;
  42. /**
  43. * 发布时间
  44. */
  45. private Date releaseDate;
  46. /**
  47. * 负责人(营销员)
  48. */
  49. private String principalId;
  50. private String employerId;
  51. public String getEmployerId() {
  52. return employerId;
  53. }
  54. public void setEmployerId(String employerId) {
  55. this.employerId = employerId;
  56. }
  57. public String getId() {
  58. return id;
  59. }
  60. public void setId(String id) {
  61. this.id = id;
  62. }
  63. public Integer getSerialNumber() {
  64. return serialNumber;
  65. }
  66. public void setSerialNumber(Integer serialNumber) {
  67. this.serialNumber = serialNumber;
  68. }
  69. public Integer getDataCategory() {
  70. return dataCategory;
  71. }
  72. public void setDataCategory(Integer dataCategory) {
  73. this.dataCategory = dataCategory;
  74. }
  75. public String getName() {
  76. return name;
  77. }
  78. public void setName(String name) {
  79. this.name = name;
  80. }
  81. public String getKeyword() {
  82. return keyword;
  83. }
  84. public void setKeyword(String keyword) {
  85. this.keyword = keyword;
  86. }
  87. @JsonFormat(shape = Shape.STRING)
  88. public Integer getInfoSources() {
  89. return infoSources;
  90. }
  91. public void setInfoSources(Integer infoSources) {
  92. this.infoSources = infoSources;
  93. }
  94. public String getUsername() {
  95. return username;
  96. }
  97. public void setUsername(String username) {
  98. this.username = username;
  99. }
  100. @JsonFormat(shape = Shape.STRING)
  101. public Integer getDemandType() {
  102. return demandType;
  103. }
  104. public void setDemandType(Integer demandType) {
  105. this.demandType = demandType;
  106. }
  107. public Date getValidityPeriod() {
  108. return validityPeriod;
  109. }
  110. public void setValidityPeriod(Date validityPeriod) {
  111. this.validityPeriod = validityPeriod;
  112. }
  113. public String getEmployerName() {
  114. return employerName;
  115. }
  116. public void setEmployerName(String employerName) {
  117. this.employerName = employerName;
  118. }
  119. public String getProvince() {
  120. return province;
  121. }
  122. public void setProvince(String province) {
  123. this.province = province;
  124. }
  125. @JsonFormat(shape = Shape.STRING)
  126. public Integer getStatus() {
  127. return status;
  128. }
  129. public void setStatus(Integer status) {
  130. this.status = status;
  131. }
  132. @JsonFormat(shape = Shape.STRING)
  133. public Integer getReleaseStatus() {
  134. return releaseStatus;
  135. }
  136. public void setReleaseStatus(Integer releaseStatus) {
  137. this.releaseStatus = releaseStatus;
  138. }
  139. public Date getReleaseDate() {
  140. return releaseDate;
  141. }
  142. public void setReleaseDate(Date releaseDate) {
  143. this.releaseDate = releaseDate;
  144. }
  145. public String getPrincipalId() {
  146. return principalId;
  147. }
  148. public void setPrincipalId(String principalId) {
  149. this.principalId = principalId;
  150. }
  151. public String getValidityPeriodFormattedDate() {
  152. if (this.validityPeriod == null) {
  153. return null;
  154. } else {
  155. return DateFormatUtils.format(this.getValidityPeriod(), AFTConstants.YYYYMMDDHHMMSS);
  156. }
  157. }
  158. public void setValidityPeriodFormattedDate(String validityPeriodFormattedDate) {
  159. }
  160. public String getReleaseDateFormattedDate() {
  161. if (this.releaseDate == null) {
  162. return null;
  163. } else {
  164. return DateFormatUtils.format(this.getReleaseDate(), AFTConstants.YYYYMMDDHHMMSS);
  165. }
  166. }
  167. public void setReleaseDateFormattedDate(String releaseDateFormattedDate) {
  168. }
  169. }