DemandListBo.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. package com.goafanti.demand.bo;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.goafanti.common.enums.DemandTypeEnum;
  5. public class DemandListBo extends InputDemand{
  6. //industryCategoryA String 映射
  7. private String industryCategory1;
  8. //industryCategoryB String 映射
  9. private String industryCategory2;
  10. //industryCategoryC String 映射
  11. private String industryCategory3;
  12. //是否精品 0-false 1-true
  13. private Integer boutique;
  14. //是否删除 0 未删除 1 已删除
  15. private Integer deletedSign;
  16. //demandType String 映射
  17. private String demandTypeS;
  18. //有效
  19. private Date validityPeriod;
  20. //关注数量
  21. private Integer interestCount;
  22. //企业名称
  23. private String employerName;
  24. private BigDecimal fundForPersonnel;
  25. private BigDecimal fundForCrowd;
  26. private String firstPic;
  27. private Integer interested;
  28. public String getFirstPic() {
  29. return firstPic;
  30. }
  31. public void setFirstPic(String firstPic) {
  32. this.firstPic = firstPic;
  33. }
  34. public String getDemandTypeS() {
  35. return demandTypeS;
  36. }
  37. public void setDemandTypeS(String demandTypeS) {
  38. this.demandTypeS = demandTypeS;
  39. }
  40. public String getEmployerName() {
  41. return employerName;
  42. }
  43. public void setEmployerName(String employerName) {
  44. this.employerName = employerName;
  45. }
  46. public BigDecimal getFundForPersonnel() {
  47. return fundForPersonnel;
  48. }
  49. public void setFundForPersonnel(BigDecimal fundForPersonnel) {
  50. this.fundForPersonnel = fundForPersonnel;
  51. }
  52. public BigDecimal getFundForCrowd() {
  53. return fundForCrowd;
  54. }
  55. public void setFundForCrowd(BigDecimal fundForCrowd) {
  56. this.fundForCrowd = fundForCrowd;
  57. }
  58. public Integer getCountInterest() {
  59. return interestCount;
  60. }
  61. public void setCountInterest(Integer interestCount) {
  62. this.interestCount = interestCount;
  63. }
  64. public Integer getBoutique() {
  65. return boutique;
  66. }
  67. public void setBoutique(Integer boutique) {
  68. this.boutique = boutique;
  69. }
  70. public String getDemandTypeString() {
  71. return demandTypeS;
  72. }
  73. public void setDemandTypeString(String demandTypeString) {
  74. this.demandTypeS = demandTypeString;
  75. }
  76. public Date getValidityPeriod() {
  77. return validityPeriod;
  78. }
  79. public void setValidityPeriod(Date validityPeriod) {
  80. this.validityPeriod = validityPeriod;
  81. }
  82. public String getIndustryCategory1() {
  83. return industryCategory1;
  84. }
  85. public void setIndustryCategory1(String industryCategory1) {
  86. this.industryCategory1 = industryCategory1;
  87. }
  88. public String getIndustryCategory2() {
  89. return industryCategory2;
  90. }
  91. public void setIndustryCategory2(String industryCategory2) {
  92. this.industryCategory2 = industryCategory2;
  93. }
  94. public String getIndustryCategory3() {
  95. return industryCategory3;
  96. }
  97. public void setIndustryCategory3(String industryCategory3) {
  98. this.industryCategory3 = industryCategory3;
  99. }
  100. public Integer getDeletedSign() {
  101. return deletedSign;
  102. }
  103. public void setDeletedSign(Integer deletedSign) {
  104. this.deletedSign = deletedSign;
  105. }
  106. @Override
  107. public void setDemandType(Integer demandType) {
  108. // TODO Auto-generated method stub
  109. super.setDemandType(demandType);
  110. setDemandTypeS(DemandTypeEnum.find(demandType.intValue()).getName());
  111. }
  112. @Override
  113. public void setPictureUrl(String pictureUrl) {
  114. // TODO Auto-generated method stub
  115. super.setPictureUrl(pictureUrl);
  116. if(pictureUrl!=null && pictureUrl.contains(".")) {
  117. setFirstPic(pictureUrl.split(",")[0]);
  118. }
  119. }
  120. public Integer getInterested() {
  121. return interested;
  122. }
  123. public void setInterested(Integer interested) {
  124. this.interested = interested;
  125. }
  126. }