OrgActivity.java 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. package com.goafanti.common.model;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import org.apache.commons.lang3.StringUtils;
  5. import org.apache.commons.lang3.time.DateFormatUtils;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  8. import com.fasterxml.jackson.annotation.JsonIgnore;
  9. import com.goafanti.common.constant.AFTConstants;
  10. import com.goafanti.common.utils.FileUtils;
  11. public class OrgActivity {
  12. private String id;
  13. private String uid;
  14. /**
  15. * 研发活动编号
  16. */
  17. private String activityNumber;
  18. /**
  19. * 研发活动名称
  20. */
  21. private String activityName;
  22. /**
  23. * 开始日期
  24. */
  25. private Date startDate;
  26. /**
  27. * 结束日期
  28. */
  29. private Date endDate;
  30. /**
  31. * 参与人员
  32. */
  33. private String participant;
  34. /**
  35. * 是否是内部立项
  36. */
  37. private Integer projectMode;
  38. /**
  39. * 技术领域1st select
  40. */
  41. private String technicalField1;
  42. /**
  43. * 技术领域2nd select
  44. */
  45. private String technicalField2;
  46. /**
  47. * 技术领域3rd select
  48. */
  49. private String technicalField3;
  50. /**
  51. * 技术来源
  52. */
  53. private Integer technicalSource;
  54. /**
  55. * 知识产权编号
  56. */
  57. private String intellectualPropertyNumber;
  58. /**
  59. * 研发经费总预算(万元)
  60. */
  61. private BigDecimal budget;
  62. /**
  63. * 第一年研发经费支出(万元)
  64. */
  65. private BigDecimal firstYearExpenditure;
  66. /**
  67. * 第二年研发经费支出(万元)
  68. */
  69. private BigDecimal secondYearExpenditure;
  70. /**
  71. * 第三年研发经费支出(万元)
  72. */
  73. private BigDecimal thirdYearExpenditure;
  74. /**
  75. * 目的及组织实施方式
  76. */
  77. private String implement;
  78. /**
  79. * 核心技术及创新点
  80. */
  81. private String technologyInnovation;
  82. /**
  83. * 取得的阶段性成果
  84. */
  85. private String achievement;
  86. /**
  87. * 立项证明材料URL
  88. */
  89. private String proofUrl;
  90. /**
  91. * 删除标记
  92. */
  93. private Integer deletedSign;
  94. public String getId() {
  95. return id;
  96. }
  97. public void setId(String id) {
  98. this.id = id;
  99. }
  100. public String getUid() {
  101. return uid;
  102. }
  103. public void setUid(String uid) {
  104. this.uid = uid;
  105. }
  106. public String getActivityNumber() {
  107. return activityNumber;
  108. }
  109. public void setActivityNumber(String activityNumber) {
  110. this.activityNumber = activityNumber;
  111. }
  112. public String getActivityName() {
  113. return activityName;
  114. }
  115. public void setActivityName(String activityName) {
  116. this.activityName = activityName;
  117. }
  118. public Date getStartDate() {
  119. return startDate;
  120. }
  121. public void setStartDate(Date startDate) {
  122. this.startDate = startDate;
  123. }
  124. public Date getEndDate() {
  125. return endDate;
  126. }
  127. public String getParticipant() {
  128. return participant;
  129. }
  130. public void setParticipant(String participant) {
  131. this.participant = participant;
  132. }
  133. public void setEndDate(Date endDate) {
  134. this.endDate = endDate;
  135. }
  136. public String getTechnicalField1() {
  137. return technicalField1;
  138. }
  139. public void setTechnicalField1(String technicalField1) {
  140. this.technicalField1 = technicalField1;
  141. }
  142. public String getTechnicalField2() {
  143. return technicalField2;
  144. }
  145. public void setTechnicalField2(String technicalField2) {
  146. this.technicalField2 = technicalField2;
  147. }
  148. public String getTechnicalField3() {
  149. return technicalField3;
  150. }
  151. public void setTechnicalField3(String technicalField3) {
  152. this.technicalField3 = technicalField3;
  153. }
  154. public Integer getTechnicalSource() {
  155. return technicalSource;
  156. }
  157. public void setTechnicalSource(Integer technicalSource) {
  158. this.technicalSource = technicalSource;
  159. }
  160. public String getIntellectualPropertyNumber() {
  161. return intellectualPropertyNumber;
  162. }
  163. public void setIntellectualPropertyNumber(String intellectualPropertyNumber) {
  164. this.intellectualPropertyNumber = intellectualPropertyNumber;
  165. }
  166. public String getImplement() {
  167. return implement;
  168. }
  169. public void setImplement(String implement) {
  170. this.implement = implement;
  171. }
  172. public String getTechnologyInnovation() {
  173. return technologyInnovation;
  174. }
  175. public void setTechnologyInnovation(String technologyInnovation) {
  176. this.technologyInnovation = technologyInnovation;
  177. }
  178. public String getAchievement() {
  179. return achievement;
  180. }
  181. public void setAchievement(String achievement) {
  182. this.achievement = achievement;
  183. }
  184. public BigDecimal getBudget() {
  185. return budget;
  186. }
  187. public void setBudget(BigDecimal budget) {
  188. this.budget = budget;
  189. }
  190. public BigDecimal getFirstYearExpenditure() {
  191. return firstYearExpenditure;
  192. }
  193. public void setFirstYearExpenditure(BigDecimal firstYearExpenditure) {
  194. this.firstYearExpenditure = firstYearExpenditure;
  195. }
  196. public BigDecimal getSecondYearExpenditure() {
  197. return secondYearExpenditure;
  198. }
  199. public void setSecondYearExpenditure(BigDecimal secondYearExpenditure) {
  200. this.secondYearExpenditure = secondYearExpenditure;
  201. }
  202. public BigDecimal getThirdYearExpenditure() {
  203. return thirdYearExpenditure;
  204. }
  205. public void setThirdYearExpenditure(BigDecimal thirdYearExpenditure) {
  206. this.thirdYearExpenditure = thirdYearExpenditure;
  207. }
  208. @JsonFormat(shape = Shape.STRING)
  209. public Integer getProjectMode() {
  210. return projectMode;
  211. }
  212. public void setProjectMode(Integer projectMode) {
  213. this.projectMode = projectMode;
  214. }
  215. public String getProofUrl() {
  216. return proofUrl;
  217. }
  218. public void setProofUrl(String proofUrl) {
  219. this.proofUrl = proofUrl;
  220. }
  221. @JsonIgnore
  222. public Integer getDeletedSign() {
  223. return deletedSign;
  224. }
  225. public void setDeletedSign(Integer deletedSign) {
  226. this.deletedSign = deletedSign;
  227. }
  228. public String getStartDateFormattedDate(){
  229. if (this.startDate == null) {
  230. return null;
  231. } else {
  232. return DateFormatUtils.format(this.getStartDate(), AFTConstants.YYYYMMDD);
  233. }
  234. }
  235. public void setStartDateFormattedDate(String startDateFormattedDate){
  236. }
  237. public String getEndDateFormattedDate(){
  238. if (this.endDate == null) {
  239. return null;
  240. } else {
  241. return DateFormatUtils.format(this.getEndDate(), AFTConstants.YYYYMMDD);
  242. }
  243. }
  244. public void setEndDateFormattedDate(String endDateFormattedDate){
  245. }
  246. //立项证明材料
  247. public String getProofDownloadFileName(){
  248. if (StringUtils.isBlank(this.proofUrl)){
  249. return null;
  250. } else {
  251. return (null == this.activityName) ? "" : this.activityName +FileUtils.getDownloadFileName(this.proofUrl);
  252. }
  253. }
  254. public void setProofDownloadFileName(String proofDownloadFileName){
  255. }
  256. }