Browse Source

fixed 会员修改bug

fushengqian 1 year ago
parent
commit
5ad6b4df43

+ 2 - 1
fuint-application/src/main/java/com/fuint/common/dto/AddressDto.java

@@ -3,6 +3,7 @@ package com.fuint.common.dto;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Getter;
 import lombok.Setter;
+import java.io.Serializable;
 
 /**
  * 会员地址信息
@@ -12,7 +13,7 @@ import lombok.Setter;
  */
 @Getter
 @Setter
-public class AddressDto {
+public class AddressDto implements Serializable {
 
     @ApiModelProperty("账户主键ID")
     private Integer id;

+ 2 - 0
fuint-application/src/main/java/com/fuint/common/service/impl/MemberServiceImpl.java

@@ -442,6 +442,8 @@ public class MemberServiceImpl extends ServiceImpl<MtUserMapper, MtUser> impleme
         }
         String gradeId = mtUser.getGradeId();
         mtUser.setGradeId(oldUserInfo.getGradeId());
+        mtUser.setMerchantId(oldUserInfo.getMerchantId());
+        mtUser.setStoreId(oldUserInfo.getStoreId());
         Boolean result = updateById(mtUser);
         if (result && mtUser.getGradeId() != null) {
             // 修改了会员等级,开卡赠礼