tianboguang %!s(int64=3) %!d(string=hai) anos
pai
achega
80cf038ee9

+ 4 - 11
platform-api/src/main/java/com/platform/api/ApiBrandController.java

@@ -195,17 +195,10 @@ public class ApiBrandController extends ApiBaseAction {
                 entity.setSceneName(sceneRes.getString("sceneName"));
             }
             int canshow = 0;
-            UserVo userVo = apiUserService.queryByMobile(getUserName());
-            if(null != userVo && org.apache.commons.lang.StringUtils.isNotBlank(userVo.getMobile())){
-                //检查是否有带看权限,并更新
-                TbUser sysUserEntity = zhiHouseService.queryByUserMobile(userVo.getMobile());
-                if(null != sysUserEntity){
-                    SysUserBrand sysUserBrand = mySysUserBrandService.getUserBrandById(sysUserEntity.getId() , entity.getId());
-                    if(null != sysUserBrand){
-                        canshow = null != sysUserBrand.getCanShow() ? sysUserBrand.getCanShow() : 0;
-                    }
-                }
-
+            //检查是否有带看权限,并更新
+            SysUserBrand sysUserBrand = mySysUserBrandService.getUserBrandById(getUserId() , entity.getId());
+            if(null != sysUserBrand){
+                canshow = null != sysUserBrand.getCanShow() ? sysUserBrand.getCanShow() : 0;
             }
             entity.setCanShow(canshow);
         } else {