OrgIntellectualProperty.java 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. package com.goafanti.common.model;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.StringUtils;
  4. import org.apache.commons.lang3.time.DateFormatUtils;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.fasterxml.jackson.annotation.JsonIgnore;
  7. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  8. import com.goafanti.common.constant.AFTConstants;
  9. import com.goafanti.common.utils.FileUtils;
  10. public class OrgIntellectualProperty {
  11. private String id;
  12. private String uid;
  13. private String pid;
  14. /**
  15. * 知识产权编号
  16. */
  17. private String intellectualPropertyNumber;
  18. /**
  19. * 知识产权名称
  20. */
  21. private String intellectualPropertyName;
  22. /**
  23. * 排序号
  24. */
  25. private String sortNumber;
  26. /**
  27. * 类别
  28. */
  29. private Integer catagory;
  30. /**
  31. * 获得方式
  32. */
  33. private Integer obtainWay;
  34. /**
  35. * 授权号
  36. */
  37. private String authorizationNumber;
  38. /**
  39. * 授权日期
  40. */
  41. private Date authorizationDate;
  42. /**
  43. * 0--Ⅰ类, 1--Ⅱ类
  44. */
  45. private Integer evaluationCategory;
  46. /**
  47. * 知识产权URL
  48. */
  49. private String propertyRightUrl;
  50. /**
  51. * 专利或软著稿件URL
  52. */
  53. private Integer type;
  54. /**
  55. * 删除标记
  56. */
  57. private Integer deletedSign;
  58. public String getId() {
  59. return id;
  60. }
  61. public void setId(String id) {
  62. this.id = id;
  63. }
  64. public String getUid() {
  65. return uid;
  66. }
  67. public void setUid(String uid) {
  68. this.uid = uid;
  69. }
  70. public String getPid() {
  71. return pid;
  72. }
  73. public void setPid(String pid) {
  74. this.pid = pid;
  75. }
  76. public String getIntellectualPropertyNumber() {
  77. return intellectualPropertyNumber;
  78. }
  79. public void setIntellectualPropertyNumber(String intellectualPropertyNumber) {
  80. this.intellectualPropertyNumber = intellectualPropertyNumber;
  81. }
  82. public String getIntellectualPropertyName() {
  83. return intellectualPropertyName;
  84. }
  85. public void setIntellectualPropertyName(String intellectualPropertyName) {
  86. this.intellectualPropertyName = intellectualPropertyName;
  87. }
  88. public String getSortNumber() {
  89. return sortNumber;
  90. }
  91. public void setSortNumber(String sortNumber) {
  92. this.sortNumber = sortNumber;
  93. }
  94. @JsonFormat(shape = Shape.STRING)
  95. public Integer getCatagory() {
  96. return catagory;
  97. }
  98. public void setCatagory(Integer catagory) {
  99. this.catagory = catagory;
  100. }
  101. @JsonFormat(shape = Shape.STRING)
  102. public Integer getObtainWay() {
  103. return obtainWay;
  104. }
  105. public void setObtainWay(Integer obtainWay) {
  106. this.obtainWay = obtainWay;
  107. }
  108. public String getAuthorizationNumber() {
  109. return authorizationNumber;
  110. }
  111. public void setAuthorizationNumber(String authorizationNumber) {
  112. this.authorizationNumber = authorizationNumber;
  113. }
  114. public Date getAuthorizationDate() {
  115. return authorizationDate;
  116. }
  117. public void setAuthorizationDate(Date authorizationDate) {
  118. this.authorizationDate = authorizationDate;
  119. }
  120. public String getPropertyRightUrl() {
  121. return propertyRightUrl;
  122. }
  123. public void setPropertyRightUrl(String propertyRightUrl) {
  124. this.propertyRightUrl = propertyRightUrl;
  125. }
  126. public Integer getType() {
  127. return type;
  128. }
  129. public void setType(Integer type) {
  130. this.type = type;
  131. }
  132. @JsonIgnore
  133. public Integer getEvaluationCategory() {
  134. return evaluationCategory;
  135. }
  136. public void setEvaluationCategory(Integer evaluationCategory) {
  137. this.evaluationCategory = evaluationCategory;
  138. }
  139. @JsonIgnore
  140. public Integer getDeletedSign() {
  141. return deletedSign;
  142. }
  143. public void setDeletedSign(Integer deletedSign) {
  144. this.deletedSign = deletedSign;
  145. }
  146. public String getAuthorizationDateFormattedDate(){
  147. if (this.authorizationDate == null) {
  148. return null;
  149. } else {
  150. return DateFormatUtils.format(this.getAuthorizationDate(), AFTConstants.YYYYMMDD);
  151. }
  152. }
  153. public void setAuthorizationDateFormattedDate(String authorizationDateFormattedDate){
  154. }
  155. //知识产权证明
  156. public String getPropertyRightDownloadFileName(){
  157. if (StringUtils.isBlank(this.propertyRightUrl)){
  158. return null;
  159. } else {
  160. return (null == this.intellectualPropertyName) ? "" : this.intellectualPropertyName +FileUtils.getDownloadFileName(this.propertyRightUrl);
  161. }
  162. }
  163. public void setPropertyRightDownloadFileName(String propertyRightDownloadFileName){
  164. }
  165. }