feeMapper.update(Wrappers.<FeePO>lambdaUpdate()
.eq(FeePO::getId, feeDO.getId())
.set(ObjectUtils.isNotEmpty(feeDO.getMoney()), FeePO::getMoney, feeDO.getMoney())
.set(ObjectUtils.isEmpty(feeDO.getMoney()), FeePO::getMoney, null)
);
来源:https://www.cnblogs.com/pandacode/p/15711204.html
图文来源于网络,如有侵权请联系删除。