1 数据库存放list
@TableField(typeHandler = JsonLongSetTypeHandler.class)
private List<String> imageList;
2 数据校验报错
@NotEmpty 用在集合类上面
@NotBlank 用在String上面
@NotNull 用在基本类型上
3 mybatis-plus lambda表达式wrapper凑出and ... (... or ...)
LambdaQueryWrapperX<PersonInviteDO> lambdaQueryWrapperX = new LambdaQueryWrapperX<>();
lambdaQueryWrapperX.eq(PersonInviteDO::getInviteePhone, Sm4Util.sm4Encrypt(createReqVO.getInviteePhone()));
lambdaQueryWrapperX.and(w->w.eq(PersonInviteDO::getStatus, INVITE_IN).or()
.eq(PersonInviteDO::getStatus, INVITE_APPROVE).or()
.eq(PersonInviteDO::getStatus, INVITE_TIMEOUT));
4 vscode清除缓存
code --no-sandbox