update MP字段验证策略更改为 NOT_NULL 个别特殊字段使用注解单独处理

This commit is contained in:
疯狂的狮子li
2021-09-02 15:45:57 +08:00
parent f3d6d1e43b
commit ab9bc35f9f
5 changed files with 18 additions and 22 deletions

View File

@ -200,11 +200,11 @@ mybatis-plus:
# NOT_EMPTY 非空判断(只对字符串类型字段,其他类型字段依然为非NULL判断)
# DEFAULT 默认的,一般只用于注解里
# NEVER 不加入 SQL
insertStrategy: NOT_EMPTY
insertStrategy: NOT_NULL
# 字段验证策略之 update,在 update 的时候的字段验证策略
updateStrategy: NOT_EMPTY
updateStrategy: NOT_NULL
# 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
selectStrategy: NOT_EMPTY
selectStrategy: NOT_NULL
# Swagger配置
swagger: