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

(主账号)转变成企业用户后之前的订单统计的角标还是会统计。
(子账号)绑定企业用户后,之前自己订单会带入企业订单当中,包括待评价的订单

liangpeile пре 1 година
родитељ
комит
10bf4aae69

+ 4 - 5
crmeb-front/src/main/java/com/zbkj/front/service/impl/UserCenterServiceImpl.java

@@ -137,18 +137,17 @@ public class UserCenterServiceImpl extends ServiceImpl<UserDao, User> implements
         UserEnterprise userEnterprise = userEnterpriseService.getOne(queryWrapper);
         User user1 = userService.getById(uid);
 
-        if (null!=userEnterprise){
+        if (null != userEnterprise) {
             if (2 == user1.getIsEnterpriseUser()) {
                 response.setQyName(userEnterprise.getEnterpriseName());
                 response.setBmName(userEnterprise.getDepartment());
                 response.setRealName(userEnterprise.getRealName());
             }
-        }
-        else {
+        } else {
             LambdaQueryWrapper<UserBypassAccount> queryWrapper1 = new LambdaQueryWrapper<>();
             queryWrapper1.eq(UserBypassAccount::getUserId, uid);
             UserBypassAccount userBypassAccount = userBypassAccountService.getOne(queryWrapper1);
-            if(null!=userBypassAccount){
+            if (null != userBypassAccount) {
                 Integer enterpriseId = userBypassAccount.getEnterpriseId();
                 LambdaQueryWrapper<UserEnterprise> queryWrapper2 = new LambdaQueryWrapper<>();
                 queryWrapper2.eq(UserEnterprise::getId, enterpriseId);
@@ -157,7 +156,7 @@ public class UserCenterServiceImpl extends ServiceImpl<UserDao, User> implements
                 response.setQyName(userEnterprise1.getEnterpriseName());
                 response.setBmName(userBypassAccount.getDepartment());
                 response.setRealName(userBypassAccount.getRealName());
-            }else {
+            } else {
                 User byId = userService.getById(uid);
                 response.setQyName("");
                 response.setBmName("");