AchievementPartnerListBo.java 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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. * 创建时间
  41. */
  42. private Date createTime;
  43. /**
  44. * 应用领域1
  45. */
  46. private Integer fieldA;
  47. /**
  48. * 应用领域2
  49. */
  50. private Integer fieldB;
  51. /**
  52. * 成熟度
  53. */
  54. private Integer maturity;
  55. /**
  56. * 议价方式
  57. */
  58. private Integer bargainingMode;
  59. /**
  60. * 标价
  61. */
  62. private BigDecimal transferPrice;
  63. /**
  64. * 描述
  65. */
  66. private String introduction;
  67. /**
  68. * 描述
  69. */
  70. private String technicalPictureUrl;
  71. /**
  72. * 成熟度中文描述
  73. */
  74. /**
  75. * 是否属于精品 0 - 否 , 1 - 是
  76. */
  77. private Integer boutique;
  78. private String maturityS;
  79. private String countInterest;
  80. private String buyIntention;
  81. /**
  82. * 所有人地址
  83. */
  84. private String ownerPostalAddress;
  85. public Integer getFieldA() {
  86. return fieldA;
  87. }
  88. public void setFieldA(Integer fieldA) {
  89. this.fieldA = fieldA;
  90. }
  91. public Integer getFieldB() {
  92. return fieldB;
  93. }
  94. public void setFieldB(Integer fieldB) {
  95. this.fieldB = fieldB;
  96. }
  97. public Integer getMaturity() {
  98. return maturity;
  99. }
  100. public void setMaturity(Integer maturity) {
  101. this.maturity = maturity;
  102. }
  103. public Integer getBargainingMode() {
  104. return bargainingMode;
  105. }
  106. public void setBargainingMode(Integer bargainingMode) {
  107. this.bargainingMode = bargainingMode;
  108. }
  109. public BigDecimal getTransferPrice() {
  110. return transferPrice;
  111. }
  112. public void setTransferPrice(BigDecimal transferPrice) {
  113. this.transferPrice = transferPrice;
  114. }
  115. public String getId() {
  116. return id;
  117. }
  118. public void setId(String id) {
  119. this.id = id;
  120. }
  121. public Integer getSerialNumber() {
  122. return serialNumber;
  123. }
  124. public void setSerialNumber(Integer serialNumber) {
  125. this.serialNumber = serialNumber;
  126. }
  127. @JsonFormat(shape = Shape.STRING)
  128. public Integer getDataCategory() {
  129. return dataCategory;
  130. }
  131. public void setDataCategory(Integer dataCategory) {
  132. this.dataCategory = dataCategory;
  133. }
  134. public String getName() {
  135. return name;
  136. }
  137. public void setName(String name) {
  138. this.name = name;
  139. }
  140. public String getKeyword() {
  141. return keyword;
  142. }
  143. public void setKeyword(String keyword) {
  144. this.keyword = keyword;
  145. }
  146. @JsonFormat(shape = Shape.STRING)
  147. public Integer getCategory() {
  148. return category;
  149. }
  150. public void setCategory(Integer category) {
  151. this.category = category;
  152. }
  153. @JsonFormat(shape = Shape.STRING)
  154. public Integer getOwnerType() {
  155. return ownerType;
  156. }
  157. public void setOwnerType(Integer ownerType) {
  158. this.ownerType = ownerType;
  159. }
  160. public Date getReleaseDate() {
  161. return releaseDate;
  162. }
  163. public void setReleaseDate(Date releaseDate) {
  164. this.releaseDate = releaseDate;
  165. }
  166. public String getReleaseDateFormattedDate() {
  167. if (this.releaseDate == null) {
  168. return null;
  169. } else {
  170. return DateFormatUtils.format(this.getReleaseDate(), AFTConstants.YYYYMMDDHHMMSS);
  171. }
  172. }
  173. public void setReleaseDateFormattedDate(String releaseDateFormattedDate) {
  174. }
  175. public String getIntroduction() {
  176. return introduction;
  177. }
  178. public void setIntroduction(String introduction) {
  179. this.introduction = introduction;
  180. }
  181. public String getTechnicalPictureUrl() {
  182. return technicalPictureUrl;
  183. }
  184. public void setTechnicalPictureUrl(String technicalPictureUrl) {
  185. this.technicalPictureUrl = technicalPictureUrl;
  186. }
  187. public String getMaturityS() {
  188. return maturityS;
  189. }
  190. public void setMaturityS(String maturityS) {
  191. this.maturityS = maturityS;
  192. }
  193. public String getCountInterest() {
  194. return String.valueOf(Integer.valueOf(countInterest)+20);
  195. }
  196. public void setCountInterest(String countInterest) {
  197. this.countInterest =countInterest;
  198. }
  199. public Integer getBoutique() {
  200. return boutique;
  201. }
  202. public void setBoutique(Integer boutique) {
  203. this.boutique = boutique;
  204. }
  205. public String getBuyIntention() {
  206. return buyIntention;
  207. }
  208. public void setBuyIntention(String buyIntention) {
  209. this.buyIntention = buyIntention;
  210. }
  211. public String getOwnerPostalAddress() {
  212. if (StringUtils.isEmpty(ownerPostalAddress)) {
  213. return "湖南长沙";
  214. }
  215. return ownerPostalAddress;
  216. }
  217. public void setOwnerPostalAddress(String ownerPostalAddress) {
  218. this.ownerPostalAddress = ownerPostalAddress;
  219. }
  220. public Date getCreateTime() {
  221. return createTime;
  222. }
  223. public void setCreateTime(Date createTime) {
  224. this.createTime = createTime;
  225. }
  226. public String getCreateTimeFormattedDate() {
  227. if (this.createTime == null) {
  228. return null;
  229. } else {
  230. return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
  231. }
  232. }
  233. }