|
@@ -33,6 +33,7 @@ public class TAddressServiceImpl extends ServiceImpl<TAddressMapper, TAddress> i
|
|
|
if (StringUtils.isBlank(tAddress.getOpenid())) {
|
|
if (StringUtils.isBlank(tAddress.getOpenid())) {
|
|
|
throw new RuntimeException("openid不能为空");
|
|
throw new RuntimeException("openid不能为空");
|
|
|
}
|
|
}
|
|
|
|
|
+ // 查询默认地址
|
|
|
TAddress oldAddress = this.getByOpenId(tAddress.getOpenid());
|
|
TAddress oldAddress = this.getByOpenId(tAddress.getOpenid());
|
|
|
if (oldAddress != null) {
|
|
if (oldAddress != null) {
|
|
|
oldAddress.setType(0);
|
|
oldAddress.setType(0);
|