|
@@ -1,5 +1,6 @@
|
|
|
package com.mrxu.framework.boot.bean;
|
|
package com.mrxu.framework.boot.bean;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelIgnore;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
@@ -18,33 +19,40 @@ public class BaseEntity implements Serializable {
|
|
|
|
|
|
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
|
@ApiModelProperty(value = "id")
|
|
@ApiModelProperty(value = "id")
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private Integer id;
|
|
private Integer id;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "租户id")
|
|
@ApiModelProperty(value = "租户id")
|
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private String tenantId;
|
|
private String tenantId;
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
@ApiModelProperty(value = "创建时间")
|
|
@ApiModelProperty(value = "创建时间")
|
|
|
@TableField("create_time")
|
|
@TableField("create_time")
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private Date createTime;
|
|
private Date createTime;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "创建人")
|
|
@ApiModelProperty(value = "创建人")
|
|
|
@TableField("create_person")
|
|
@TableField("create_person")
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private String createPerson;
|
|
private String createPerson;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "状态")
|
|
@ApiModelProperty(value = "状态")
|
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private Integer status;
|
|
private Integer status;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "更新时间")
|
|
@ApiModelProperty(value = "更新时间")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private Date updateTime;
|
|
private Date updateTime;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "更新人")
|
|
@ApiModelProperty(value = "更新人")
|
|
|
@Size(max=64)
|
|
@Size(max=64)
|
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
@TableField(exist=false) //需要的话,子类覆盖
|
|
|
|
|
+ @ExcelIgnore
|
|
|
private String updatePerson;
|
|
private String updatePerson;
|
|
|
|
|
|
|
|
}
|
|
}
|