|
@@ -47,7 +47,7 @@ public class AddressController {
|
|
|
if(address.getIsDefault() != null && address.getIsDefault() ){
|
|
if(address.getIsDefault() != null && address.getIsDefault() ){
|
|
|
addressService.update(Wrappers.lambdaUpdate(Address.class).eq(Address::getUserId,userId).set(Address::getIsDefault,false));
|
|
addressService.update(Wrappers.lambdaUpdate(Address.class).eq(Address::getUserId,userId).set(Address::getIsDefault,false));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ address.setUserId(userId);
|
|
|
addressService.save(address);
|
|
addressService.save(address);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(address);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(address);
|
|
|
}
|
|
}
|