Преглед изворни кода

店铺入住,实名认证信息存储

zhangchen пре 3 месеци
родитељ
комит
34e122f419

+ 6 - 0
alien-store/src/main/java/shop/alien/store/service/impl/StoreInfoServiceImpl.java

@@ -557,6 +557,12 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
         String userAccount = storeInfoDto.getUserAccount();
         StoreUser storeUser = storeUserMapper.selectById(userAccount);
         storeUser.setStoreId(storeInfo.getId());
+        if(StringUtils.isNotEmpty(storeInfoDto.getStoreContact())){
+            storeUser.setName(storeInfoDto.getStoreContact());
+        }
+        if(StringUtils.isNotEmpty(storeInfoDto.getIdCard())){
+            storeUser.setIdCard(storeInfoDto.getIdCard());
+        }
         storeUserMapper.updateById(storeUser);
         //存入店铺营业执照图片
         List<String> businessLicenseAddress = storeInfoDto.getBusinessLicenseAddress();