Browse Source

【优化】CommonEntity序列化时忽略deleteFlag字段(jackson)

pull/185/MERGE
vchao 12 months ago committed by 小诺
parent
commit
799dd4547d
  1. 2
      snowy-common/src/main/java/vip/xiaonuo/common/pojo/CommonEntity.java

2
snowy-common/src/main/java/vip/xiaonuo/common/pojo/CommonEntity.java

@ -15,6 +15,7 @@ package vip.xiaonuo.common.pojo;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
@ -36,6 +37,7 @@ import java.util.Date;
public class CommonEntity implements Serializable {
/** 删除标志 */
@JsonIgnore
@TableLogic
@ApiModelProperty(value = "删除标志", position = 999)
@TableField(fill = FieldFill.INSERT)

Loading…
Cancel
Save