Skip to content

模型对象字段设定默认值 - 使用自增<inc> 会出现BUG #12

@zhanghzong

Description

@zhanghzong

代码

public class UserGoodsInfo {
    @CollectionField("goods_price")
    private BigDecimal goodsPrice = BigDecimal.ZERO;
}

LambdaUpdateChainWrapper<UserGoodsInfo> updateChainWrapper = this.lambdaUpdate();
updateChainWrapper.inc(UserGoodsInfo::getGoodsPrice, price);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions