ColumnModel.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package jnpf.base.model.column;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.Data;
  4. import java.io.Serializable;
  5. import java.util.Date;
  6. /**
  7. * 列表
  8. */
  9. @Data
  10. public class ColumnModel implements Serializable {
  11. private String id;
  12. private String parentId;
  13. private String fullName;
  14. private String enCode;
  15. private String bindTable;
  16. private String bindTableName;
  17. private String moduleId;
  18. private String icon;
  19. private String systemId;
  20. private Long sortCode=999999L;
  21. private Long creatorTime;
  22. private Date creatorTimes;
  23. public Long getCreatorTime() {
  24. if (this.creatorTimes != null && this.creatorTime == null) {
  25. return this.getCreatorTimes().getTime();
  26. } else if (this.creatorTime != null){
  27. return this.creatorTime;
  28. }
  29. return 0L;
  30. }
  31. public void setCreatorTimes(Date creatorTimes) {
  32. this.creatorTimes = creatorTimes;
  33. if(creatorTimes != null && this.creatorTime == null){
  34. this.creatorTime = creatorTimes.getTime();
  35. }
  36. }
  37. public void setCreatorTime(Long creatorTime) {
  38. this.creatorTime = creatorTime;
  39. if(creatorTime != null && this.creatorTimes == null){
  40. this.creatorTimes = new Date(creatorTime);
  41. }
  42. }
  43. }