InputDemand.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  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 = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  10. private String id;
  11. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  12. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  13. private Integer dataCategory;
  14. @Max(value = 99999999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  15. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  16. private Integer serialNumber;
  17. @Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  18. private String name;
  19. @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  20. private String keyword;
  21. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  22. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  23. private Integer infoSources;
  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 = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  34. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  35. private Integer demandType;
  36. @Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  37. private String problemDes;
  38. @Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  39. private String technicalRequirements;
  40. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  41. private String pictureUrl;
  42. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  43. private String textFileUrl;
  44. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  45. private String videoUrl;
  46. @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  47. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  48. private BigDecimal fixedBudget;
  49. @Size(min = 0, max = 12, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  50. private String fixedCycle;
  51. @Max(value = 99999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  52. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  53. private Integer peopleNumber;
  54. @Size(min = 0, max = 200, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  55. private String fixedScheme;
  56. @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  57. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  58. private BigDecimal costEscrow;
  59. @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  60. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  61. private BigDecimal budgetCost;
  62. private Date validityPeriod;
  63. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  64. private String employerId;
  65. @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  66. private String employerName;
  67. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  68. private String employerAddress;
  69. @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  70. private String employerContacts;
  71. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  72. private String employerContactsMobile;
  73. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  74. private String employerContactsMailbox;
  75. @Max(value = 3, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  76. @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  77. private Integer contacts;
  78. @Max(value = 2, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  79. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  80. private Integer status;
  81. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  82. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  83. private Integer releaseStatus;
  84. private Date releaseDate;
  85. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  86. private String principalId;
  87. @Max(value = 4, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  88. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  89. private Integer auditStatus;
  90. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  91. private String techBrokerId;
  92. public String getId() {
  93. return id;
  94. }
  95. public void setId(String id) {
  96. this.id = id;
  97. }
  98. public Integer getDataCategory() {
  99. return dataCategory;
  100. }
  101. public void setDataCategory(Integer dataCategory) {
  102. this.dataCategory = dataCategory;
  103. }
  104. public String getName() {
  105. return name;
  106. }
  107. public void setName(String name) {
  108. this.name = name;
  109. }
  110. public String getKeyword() {
  111. return keyword;
  112. }
  113. public void setKeyword(String keyword) {
  114. this.keyword = keyword;
  115. }
  116. public Integer getInfoSources() {
  117. return infoSources;
  118. }
  119. public void setInfoSources(Integer infoSources) {
  120. this.infoSources = infoSources;
  121. }
  122. public Integer getIndustryCategoryA() {
  123. return industryCategoryA;
  124. }
  125. public void setIndustryCategoryA(Integer industryCategoryA) {
  126. this.industryCategoryA = industryCategoryA;
  127. }
  128. public Integer getIndustryCategoryB() {
  129. return industryCategoryB;
  130. }
  131. public void setIndustryCategoryB(Integer industryCategoryB) {
  132. this.industryCategoryB = industryCategoryB;
  133. }
  134. public Integer getIndustryCategoryC() {
  135. return industryCategoryC;
  136. }
  137. public void setIndustryCategoryC(Integer industryCategoryC) {
  138. this.industryCategoryC = industryCategoryC;
  139. }
  140. public Integer getDemandType() {
  141. return demandType;
  142. }
  143. public void setDemandType(Integer demandType) {
  144. this.demandType = demandType;
  145. }
  146. public String getProblemDes() {
  147. return problemDes;
  148. }
  149. public void setProblemDes(String problemDes) {
  150. this.problemDes = problemDes;
  151. }
  152. public String getTechnicalRequirements() {
  153. return technicalRequirements;
  154. }
  155. public void setTechnicalRequirements(String technicalRequirements) {
  156. this.technicalRequirements = technicalRequirements;
  157. }
  158. public String getPictureUrl() {
  159. return pictureUrl;
  160. }
  161. public void setPictureUrl(String pictureUrl) {
  162. this.pictureUrl = pictureUrl;
  163. }
  164. public String getTextFileUrl() {
  165. return textFileUrl;
  166. }
  167. public void setTextFileUrl(String textFileUrl) {
  168. this.textFileUrl = textFileUrl;
  169. }
  170. public String getVideoUrl() {
  171. return videoUrl;
  172. }
  173. public void setVideoUrl(String videoUrl) {
  174. this.videoUrl = videoUrl;
  175. }
  176. public BigDecimal getFixedBudget() {
  177. return fixedBudget;
  178. }
  179. public void setFixedBudget(BigDecimal fixedBudget) {
  180. this.fixedBudget = fixedBudget;
  181. }
  182. public String getFixedCycle() {
  183. return fixedCycle;
  184. }
  185. public void setFixedCycle(String fixedCycle) {
  186. this.fixedCycle = fixedCycle;
  187. }
  188. public Integer getPeopleNumber() {
  189. return peopleNumber;
  190. }
  191. public void setPeopleNumber(Integer peopleNumber) {
  192. this.peopleNumber = peopleNumber;
  193. }
  194. public String getFixedScheme() {
  195. return fixedScheme;
  196. }
  197. public void setFixedScheme(String fixedScheme) {
  198. this.fixedScheme = fixedScheme;
  199. }
  200. public BigDecimal getCostEscrow() {
  201. return costEscrow;
  202. }
  203. public void setCostEscrow(BigDecimal costEscrow) {
  204. this.costEscrow = costEscrow;
  205. }
  206. public BigDecimal getBudgetCost() {
  207. return budgetCost;
  208. }
  209. public void setBudgetCost(BigDecimal budgetCost) {
  210. this.budgetCost = budgetCost;
  211. }
  212. public Date getValidityPeriod() {
  213. return validityPeriod;
  214. }
  215. public void setValidityPeriod(Date validityPeriod) {
  216. this.validityPeriod = validityPeriod;
  217. }
  218. public String getEmployerId() {
  219. return employerId;
  220. }
  221. public void setEmployerId(String employerId) {
  222. this.employerId = employerId;
  223. }
  224. public String getEmployerName() {
  225. return employerName;
  226. }
  227. public void setEmployerName(String employerName) {
  228. this.employerName = employerName;
  229. }
  230. public String getEmployerAddress() {
  231. return employerAddress;
  232. }
  233. public void setEmployerAddress(String employerAddress) {
  234. this.employerAddress = employerAddress;
  235. }
  236. public String getEmployerContacts() {
  237. return employerContacts;
  238. }
  239. public void setEmployerContacts(String employerContacts) {
  240. this.employerContacts = employerContacts;
  241. }
  242. public String getEmployerContactsMobile() {
  243. return employerContactsMobile;
  244. }
  245. public void setEmployerContactsMobile(String employerContactsMobile) {
  246. this.employerContactsMobile = employerContactsMobile;
  247. }
  248. public String getEmployerContactsMailbox() {
  249. return employerContactsMailbox;
  250. }
  251. public void setEmployerContactsMailbox(String employerContactsMailbox) {
  252. this.employerContactsMailbox = employerContactsMailbox;
  253. }
  254. public Integer getContacts() {
  255. return contacts;
  256. }
  257. public void setContacts(Integer contacts) {
  258. this.contacts = contacts;
  259. }
  260. public Integer getStatus() {
  261. return status;
  262. }
  263. public void setStatus(Integer status) {
  264. this.status = status;
  265. }
  266. public Integer getReleaseStatus() {
  267. return releaseStatus;
  268. }
  269. public void setReleaseStatus(Integer releaseStatus) {
  270. this.releaseStatus = releaseStatus;
  271. }
  272. public Date getReleaseDate() {
  273. return releaseDate;
  274. }
  275. public void setReleaseDate(Date releaseDate) {
  276. this.releaseDate = releaseDate;
  277. }
  278. public String getPrincipalId() {
  279. return principalId;
  280. }
  281. public void setPrincipalId(String principalId) {
  282. this.principalId = principalId;
  283. }
  284. public Integer getSerialNumber() {
  285. return serialNumber;
  286. }
  287. public void setSerialNumber(Integer serialNumber) {
  288. this.serialNumber = serialNumber;
  289. }
  290. public Integer getAuditStatus() {
  291. return auditStatus;
  292. }
  293. public void setAuditStatus(Integer auditStatus) {
  294. this.auditStatus = auditStatus;
  295. }
  296. public String getTechBrokerId() {
  297. return techBrokerId;
  298. }
  299. public void setTechBrokerId(String techBrokerId) {
  300. this.techBrokerId = techBrokerId;
  301. }
  302. }