Commit 4f2e4409 authored by 高滢's avatar 高滢

去掉实体类继承

parent d8d0e371
package com.ruoyi.domain; package com.ruoyi.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -14,7 +12,7 @@ import java.util.Date; ...@@ -14,7 +12,7 @@ import java.util.Date;
@ApiModel @ApiModel
@TableName(value ="t_test_scenario") @TableName(value ="t_test_scenario")
@Data @Data
public class TestScenario extends BaseEntity { public class TestScenario{
/** 主键 */ /** 主键 */
@ApiModelProperty("主键") @ApiModelProperty("主键")
...@@ -32,4 +30,20 @@ public class TestScenario extends BaseEntity { ...@@ -32,4 +30,20 @@ public class TestScenario extends BaseEntity {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("入库时间") @ApiModelProperty("入库时间")
private Date storageTime; private Date storageTime;
/** 创建者 */
private String createBy;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/** 更新者 */
private String updateBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.UPDATE)
private Date updateTime;
} }
...@@ -12,7 +12,7 @@ import java.util.Date; ...@@ -12,7 +12,7 @@ import java.util.Date;
@ApiModel @ApiModel
@TableName(value ="t_test_type") @TableName(value ="t_test_type")
@Data @Data
public class TestType extends BaseEntity { public class TestType{
/** 主键 */ /** 主键 */
@ApiModelProperty("主键") @ApiModelProperty("主键")
...@@ -31,4 +31,20 @@ public class TestType extends BaseEntity { ...@@ -31,4 +31,20 @@ public class TestType extends BaseEntity {
@ApiModelProperty("入库时间") @ApiModelProperty("入库时间")
private Date storageTime; private Date storageTime;
/** 创建者 */
private String createBy;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/** 更新者 */
private String updateBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.UPDATE)
private Date updateTime;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment