Demand.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. package com.goafanti.common.model;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import org.apache.commons.lang3.StringUtils;
  5. import org.apache.commons.lang3.time.DateFormatUtils;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  8. import com.goafanti.common.constant.AFTConstants;
  9. import com.goafanti.common.utils.FileUtils;
  10. import com.fasterxml.jackson.annotation.JsonIgnore;
  11. public class Demand {
  12. private String id;
  13. /**
  14. * 编号
  15. */
  16. private Integer serialNumber;
  17. /**
  18. * 数据类别(0-个人需求,1-单位需求)
  19. */
  20. private Integer dataCategory;
  21. /**
  22. * 名称
  23. */
  24. private String name;
  25. /**
  26. * 关键词
  27. */
  28. private String keyword;
  29. /**
  30. * 信息来源(0-平台采集,1-客户发布)
  31. */
  32. private Integer infoSources;
  33. /**
  34. * 行业类别下拉A
  35. */
  36. private Integer industryCategoryA;
  37. /**
  38. * 行业类别下拉B
  39. */
  40. private Integer industryCategoryB;
  41. /**
  42. * 行业类别下拉C
  43. */
  44. private Integer industryCategoryC;
  45. /**
  46. * 需求类型
  47. */
  48. private Integer demandType;
  49. /**
  50. * 问题说明
  51. */
  52. private String problemDes;
  53. /**
  54. * 技术指标要求
  55. */
  56. private String technicalRequirements;
  57. /**
  58. * 需求文件--图片URL
  59. */
  60. private String pictureUrl;
  61. /**
  62. * 需求文件--文本文件
  63. */
  64. private String textFileUrl;
  65. /**
  66. * 需求文件--视屏文件URL
  67. */
  68. private String videoUrl;
  69. /**
  70. * 固定预算
  71. */
  72. private BigDecimal fixedBudget;
  73. /**
  74. * 固定周期
  75. */
  76. private String fixedCycle;
  77. /**
  78. * 固定人数
  79. */
  80. private Integer peopleNumber;
  81. /**
  82. * 固定方案
  83. */
  84. private String fixedScheme;
  85. /**
  86. * 费用托管
  87. */
  88. private BigDecimal costEscrow;
  89. /**
  90. * 精品需求
  91. */
  92. private Integer boutique;
  93. /**
  94. * 预算费用
  95. */
  96. private BigDecimal budgetCost;
  97. /**
  98. * 有效期限
  99. */
  100. private Date validityPeriod;
  101. /**
  102. * 雇主客户ID
  103. */
  104. private String employerId;
  105. /**
  106. * 雇主名称
  107. */
  108. private String employerName;
  109. /**
  110. * 雇主地址
  111. */
  112. private String employerAddress;
  113. /**
  114. * 雇主联系人名称
  115. */
  116. private String employerContacts;
  117. /**
  118. * 雇主联系人电话
  119. */
  120. private String employerContactsMobile;
  121. /**
  122. * 雇主联系人邮箱
  123. */
  124. private String employerContactsMailbox;
  125. /**
  126. * 需求状态(0-进行中,1-未解决,2-已解决)
  127. */
  128. private Integer status;
  129. /**
  130. * 是否发布(0-未发布,1-发布)
  131. */
  132. private Integer releaseStatus;
  133. /**
  134. * 发布时间
  135. */
  136. private Date releaseDate;
  137. /**
  138. * 需求记录创建时间
  139. */
  140. private Date createTime;
  141. /**
  142. * 负责人(营销员)
  143. */
  144. private String principalId;
  145. /**
  146. * 删除标记
  147. */
  148. private Integer deletedSign;
  149. /**
  150. * 审核状态
  151. */
  152. private Integer auditStatus;
  153. /**
  154. * 技术经纪人ID
  155. */
  156. private String techBrokerId;
  157. /**
  158. * 备注
  159. */
  160. private String remark;
  161. /**
  162. * 加急天数
  163. */
  164. private Integer urgentDays;
  165. /**
  166. * 加急报酬
  167. */
  168. private BigDecimal urgentMoney;
  169. private String orderCount;
  170. private String orderIntentionCount;
  171. private String contacts;
  172. private String contactMobile;
  173. public String getOrderCount() {
  174. return orderCount;
  175. }
  176. public void setOrderCount(String orderCount) {
  177. this.orderCount = orderCount;
  178. }
  179. public String getOrderIntentionCount() {
  180. return orderIntentionCount;
  181. }
  182. public void setOrderIntentionCount(String orderIntentionCount) {
  183. this.orderIntentionCount = orderIntentionCount;
  184. }
  185. public String getRemark() {
  186. return remark;
  187. }
  188. public void setRemark(String remark) {
  189. this.remark = remark;
  190. }
  191. public String getId() {
  192. return id;
  193. }
  194. public void setId(String id) {
  195. this.id = id;
  196. }
  197. public Integer getSerialNumber() {
  198. return serialNumber;
  199. }
  200. public void setSerialNumber(Integer serialNumber) {
  201. this.serialNumber = serialNumber;
  202. }
  203. @JsonFormat(shape = Shape.STRING)
  204. public Integer getDataCategory() {
  205. return dataCategory;
  206. }
  207. public void setDataCategory(Integer dataCategory) {
  208. this.dataCategory = dataCategory;
  209. }
  210. public String getName() {
  211. return name;
  212. }
  213. public void setName(String name) {
  214. this.name = name;
  215. }
  216. public String getKeyword() {
  217. return keyword;
  218. }
  219. public void setKeyword(String keyword) {
  220. this.keyword = keyword;
  221. }
  222. @JsonFormat(shape = Shape.STRING)
  223. public Integer getInfoSources() {
  224. return infoSources;
  225. }
  226. public void setInfoSources(Integer infoSources) {
  227. this.infoSources = infoSources;
  228. }
  229. public Integer getIndustryCategoryA() {
  230. return industryCategoryA;
  231. }
  232. public void setIndustryCategoryA(Integer industryCategoryA) {
  233. this.industryCategoryA = industryCategoryA;
  234. }
  235. public Integer getIndustryCategoryB() {
  236. return industryCategoryB;
  237. }
  238. public void setIndustryCategoryB(Integer industryCategoryB) {
  239. this.industryCategoryB = industryCategoryB;
  240. }
  241. public Integer getIndustryCategoryC() {
  242. return industryCategoryC;
  243. }
  244. public void setIndustryCategoryC(Integer industryCategoryC) {
  245. this.industryCategoryC = industryCategoryC;
  246. }
  247. @JsonFormat(shape = Shape.STRING)
  248. public Integer getDemandType() {
  249. return demandType;
  250. }
  251. public void setDemandType(Integer demandType) {
  252. this.demandType = demandType;
  253. }
  254. public String getProblemDes() {
  255. return problemDes;
  256. }
  257. public void setProblemDes(String problemDes) {
  258. this.problemDes = problemDes;
  259. }
  260. public String getTechnicalRequirements() {
  261. return technicalRequirements;
  262. }
  263. public void setTechnicalRequirements(String technicalRequirements) {
  264. this.technicalRequirements = technicalRequirements;
  265. }
  266. public String getPictureUrl() {
  267. return pictureUrl;
  268. }
  269. public void setPictureUrl(String pictureUrl) {
  270. this.pictureUrl = pictureUrl;
  271. }
  272. public String getTextFileUrl() {
  273. return textFileUrl;
  274. }
  275. public void setTextFileUrl(String textFileUrl) {
  276. this.textFileUrl = textFileUrl;
  277. }
  278. public String getVideoUrl() {
  279. return videoUrl;
  280. }
  281. public void setVideoUrl(String videoUrl) {
  282. this.videoUrl = videoUrl;
  283. }
  284. public BigDecimal getFixedBudget() {
  285. return fixedBudget;
  286. }
  287. public void setFixedBudget(BigDecimal fixedBudget) {
  288. this.fixedBudget = fixedBudget;
  289. }
  290. public String getFixedCycle() {
  291. return fixedCycle;
  292. }
  293. public void setFixedCycle(String fixedCycle) {
  294. this.fixedCycle = fixedCycle;
  295. }
  296. public Integer getPeopleNumber() {
  297. return peopleNumber;
  298. }
  299. public void setPeopleNumber(Integer peopleNumber) {
  300. this.peopleNumber = peopleNumber;
  301. }
  302. public String getFixedScheme() {
  303. return fixedScheme;
  304. }
  305. public void setFixedScheme(String fixedScheme) {
  306. this.fixedScheme = fixedScheme;
  307. }
  308. public BigDecimal getCostEscrow() {
  309. return costEscrow;
  310. }
  311. public void setCostEscrow(BigDecimal costEscrow) {
  312. this.costEscrow = costEscrow;
  313. }
  314. public Integer getBoutique() {
  315. return boutique;
  316. }
  317. public void setBoutique(Integer boutique) {
  318. this.boutique = boutique;
  319. }
  320. public BigDecimal getBudgetCost() {
  321. return budgetCost;
  322. }
  323. public void setBudgetCost(BigDecimal budgetCost) {
  324. this.budgetCost = budgetCost;
  325. }
  326. public Date getValidityPeriod() {
  327. return validityPeriod;
  328. }
  329. public void setValidityPeriod(Date validityPeriod) {
  330. this.validityPeriod = validityPeriod;
  331. }
  332. public String getEmployerId() {
  333. return employerId;
  334. }
  335. public void setEmployerId(String employerId) {
  336. this.employerId = employerId;
  337. }
  338. public String getEmployerName() {
  339. return employerName;
  340. }
  341. public void setEmployerName(String employerName) {
  342. this.employerName = employerName;
  343. }
  344. public String getEmployerAddress() {
  345. return employerAddress;
  346. }
  347. public void setEmployerAddress(String employerAddress) {
  348. this.employerAddress = employerAddress;
  349. }
  350. public String getEmployerContacts() {
  351. return employerContacts;
  352. }
  353. public void setEmployerContacts(String employerContacts) {
  354. this.employerContacts = employerContacts;
  355. }
  356. public String getEmployerContactsMobile() {
  357. return employerContactsMobile;
  358. }
  359. public void setEmployerContactsMobile(String employerContactsMobile) {
  360. this.employerContactsMobile = employerContactsMobile;
  361. }
  362. public String getEmployerContactsMailbox() {
  363. return employerContactsMailbox;
  364. }
  365. public void setEmployerContactsMailbox(String employerContactsMailbox) {
  366. this.employerContactsMailbox = employerContactsMailbox;
  367. }
  368. public String getContacts() {
  369. return contacts;
  370. }
  371. public void setContacts(String contacts) {
  372. this.contacts = contacts;
  373. }
  374. @JsonFormat(shape = Shape.STRING)
  375. public Integer getStatus() {
  376. return status;
  377. }
  378. public void setStatus(Integer status) {
  379. this.status = status;
  380. }
  381. @JsonFormat(shape = Shape.STRING)
  382. public Integer getReleaseStatus() {
  383. return releaseStatus;
  384. }
  385. public void setReleaseStatus(Integer releaseStatus) {
  386. this.releaseStatus = releaseStatus;
  387. }
  388. public Date getReleaseDate() {
  389. return releaseDate;
  390. }
  391. public void setReleaseDate(Date releaseDate) {
  392. this.releaseDate = releaseDate;
  393. }
  394. public Date getCreateTime() {
  395. return createTime;
  396. }
  397. public void setCreateTime(Date createTime) {
  398. this.createTime = createTime;
  399. }
  400. public String getCreateTimeFormattedDate() {
  401. if (this.createTime == null) {
  402. return null;
  403. } else {
  404. return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
  405. }
  406. }
  407. public String getPrincipalId() {
  408. return principalId;
  409. }
  410. public void setPrincipalId(String principalId) {
  411. this.principalId = principalId;
  412. }
  413. @JsonIgnore
  414. public Integer getDeletedSign() {
  415. return deletedSign;
  416. }
  417. public void setDeletedSign(Integer deletedSign) {
  418. this.deletedSign = deletedSign;
  419. }
  420. @JsonFormat(shape = Shape.STRING)
  421. public Integer getAuditStatus() {
  422. return auditStatus;
  423. }
  424. public void setAuditStatus(Integer auditStatus) {
  425. this.auditStatus = auditStatus;
  426. }
  427. public String getTechBrokerId() {
  428. return techBrokerId;
  429. }
  430. public void setTechBrokerId(String techBrokerId) {
  431. this.techBrokerId = techBrokerId;
  432. }
  433. public String getValidityPeriodFormattedDate() {
  434. if (this.validityPeriod == null) {
  435. return null;
  436. } else {
  437. return DateFormatUtils.format(this.getValidityPeriod(), AFTConstants.YYYYMMDD);
  438. }
  439. }
  440. public void setValidityPeriodFormattedDate(String validityPeriodFormattedDate) {
  441. }
  442. public String getReleaseDateFormattedDate() {
  443. if (this.releaseDate == null) {
  444. return null;
  445. } else {
  446. return DateFormatUtils.format(this.getReleaseDate(), AFTConstants.YYYYMMDD);
  447. }
  448. }
  449. public void setReleaseDateFormattedDate(String releaseDateFormattedDate) {
  450. }
  451. public String getTextFileDownloadFileName() {
  452. if (StringUtils.isBlank(this.textFileUrl)) {
  453. return null;
  454. } else {
  455. return FileUtils.getDownloadFileName(this.textFileUrl);
  456. }
  457. }
  458. public void setTextFileUrlDownloadFileName(String textFileDownloadFileName) {
  459. }
  460. public Integer getUrgentDays() {
  461. return urgentDays;
  462. }
  463. public void setUrgentDays(Integer urgentDays) {
  464. this.urgentDays = urgentDays;
  465. }
  466. public void setUrgentDays(String urgentDays) {
  467. this.urgentDays = Integer.valueOf(urgentDays);
  468. }
  469. public BigDecimal getUrgentMoney() {
  470. return urgentMoney;
  471. }
  472. public void setUrgentMoney(BigDecimal urgentMoney) {
  473. this.urgentMoney = urgentMoney;
  474. }
  475. public String getContactMobile() {
  476. return contactMobile;
  477. }
  478. public void setContactMobile(String contactMobile) {
  479. this.contactMobile = contactMobile;
  480. }
  481. }