未验证 提交 fa455bbf 编写于 作者: fxzcloud's avatar fxzcloud 提交者: Gitee

新增时会将所有默认地址修改为非默认地址

上级 3e430882
......@@ -49,6 +49,7 @@ public class UmsAddressServiceImpl extends ServiceImpl<UmsAddressMapper, UmsAddr
this.update(new LambdaUpdateWrapper<UmsAddress>()
.eq(UmsAddress::getMemberId, memberId)
.eq(UmsAddress::getDefaulted, 1)
.ne(UmsAddress::getId,umsAddress.getId())
.set(UmsAddress::getDefaulted, 0)
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册