BlockInfo.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import java.util.Date;
  6. import javax.persistence.*;
  7. @Table(name = "block_info")
  8. public class BlockInfo extends MiniserviceBaseModel implements Serializable {
  9. @Id
  10. private String id;
  11. @Column(name = "block_addr")
  12. private String blockAddr;
  13. private String uid;
  14. @Column(name = "create_time")
  15. private Date createTime;
  16. @Column(name = "update_time")
  17. private Date updateTime;
  18. /**
  19. * 文件ID
  20. */
  21. @Column(name = "file_id")
  22. private String fileId;
  23. @Column(name = "block_height")
  24. private Integer blockHeight;
  25. @Column(name = "block_txid")
  26. private String blockTxid;
  27. @Column(name = "block_busiid")
  28. private String blockBusiid;
  29. /**
  30. * 0-不上链 1-开启上链
  31. */
  32. @Column(name = "upchain_switch")
  33. private String upchainSwitch;
  34. /**
  35. * 上链时间
  36. */
  37. @Column(name = "block_timestamp")
  38. private BigDecimal blockTimestamp;
  39. /**
  40. * 文件hash
  41. */
  42. @Column(name = "file_hash")
  43. private String fileHash;
  44. /**
  45. * 存证函信息
  46. */
  47. @Column(name = "legal_letter_apply_msg")
  48. private String legalLetterApplyMsg;
  49. /**
  50. * 公证书信息
  51. */
  52. @Column(name = "notarization_apply_msg")
  53. private String notarizationApplyMsg;
  54. /**
  55. * 存证函申请时间
  56. */
  57. @Column(name = "legal_letter_apply_time")
  58. private Date legalLetterApplyTime;
  59. /**
  60. * 公证书申请时间
  61. */
  62. @Column(name = "notarization_apply_time")
  63. private Date notarizationApplyTime;
  64. /**
  65. * 存证函文件ID
  66. */
  67. @Column(name = "legal_letter_file_id")
  68. private String legalLetterFileId;
  69. /**
  70. * 公证书文件ID
  71. */
  72. @Column(name = "notarization_file_id")
  73. private String notarizationFileId;
  74. /**
  75. * 存证函文件时间
  76. */
  77. @Column(name = "legal_letter_file_time")
  78. private Date legalLetterFileTime;
  79. /**
  80. * 公证书文件时间
  81. */
  82. @Column(name = "notarization_file_time")
  83. private Date notarizationFileTime;
  84. /**
  85. * 存证函状态 0-提交
  86. */
  87. @Column(name = "legal_letter_apply_status")
  88. private String legalLetterApplyStatus;
  89. /**
  90. * 公证书状态 0-提交
  91. */
  92. @Column(name = "notarization_apply_status")
  93. private String notarizationApplyStatus;
  94. /**
  95. * 存证函申请人UID
  96. */
  97. @Column(name = "legal_letter_apply_uid")
  98. private String legalLetterApplyUid;
  99. /**
  100. * 公证书申请人UID
  101. */
  102. @Column(name = "notarization_apply_uid")
  103. private String notarizationApplyUid;
  104. @Column(name = "link_id")
  105. private String linkId;
  106. private static final long serialVersionUID = 1L;
  107. /**
  108. * @return id
  109. */
  110. public String getId() {
  111. return id;
  112. }
  113. /**
  114. * @param id
  115. */
  116. public void setId(String id) {
  117. this.id = id == null ? null : id.trim();
  118. }
  119. /**
  120. * @return block_addr
  121. */
  122. public String getBlockAddr() {
  123. return blockAddr;
  124. }
  125. /**
  126. * @param blockAddr
  127. */
  128. public void setBlockAddr(String blockAddr) {
  129. this.blockAddr = blockAddr == null ? null : blockAddr.trim();
  130. }
  131. /**
  132. * @return uid
  133. */
  134. public String getUid() {
  135. return uid;
  136. }
  137. /**
  138. * @param uid
  139. */
  140. public void setUid(String uid) {
  141. this.uid = uid == null ? null : uid.trim();
  142. }
  143. /**
  144. * @return create_time
  145. */
  146. public Date getCreateTime() {
  147. return createTime;
  148. }
  149. /**
  150. * @param createTime
  151. */
  152. public void setCreateTime(Date createTime) {
  153. this.createTime = createTime;
  154. }
  155. /**
  156. * @return update_time
  157. */
  158. public Date getUpdateTime() {
  159. return updateTime;
  160. }
  161. /**
  162. * @param updateTime
  163. */
  164. public void setUpdateTime(Date updateTime) {
  165. this.updateTime = updateTime;
  166. }
  167. /**
  168. * 获取文件ID
  169. *
  170. * @return file_id - 文件ID
  171. */
  172. public String getFileId() {
  173. return fileId;
  174. }
  175. /**
  176. * 设置文件ID
  177. *
  178. * @param fileId 文件ID
  179. */
  180. public void setFileId(String fileId) {
  181. this.fileId = fileId == null ? null : fileId.trim();
  182. }
  183. /**
  184. * @return block_height
  185. */
  186. public Integer getBlockHeight() {
  187. return blockHeight;
  188. }
  189. /**
  190. * @param blockHeight
  191. */
  192. public void setBlockHeight(Integer blockHeight) {
  193. this.blockHeight = blockHeight;
  194. }
  195. /**
  196. * @return block_txid
  197. */
  198. public String getBlockTxid() {
  199. return blockTxid;
  200. }
  201. /**
  202. * @param blockTxid
  203. */
  204. public void setBlockTxid(String blockTxid) {
  205. this.blockTxid = blockTxid == null ? null : blockTxid.trim();
  206. }
  207. /**
  208. * @return block_busiid
  209. */
  210. public String getBlockBusiid() {
  211. return blockBusiid;
  212. }
  213. /**
  214. * @param blockBusiid
  215. */
  216. public void setBlockBusiid(String blockBusiid) {
  217. this.blockBusiid = blockBusiid == null ? null : blockBusiid.trim();
  218. }
  219. /**
  220. * 获取0-不上链 1-开启上链
  221. *
  222. * @return upchain_switch - 0-不上链 1-开启上链
  223. */
  224. public String getUpchainSwitch() {
  225. return upchainSwitch;
  226. }
  227. /**
  228. * 设置0-不上链 1-开启上链
  229. *
  230. * @param upchainSwitch 0-不上链 1-开启上链
  231. */
  232. public void setUpchainSwitch(String upchainSwitch) {
  233. this.upchainSwitch = upchainSwitch == null ? null : upchainSwitch.trim();
  234. }
  235. /**
  236. * 获取上链时间
  237. *
  238. * @return block_timestamp - 上链时间
  239. */
  240. public BigDecimal getBlockTimestamp() {
  241. return blockTimestamp;
  242. }
  243. /**
  244. * 设置上链时间
  245. *
  246. * @param blockTimestamp 上链时间
  247. */
  248. public void setBlockTimestamp(BigDecimal blockTimestamp) {
  249. this.blockTimestamp = blockTimestamp;
  250. }
  251. /**
  252. * 获取文件hash
  253. *
  254. * @return file_hash - 文件hash
  255. */
  256. public String getFileHash() {
  257. return fileHash;
  258. }
  259. /**
  260. * 设置文件hash
  261. *
  262. * @param fileHash 文件hash
  263. */
  264. public void setFileHash(String fileHash) {
  265. this.fileHash = fileHash == null ? null : fileHash.trim();
  266. }
  267. /**
  268. * 获取存证函信息
  269. *
  270. * @return legal_letter_apply_msg - 存证函信息
  271. */
  272. public String getLegalLetterApplyMsg() {
  273. return legalLetterApplyMsg;
  274. }
  275. /**
  276. * 设置存证函信息
  277. *
  278. * @param legalLetterApplyMsg 存证函信息
  279. */
  280. public void setLegalLetterApplyMsg(String legalLetterApplyMsg) {
  281. this.legalLetterApplyMsg = legalLetterApplyMsg == null ? null : legalLetterApplyMsg.trim();
  282. }
  283. /**
  284. * 获取公证书信息
  285. *
  286. * @return notarization_apply_msg - 公证书信息
  287. */
  288. public String getNotarizationApplyMsg() {
  289. return notarizationApplyMsg;
  290. }
  291. /**
  292. * 设置公证书信息
  293. *
  294. * @param notarizationApplyMsg 公证书信息
  295. */
  296. public void setNotarizationApplyMsg(String notarizationApplyMsg) {
  297. this.notarizationApplyMsg = notarizationApplyMsg == null ? null : notarizationApplyMsg.trim();
  298. }
  299. /**
  300. * 获取存证函申请时间
  301. *
  302. * @return legal_letter_apply_time - 存证函申请时间
  303. */
  304. public Date getLegalLetterApplyTime() {
  305. return legalLetterApplyTime;
  306. }
  307. /**
  308. * 设置存证函申请时间
  309. *
  310. * @param legalLetterApplyTime 存证函申请时间
  311. */
  312. public void setLegalLetterApplyTime(Date legalLetterApplyTime) {
  313. this.legalLetterApplyTime = legalLetterApplyTime;
  314. }
  315. /**
  316. * 获取公证书申请时间
  317. *
  318. * @return notarization_apply_time - 公证书申请时间
  319. */
  320. public Date getNotarizationApplyTime() {
  321. return notarizationApplyTime;
  322. }
  323. /**
  324. * 设置公证书申请时间
  325. *
  326. * @param notarizationApplyTime 公证书申请时间
  327. */
  328. public void setNotarizationApplyTime(Date notarizationApplyTime) {
  329. this.notarizationApplyTime = notarizationApplyTime;
  330. }
  331. /**
  332. * 获取存证函文件ID
  333. *
  334. * @return legal_letter_file_id - 存证函文件ID
  335. */
  336. public String getLegalLetterFileId() {
  337. return legalLetterFileId;
  338. }
  339. /**
  340. * 设置存证函文件ID
  341. *
  342. * @param legalLetterFileId 存证函文件ID
  343. */
  344. public void setLegalLetterFileId(String legalLetterFileId) {
  345. this.legalLetterFileId = legalLetterFileId == null ? null : legalLetterFileId.trim();
  346. }
  347. /**
  348. * 获取公证书文件ID
  349. *
  350. * @return notarization_file_id - 公证书文件ID
  351. */
  352. public String getNotarizationFileId() {
  353. return notarizationFileId;
  354. }
  355. /**
  356. * 设置公证书文件ID
  357. *
  358. * @param notarizationFileId 公证书文件ID
  359. */
  360. public void setNotarizationFileId(String notarizationFileId) {
  361. this.notarizationFileId = notarizationFileId == null ? null : notarizationFileId.trim();
  362. }
  363. /**
  364. * 获取存证函文件时间
  365. *
  366. * @return legal_letter_file_time - 存证函文件时间
  367. */
  368. public Date getLegalLetterFileTime() {
  369. return legalLetterFileTime;
  370. }
  371. /**
  372. * 设置存证函文件时间
  373. *
  374. * @param legalLetterFileTime 存证函文件时间
  375. */
  376. public void setLegalLetterFileTime(Date legalLetterFileTime) {
  377. this.legalLetterFileTime = legalLetterFileTime;
  378. }
  379. /**
  380. * 获取公证书文件时间
  381. *
  382. * @return notarization_file_time - 公证书文件时间
  383. */
  384. public Date getNotarizationFileTime() {
  385. return notarizationFileTime;
  386. }
  387. /**
  388. * 设置公证书文件时间
  389. *
  390. * @param notarizationFileTime 公证书文件时间
  391. */
  392. public void setNotarizationFileTime(Date notarizationFileTime) {
  393. this.notarizationFileTime = notarizationFileTime;
  394. }
  395. /**
  396. * 获取存证函状态 0-提交
  397. *
  398. * @return legal_letter_apply_status - 存证函状态 0-提交
  399. */
  400. public String getLegalLetterApplyStatus() {
  401. return legalLetterApplyStatus;
  402. }
  403. /**
  404. * 设置存证函状态 0-提交
  405. *
  406. * @param legalLetterApplyStatus 存证函状态 0-提交
  407. */
  408. public void setLegalLetterApplyStatus(String legalLetterApplyStatus) {
  409. this.legalLetterApplyStatus = legalLetterApplyStatus == null ? null : legalLetterApplyStatus.trim();
  410. }
  411. /**
  412. * 获取公证书状态 0-提交
  413. *
  414. * @return notarization_apply_status - 公证书状态 0-提交
  415. */
  416. public String getNotarizationApplyStatus() {
  417. return notarizationApplyStatus;
  418. }
  419. /**
  420. * 设置公证书状态 0-提交
  421. *
  422. * @param notarizationApplyStatus 公证书状态 0-提交
  423. */
  424. public void setNotarizationApplyStatus(String notarizationApplyStatus) {
  425. this.notarizationApplyStatus = notarizationApplyStatus == null ? null : notarizationApplyStatus.trim();
  426. }
  427. /**
  428. * 获取存证函申请人UID
  429. *
  430. * @return legal_letter_apply_uid - 存证函申请人UID
  431. */
  432. public String getLegalLetterApplyUid() {
  433. return legalLetterApplyUid;
  434. }
  435. /**
  436. * 设置存证函申请人UID
  437. *
  438. * @param legalLetterApplyUid 存证函申请人UID
  439. */
  440. public void setLegalLetterApplyUid(String legalLetterApplyUid) {
  441. this.legalLetterApplyUid = legalLetterApplyUid == null ? null : legalLetterApplyUid.trim();
  442. }
  443. /**
  444. * 获取公证书申请人UID
  445. *
  446. * @return notarization_apply_uid - 公证书申请人UID
  447. */
  448. public String getNotarizationApplyUid() {
  449. return notarizationApplyUid;
  450. }
  451. /**
  452. * 设置公证书申请人UID
  453. *
  454. * @param notarizationApplyUid 公证书申请人UID
  455. */
  456. public void setNotarizationApplyUid(String notarizationApplyUid) {
  457. this.notarizationApplyUid = notarizationApplyUid == null ? null : notarizationApplyUid.trim();
  458. }
  459. /**
  460. * @return link_id
  461. */
  462. public String getLinkId() {
  463. return linkId;
  464. }
  465. /**
  466. * @param linkId
  467. */
  468. public void setLinkId(String linkId) {
  469. this.linkId = linkId == null ? null : linkId.trim();
  470. }
  471. }