Mybatis-Plus查询时排除某列和更新字段的时候设置为null,忽略实体null判断
作者:互联网
记录一下工作中的学习的东西:
1、LambdaQueryWrapper<CommonEntity> wrapper = Wrappers.lambdaQuery(commonEntity).select(CommonEntity.class,info -> !"content".equals(info.getColumn()))
2、@TableField(value = "`length`", updateStrategy = FieldStrategy.IGNORED) @ApiModelProperty(value = "长")
private BigDecimal length;
主要是updateStrategy = FieldStrategy.IGNORED
值得注意一下
标签:IGNORED,某列,value,length,Plus,FieldStrategy,null,updateStrategy 来源: https://blog.csdn.net/qq_37795502/article/details/120772515