| package com.zy.system.entity; | 
|   | 
| import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import java.text.SimpleDateFormat; | 
| import java.util.Date; | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import org.springframework.format.annotation.DateTimeFormat; | 
|   | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("sys_license_infos") | 
| public class LicenseInfos implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableId(value = "id", type = IdType.AUTO) | 
|     private Integer id; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     private String license; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     private String licenseTime; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableField("create_time") | 
|     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|     private Date createTime; | 
|   | 
|     public LicenseInfos() {} | 
|   | 
|     public LicenseInfos(String license,Date createTime) { | 
|         this.license = license; | 
|         this.createTime = createTime; | 
|     } | 
|   | 
| //    LicenseInfos licenseInfos = new LicenseInfos( | 
| //            null,    //  | 
| //            null    //  | 
| //    ); | 
|   | 
|     public String getCreateTime$(){ | 
|         if (Cools.isEmpty(this.createTime)){ | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); | 
|     } | 
|   | 
|   | 
| } |