ButtonModel.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package jnpf.base.model.button;
  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 ButtonModel implements Serializable {
  11. private String id;
  12. private String parentId;
  13. private String fullName;
  14. private String enCode;
  15. private String icon;
  16. private String urlAddress;
  17. private String moduleId;
  18. private String systemId;
  19. private Long sortCode=999999L;
  20. private Long creatorTime;
  21. private Date creatorTimes;
  22. public Long getCreatorTime() {
  23. if (this.creatorTimes != null && this.creatorTime == null) {
  24. return this.getCreatorTimes().getTime();
  25. } else if (this.creatorTime != null){
  26. return this.creatorTime;
  27. }
  28. return 0L;
  29. }
  30. public void setCreatorTimes(Date creatorTimes) {
  31. this.creatorTimes = creatorTimes;
  32. if(creatorTimes != null && this.creatorTime == null){
  33. this.creatorTime = creatorTimes.getTime();
  34. }
  35. }
  36. public void setCreatorTime(Long creatorTime) {
  37. this.creatorTime = creatorTime;
  38. if(creatorTime != null && this.creatorTimes == null){
  39. this.creatorTimes = new Date(creatorTime);
  40. }
  41. }
  42. }