瀏覽代碼

调整接口

tianboguang 3 年之前
父節點
當前提交
80cf038ee9
共有 1 個文件被更改,包括 4 次插入11 次删除
  1. 4 11
      platform-api/src/main/java/com/platform/api/ApiBrandController.java

+ 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 {