| package com.zy.asrs.entity; | 
|   | 
| import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import java.text.SimpleDateFormat; | 
| import java.util.Date; | 
| 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("\"SOURCE\".\"wcs_data_resource\"") | 
| public class DataResource implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableId(value = "ID", type = IdType.AUTO) | 
|     private Integer id; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableField("DATA") | 
|     private String data; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableField("NAME") | 
|     private String name; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableField("RESOURCE_ID") | 
|     private Integer resourceId; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     @TableField("CREATE_TIME") | 
|     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|     private Date createTime; | 
|   | 
|     @ApiModelProperty(value= "备注") | 
|     @TableField("MEMO") | 
|     private String memo; | 
|   | 
|     public DataResource() {} | 
|   | 
|     public DataResource(String data,String name,Integer resourceId,Date createTime,String memo) { | 
|         this.data = data; | 
|         this.name = name; | 
|         this.resourceId = resourceId; | 
|         this.createTime = createTime; | 
|         this.memo = memo; | 
|     } | 
|   | 
| //    DataResource dataResource = new DataResource( | 
| //            null,    //  | 
| //            null,    //  | 
| //            null,    //  | 
| //            null    //  | 
| //    ); | 
|   | 
|     public String getCreateTime$(){ | 
|         if (Cools.isEmpty(this.createTime)){ | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); | 
|     } | 
|   | 
|     public String getMemo() { | 
|         if (Cools.isEmpty(this.memo)) { | 
|             return ""; | 
|         } | 
|         return this.memo; | 
|     } | 
|   | 
|   | 
| } |