AchievementPartnerListBo.java 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. package com.goafanti.achievement.bo;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import org.apache.commons.lang3.time.DateFormatUtils;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  7. import com.goafanti.common.constant.AFTConstants;
  8. import com.goafanti.common.utils.StringUtils;
  9. public class AchievementPartnerListBo {
  10. private String id;
  11. /**
  12. * 编号
  13. */
  14. private Integer serialNumber;
  15. /**
  16. * 数据类别 (0--成果, 1--技术, 2--项目)
  17. */
  18. private Integer dataCategory;
  19. /**
  20. * 名称
  21. */
  22. private String name;
  23. /**
  24. * 关键词
  25. */
  26. private String keyword;
  27. /**
  28. * 类型(0--专利, 2--软著, 3--项目, 4--版权, 5--工业设计, 6--配方, 7--非标)
  29. */
  30. private Integer category;
  31. /**
  32. * 所有人类型(0-个人,1-组织)
  33. */
  34. private Integer ownerType;
  35. /**
  36. * 发布时间
  37. */
  38. private Date releaseDate;
  39. /**
  40. * 应用领域1
  41. */
  42. private Integer fieldA;
  43. /**
  44. * 应用领域2
  45. */
  46. private Integer fieldB;
  47. /**
  48. * 成熟度
  49. */
  50. private Integer maturity;
  51. /**
  52. * 议价方式
  53. */
  54. private Integer bargainingMode;
  55. /**
  56. * 标价
  57. */
  58. private BigDecimal transferPrice;
  59. /**
  60. * 描述
  61. */
  62. private String introduction;
  63. /**
  64. * 描述
  65. */
  66. private String technicalPictureUrl;
  67. /**
  68. * 成熟度中文描述
  69. */
  70. /**
  71. * 是否属于精品 0 - 否 , 1 - 是
  72. */
  73. private Integer boutique;
  74. private String maturityS;
  75. private String countInterest;
  76. private String buyIntention;
  77. /**
  78. * 所有人地址
  79. */
  80. private String ownerPostalAddress;
  81. public Integer getFieldA() {
  82. return fieldA;
  83. }
  84. public void setFieldA(Integer fieldA) {
  85. this.fieldA = fieldA;
  86. }
  87. public Integer getFieldB() {
  88. return fieldB;
  89. }
  90. public void setFieldB(Integer fieldB) {
  91. this.fieldB = fieldB;
  92. }
  93. public Integer getMaturity() {
  94. return maturity;
  95. }
  96. public void setMaturity(Integer maturity) {
  97. this.maturity = maturity;
  98. }
  99. public Integer getBargainingMode() {
  100. return bargainingMode;
  101. }
  102. public void setBargainingMode(Integer bargainingMode) {
  103. this.bargainingMode = bargainingMode;
  104. }
  105. public BigDecimal getTransferPrice() {
  106. return transferPrice;
  107. }
  108. public void setTransferPrice(BigDecimal transferPrice) {
  109. this.transferPrice = transferPrice;
  110. }
  111. public String getId() {
  112. return id;
  113. }
  114. public void setId(String id) {
  115. this.id = id;
  116. }
  117. public Integer getSerialNumber() {
  118. return serialNumber;
  119. }
  120. public void setSerialNumber(Integer serialNumber) {
  121. this.serialNumber = serialNumber;
  122. }
  123. @JsonFormat(shape = Shape.STRING)
  124. public Integer getDataCategory() {
  125. return dataCategory;
  126. }
  127. public void setDataCategory(Integer dataCategory) {
  128. this.dataCategory = dataCategory;
  129. }
  130. public String getName() {
  131. return name;
  132. }
  133. public void setName(String name) {
  134. this.name = name;
  135. }
  136. public String getKeyword() {
  137. return keyword;
  138. }
  139. public void setKeyword(String keyword) {
  140. this.keyword = keyword;
  141. }
  142. @JsonFormat(shape = Shape.STRING)
  143. public Integer getCategory() {
  144. return category;
  145. }
  146. public void setCategory(Integer category) {
  147. this.category = category;
  148. }
  149. @JsonFormat(shape = Shape.STRING)
  150. public Integer getOwnerType() {
  151. return ownerType;
  152. }
  153. public void setOwnerType(Integer ownerType) {
  154. this.ownerType = ownerType;
  155. }
  156. public Date getReleaseDate() {
  157. return releaseDate;
  158. }
  159. public void setReleaseDate(Date releaseDate) {
  160. this.releaseDate = releaseDate;
  161. }
  162. public String getReleaseDateFormattedDate() {
  163. if (this.releaseDate == null) {
  164. return null;
  165. } else {
  166. return DateFormatUtils.format(this.getReleaseDate(), AFTConstants.YYYYMMDDHHMMSS);
  167. }
  168. }
  169. public void setReleaseDateFormattedDate(String releaseDateFormattedDate) {
  170. }
  171. public String getIntroduction() {
  172. return introduction;
  173. }
  174. public void setIntroduction(String introduction) {
  175. this.introduction = introduction;
  176. }
  177. public String getTechnicalPictureUrl() {
  178. return technicalPictureUrl;
  179. }
  180. public void setTechnicalPictureUrl(String technicalPictureUrl) {
  181. this.technicalPictureUrl = technicalPictureUrl;
  182. }
  183. public String getMaturityS() {
  184. return maturityS;
  185. }
  186. public void setMaturityS(String maturityS) {
  187. this.maturityS = maturityS;
  188. }
  189. public String getCountInterest() {
  190. return String.valueOf(Integer.valueOf(countInterest)+20);
  191. }
  192. public void setCountInterest(String countInterest) {
  193. this.countInterest = countInterest;
  194. }
  195. public Integer getBoutique() {
  196. return boutique;
  197. }
  198. public void setBoutique(Integer boutique) {
  199. this.boutique = boutique;
  200. }
  201. public String getBuyIntention() {
  202. return buyIntention;
  203. }
  204. public void setBuyIntention(String buyIntention) {
  205. this.buyIntention = buyIntention;
  206. }
  207. public String getOwnerPostalAddress() {
  208. if (StringUtils.isEmpty(ownerPostalAddress)) {
  209. return "湖南长沙";
  210. }
  211. return ownerPostalAddress;
  212. }
  213. public void setOwnerPostalAddress(String ownerPostalAddress) {
  214. this.ownerPostalAddress = ownerPostalAddress;
  215. }
  216. }