InputDemand.java 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. package com.goafanti.demand.bo;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import javax.validation.constraints.Max;
  5. import javax.validation.constraints.Min;
  6. import javax.validation.constraints.Size;
  7. import com.goafanti.common.constant.ErrorConstants;
  8. public class InputDemand {
  9. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  10. private String name;
  11. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  12. private String id;
  13. @Max(value = 99999999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  14. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  15. private Integer serialNumber;
  16. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  17. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  18. private Integer dataCategory;
  19. @Max(value = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  20. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  21. private Integer demandType;
  22. @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  23. private String keyword;
  24. @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  25. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  26. private Integer industryCategoryA;
  27. @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  28. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  29. private Integer industryCategoryB;
  30. @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  31. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  32. private Integer industryCategoryC;
  33. @Max(value = (long) 999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  34. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  35. private BigDecimal budgetCost;
  36. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  37. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  38. private Integer isHot;
  39. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  40. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  41. private Integer isUrgent;
  42. @Max(value = 10, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  43. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  44. private Integer researchType;
  45. @Size(min = 0, max = 11, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  46. private String urgentDays;
  47. @Max(value = (long) 999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  48. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  49. private BigDecimal urgentMoney;
  50. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  51. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  52. private Integer releaseStatus;
  53. private Date releaseDate;
  54. @Max(value = 4, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  55. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  56. private Integer auditStatus;
  57. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  58. private String auditInfo;
  59. @Max(value = 2, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  60. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  61. private Integer status;
  62. @Size(min = 0, max = 512, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  63. private String problemDes;
  64. @Size(min = 0, max = 1000, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  65. private String pictureUrl;
  66. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  67. private String employerId;
  68. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  69. private String techBrokerId;
  70. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  71. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  72. private Integer infoSources;
  73. public String getName() {
  74. return name;
  75. }
  76. public void setName(String name) {
  77. this.name = name;
  78. }
  79. public String getId() {
  80. return id;
  81. }
  82. public void setId(String id) {
  83. this.id = id;
  84. }
  85. public Integer getSerialNumber() {
  86. return serialNumber;
  87. }
  88. public void setSerialNumber(Integer serialNumber) {
  89. this.serialNumber = serialNumber;
  90. }
  91. public Integer getDataCategory() {
  92. return dataCategory;
  93. }
  94. public void setDataCategory(Integer dataCategory) {
  95. this.dataCategory = dataCategory;
  96. }
  97. public Integer getDemandType() {
  98. return demandType;
  99. }
  100. public void setDemandType(Integer demandType) {
  101. this.demandType = demandType;
  102. }
  103. public String getKeyword() {
  104. return keyword;
  105. }
  106. public void setKeyword(String keyword) {
  107. this.keyword = keyword;
  108. }
  109. public Integer getIndustryCategoryA() {
  110. return industryCategoryA;
  111. }
  112. public void setIndustryCategoryA(Integer industryCategoryA) {
  113. this.industryCategoryA = industryCategoryA;
  114. }
  115. public Integer getIndustryCategoryB() {
  116. return industryCategoryB;
  117. }
  118. public void setIndustryCategoryB(Integer industryCategoryB) {
  119. this.industryCategoryB = industryCategoryB;
  120. }
  121. public Integer getIndustryCategoryC() {
  122. return industryCategoryC;
  123. }
  124. public void setIndustryCategoryC(Integer industryCategoryC) {
  125. this.industryCategoryC = industryCategoryC;
  126. }
  127. public BigDecimal getBudgetCost() {
  128. return budgetCost;
  129. }
  130. public void setBudgetCost(BigDecimal budgetCost) {
  131. this.budgetCost = budgetCost;
  132. }
  133. public Integer getIsHot() {
  134. return isHot;
  135. }
  136. public void setIsHot(Integer isHot) {
  137. this.isHot = isHot;
  138. }
  139. public Integer getIsUrgent() {
  140. return isUrgent;
  141. }
  142. public void setIsUrgent(Integer isUrgent) {
  143. this.isUrgent = isUrgent;
  144. }
  145. public Integer getResearchType() {
  146. return researchType;
  147. }
  148. public void setResearchType(Integer researchType) {
  149. this.researchType = researchType;
  150. }
  151. public String getUrgentDays() {
  152. return urgentDays;
  153. }
  154. public void setUrgentDays(String urgentDays) {
  155. this.urgentDays = urgentDays;
  156. }
  157. public BigDecimal getUrgentMoney() {
  158. return urgentMoney;
  159. }
  160. public void setUrgentMoney(BigDecimal urgentMoney) {
  161. this.urgentMoney = urgentMoney;
  162. }
  163. public Integer getReleaseStatus() {
  164. return releaseStatus;
  165. }
  166. public void setReleaseStatus(Integer releaseStatus) {
  167. this.releaseStatus = releaseStatus;
  168. }
  169. public Date getReleaseDate() {
  170. return releaseDate;
  171. }
  172. public void setReleaseDate(Date releaseDate) {
  173. this.releaseDate = releaseDate;
  174. }
  175. public Integer getAuditStatus() {
  176. return auditStatus;
  177. }
  178. public void setAuditStatus(Integer auditStatus) {
  179. this.auditStatus = auditStatus;
  180. }
  181. public String getAuditInfo() {
  182. return auditInfo;
  183. }
  184. public void setAuditInfo(String auditInfo) {
  185. this.auditInfo = auditInfo;
  186. }
  187. public Integer getStatus() {
  188. return status;
  189. }
  190. public void setStatus(Integer status) {
  191. this.status = status;
  192. }
  193. public String getProblemDes() {
  194. return problemDes;
  195. }
  196. public void setProblemDes(String problemDes) {
  197. this.problemDes = problemDes;
  198. }
  199. public String getPictureUrl() {
  200. return pictureUrl;
  201. }
  202. public void setPictureUrl(String pictureUrl) {
  203. this.pictureUrl = pictureUrl;
  204. }
  205. public String getEmployerId() {
  206. return employerId;
  207. }
  208. public void setEmployerId(String employerId) {
  209. this.employerId = employerId;
  210. }
  211. public String getTechBrokerId() {
  212. return techBrokerId;
  213. }
  214. public void setTechBrokerId(String techBrokerId) {
  215. this.techBrokerId = techBrokerId;
  216. }
  217. public Integer getInfoSources() {
  218. return infoSources;
  219. }
  220. public void setInfoSources(Integer infoSources) {
  221. this.infoSources = infoSources;
  222. }
  223. }