配置全局的逻辑删除处理(mybatis-plus提供)
mybatis-plus:
# 扫描 mapper.xml
mapper-locations: classpath*:mapper/**/*Mapper.xml
#别名包配置
typeAliasesPackage: com/ali/entity
configuration:
call-setters-on-nulls: true
global-config:
db-config:
logic-delete-field: status #需要配置的逻辑删除数据库字段
logic-delete-value: 0 #配置逻辑删除字段为1是删除
logic-not-delete-value: 1 #配置逻辑删除字段为1是未删除