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

@ -78,6 +78,11 @@ public class SysUser implements Serializable {
/**
* 密码
*/
@TableField(
insertStrategy = FieldStrategy.NOT_EMPTY,
updateStrategy = FieldStrategy.NOT_EMPTY,
whereStrategy = FieldStrategy.NOT_EMPTY
)
private String password;
@JsonIgnore