diff --git a/SC-boot/linkage-admin/src/main/resources/application-dev.yml b/SC-boot/linkage-admin/src/main/resources/application-dev.yml index 518e3d5e..16add8ea 100644 --- a/SC-boot/linkage-admin/src/main/resources/application-dev.yml +++ b/SC-boot/linkage-admin/src/main/resources/application-dev.yml @@ -103,4 +103,10 @@ mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: classpath*:mapper/**/*.xml - + global-config: + db-config: + logic-delete-field: delete_mark # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2) + logic-delete-value: 1 # 逻辑已删除值(默认为 1) + logic-not-delete-value: 0d # 逻辑未删除值(默认为 0) + # @TableLogic //实体类配置这个,但前面配置了logic-delete-field于是可以不配置 + # private Integer deleted; diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/customer/entity/CustomerJGEntity.java b/SC-boot/linkage-scm/src/main/java/jnpf/customer/entity/CustomerJGEntity.java index 91893bee..77910e9a 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/customer/entity/CustomerJGEntity.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/customer/entity/CustomerJGEntity.java @@ -1,13 +1,12 @@ package jnpf.customer.entity; -import com.alibaba.fastjson.annotation.JSONField; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.util.Date; -import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -53,6 +52,7 @@ public class CustomerJGEntity { private Date deletetime; @TableField("DELETE_MARK") + @TableLogic private String deletemark; @TableField("orgnize_id")