Pārlūkot izejas kodu

:wrench: 绑定企业子账号时绑定商铺

Twelve615 1 gadu atpakaļ
vecāks
revīzija
e11ccd7150

+ 4 - 1
crmeb-admin/src/main/java/com/zbkj/admin/controller/platform/NewPlatformApi.java

@@ -246,11 +246,14 @@ public class NewPlatformApi {
             if (list2.size() != 0) {
                 return CommonResult.failed("该用户已认证过企业用户");
             }
+            // 绑定商铺
+            UserEnterprise userEnterpriseServiceById = userEnterpriseService.getById(userBypassAccount.getEnterpriseId());
+            userBypassAccount.setMerchantId(userEnterpriseServiceById.getMerchantId());
             userBypassAccountService.save(userBypassAccount);
 
             //修改用户表字段
             byId.setIsEnterpriseUser(3);
-            byId.setRealName(realName);
+            //byId.setRealName(realName);
             userService.updateById(byId);
             return CommonResult.success("添加子账号成功");
         } catch (Exception e) {