| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- package jnpf.base.model.button;
- import io.swagger.v3.oas.annotations.media.Schema;
- import lombok.Data;
- import java.io.Serializable;
- import java.util.Date;
- /**
- * 按钮
- */
- @Data
- public class ButtonModel implements Serializable {
- private String id;
- private String parentId;
- private String fullName;
- private String enCode;
- private String icon;
- private String urlAddress;
- private String moduleId;
- private String systemId;
- private Long sortCode=999999L;
- private Long creatorTime;
- private Date creatorTimes;
- public Long getCreatorTime() {
- if (this.creatorTimes != null && this.creatorTime == null) {
- return this.getCreatorTimes().getTime();
- } else if (this.creatorTime != null){
- return this.creatorTime;
- }
- return 0L;
- }
- public void setCreatorTimes(Date creatorTimes) {
- this.creatorTimes = creatorTimes;
- if(creatorTimes != null && this.creatorTime == null){
- this.creatorTime = creatorTimes.getTime();
- }
- }
- public void setCreatorTime(Long creatorTime) {
- this.creatorTime = creatorTime;
- if(creatorTime != null && this.creatorTimes == null){
- this.creatorTimes = new Date(creatorTime);
- }
- }
- }
|