8 changed files with 111 additions and 63 deletions
			
			
		| @ -0,0 +1,68 @@@@ -0,0 +1,68 @@ | ||||
| package cc.niushuai.bastionserver.common.base.entity; | ||||
| 
 | ||||
| import com.baomidou.mybatisplus.annotation.IdType; | ||||
| import com.baomidou.mybatisplus.annotation.TableId; | ||||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import io.swagger.annotations.ApiModelProperty; | ||||
| import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | ||||
| import lombok.experimental.Accessors; | ||||
| import org.jeecgframework.poi.excel.annotation.Excel; | ||||
| import org.springframework.format.annotation.DateTimeFormat; | ||||
| 
 | ||||
| import java.io.Serializable; | ||||
| import java.util.Date; | ||||
| 
 | ||||
| /** | ||||
|  * 不带企业id的entity基类 | ||||
|  * | ||||
|  * @author niushuai233 | ||||
|  * @date: 2023/1/4 10:45 | ||||
|  */ | ||||
| @Data | ||||
| @EqualsAndHashCode(callSuper = false) | ||||
| @Accessors(chain = true) | ||||
| public class Entity implements Serializable { | ||||
| 
 | ||||
|     private static final long serialVersionUID = 1L; | ||||
| 
 | ||||
|     /** | ||||
|      * ID | ||||
|      */ | ||||
|     @TableId(type = IdType.ASSIGN_ID) | ||||
|     @ApiModelProperty(value = "ID") | ||||
|     private String id; | ||||
| 
 | ||||
|     /** | ||||
|      * 创建人 | ||||
|      */ | ||||
|     @ApiModelProperty(value = "创建人") | ||||
|     @Excel(name = "创建人", width = 15) | ||||
|     private String createBy; | ||||
| 
 | ||||
|     /** | ||||
|      * 创建时间 | ||||
|      */ | ||||
|     @ApiModelProperty(value = "创建时间") | ||||
|     @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") | ||||
|     @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     private Date createTime; | ||||
| 
 | ||||
|     /** | ||||
|      * 更新人 | ||||
|      */ | ||||
|     @ApiModelProperty(value = "更新人") | ||||
|     @Excel(name = "更新人", width = 15) | ||||
|     private String updateBy; | ||||
| 
 | ||||
|     /** | ||||
|      * 更新时间 | ||||
|      */ | ||||
|     @ApiModelProperty(value = "更新时间") | ||||
|     @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") | ||||
|     @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||||
|     private Date updateTime; | ||||
| 
 | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue