DemandListBo.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. //demandType String 映射
  15. private String demandTypeS;
  16. //有效期
  17. private Date validityPeriod;
  18. //是否关注
  19. private String interest;
  20. //关注数量
  21. private String countInterest;
  22. //企业名称
  23. private String employerName;
  24. private BigDecimal fundForPersonnel;
  25. private BigDecimal fundForCrowd;
  26. private String firstPic;
  27. public String getFirstPic() {
  28. return firstPic;
  29. }
  30. public void setFirstPic(String firstPic) {
  31. this.firstPic = firstPic;
  32. }
  33. public String getDemandTypeS() {
  34. return demandTypeS;
  35. }
  36. public void setDemandTypeS(String demandTypeS) {
  37. this.demandTypeS = demandTypeS;
  38. }
  39. public String getEmployerName() {
  40. return employerName;
  41. }
  42. public void setEmployerName(String employerName) {
  43. this.employerName = employerName;
  44. }
  45. public BigDecimal getFundForPersonnel() {
  46. return fundForPersonnel;
  47. }
  48. public void setFundForPersonnel(BigDecimal fundForPersonnel) {
  49. this.fundForPersonnel = fundForPersonnel;
  50. }
  51. public BigDecimal getFundForCrowd() {
  52. return fundForCrowd;
  53. }
  54. public void setFundForCrowd(BigDecimal fundForCrowd) {
  55. this.fundForCrowd = fundForCrowd;
  56. }
  57. public String getCountInterest() {
  58. return countInterest;
  59. }
  60. public void setCountInterest(String countInterest) {
  61. this.countInterest = countInterest;
  62. }
  63. public String getInterest() {
  64. return interest;
  65. }
  66. public void setInterest(String interest) {
  67. this.interest = interest;
  68. }
  69. public Integer getBoutique() {
  70. return boutique;
  71. }
  72. public void setBoutique(Integer boutique) {
  73. this.boutique = boutique;
  74. }
  75. public String getDemandTypeString() {
  76. return demandTypeS;
  77. }
  78. public void setDemandTypeString(String demandTypeString) {
  79. this.demandTypeS = demandTypeString;
  80. }
  81. public Date getValidityPeriod() {
  82. return validityPeriod;
  83. }
  84. public void setValidityPeriod(Date validityPeriod) {
  85. this.validityPeriod = validityPeriod;
  86. }
  87. public String getIndustryCategory1() {
  88. return industryCategory1;
  89. }
  90. public void setIndustryCategory1(String industryCategory1) {
  91. this.industryCategory1 = industryCategory1;
  92. }
  93. public String getIndustryCategory2() {
  94. return industryCategory2;
  95. }
  96. public void setIndustryCategory2(String industryCategory2) {
  97. this.industryCategory2 = industryCategory2;
  98. }
  99. public String getIndustryCategory3() {
  100. return industryCategory3;
  101. }
  102. public void setIndustryCategory3(String industryCategory3) {
  103. this.industryCategory3 = industryCategory3;
  104. }
  105. @Override
  106. public void setDemandType(Integer demandType) {
  107. // TODO Auto-generated method stub
  108. super.setDemandType(demandType);
  109. setDemandTypeS(DemandTypeEnum.find(demandType.intValue()).getName());
  110. }
  111. @Override
  112. public void setPictureUrl(String pictureUrl) {
  113. // TODO Auto-generated method stub
  114. super.setPictureUrl(pictureUrl);
  115. if(pictureUrl!=null && pictureUrl.contains(".")) {
  116. setFirstPic(pictureUrl.split(",")[0]);
  117. }
  118. }
  119. }