ContractLog.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. package com.goafanti.common.model;
  2. import java.util.Date;
  3. import org.apache.commons.lang3.time.DateFormatUtils;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.fasterxml.jackson.annotation.JsonFormat.Shape;
  6. import com.goafanti.common.constant.AFTConstants;
  7. public class ContractLog {
  8. private String id;
  9. /**
  10. * 合同表主键
  11. */
  12. private String cid;
  13. /**
  14. * 状态变更录入时间
  15. */
  16. private Date recordTime;
  17. /**
  18. * 状态
  19. */
  20. private Integer status;
  21. /**
  22. * 负责人
  23. */
  24. private String principal;
  25. /**
  26. * 操作人
  27. */
  28. private String operator;
  29. /**
  30. * 备注
  31. */
  32. private String comment;
  33. public String getId() {
  34. return id;
  35. }
  36. public void setId(String id) {
  37. this.id = id;
  38. }
  39. public String getCid() {
  40. return cid;
  41. }
  42. public void setCid(String cid) {
  43. this.cid = cid;
  44. }
  45. public Date getRecordTime() {
  46. return recordTime;
  47. }
  48. public void setRecordTime(Date recordTime) {
  49. this.recordTime = recordTime;
  50. }
  51. @JsonFormat(shape = Shape.STRING)
  52. public Integer getStatus() {
  53. return status;
  54. }
  55. public void setStatus(Integer status) {
  56. this.status = status;
  57. }
  58. public String getPrincipal() {
  59. return principal;
  60. }
  61. public void setPrincipal(String principal) {
  62. this.principal = principal;
  63. }
  64. public String getOperator() {
  65. return operator;
  66. }
  67. public void setOperator(String operator) {
  68. this.operator = operator;
  69. }
  70. public String getComment() {
  71. return comment;
  72. }
  73. public void setComment(String comment) {
  74. this.comment = comment;
  75. }
  76. public String getRecordTimeFormattedDate(){
  77. if (this.recordTime == null) {
  78. return null;
  79. } else {
  80. return DateFormatUtils.format(this.getRecordTime(), AFTConstants.YYYYMMDDHHMMSS);
  81. }
  82. }
  83. public void setRecordTimeFormattedDate(String createTimeFormattedDate){
  84. }
  85. }