浏览代码

修改收货地址问题先修复

macro 1 年之前
父节点
当前提交
2749f7c58e

+ 3 - 0
mall-portal/src/main/java/com/macro/mall/portal/service/impl/UmsMemberReceiveAddressServiceImpl.java

@@ -43,6 +43,9 @@ public class UmsMemberReceiveAddressServiceImpl implements UmsMemberReceiveAddre
         UmsMember currentMember = memberService.getCurrentMember();
         UmsMemberReceiveAddressExample example = new UmsMemberReceiveAddressExample();
         example.createCriteria().andMemberIdEqualTo(currentMember.getId()).andIdEqualTo(id);
+        if(address.getDefaultStatus()==null){
+            address.setDefaultStatus(0);
+        }
         if(address.getDefaultStatus()==1){
             //先将原来的默认地址去除
             UmsMemberReceiveAddress record= new UmsMemberReceiveAddress();