|
@@ -195,17 +195,10 @@ public class ApiBrandController extends ApiBaseAction {
|
|
entity.setSceneName(sceneRes.getString("sceneName"));
|
|
entity.setSceneName(sceneRes.getString("sceneName"));
|
|
}
|
|
}
|
|
int canshow = 0;
|
|
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);
|
|
entity.setCanShow(canshow);
|
|
} else {
|
|
} else {
|