|  |  | 
 |  |  |         if (Constants.equalsInteger(user.getType(), Constants.UserType.SYSTEM.getKey())) { | 
 |  |  |             wrapper.lambda().eq(Brand::getType,Constants.ONE); | 
 |  |  |         }else { | 
 |  |  |             wrapper.lambda().and(wapper ->{wapper.eq(Brand::getType,brand.getCompanyId()) | 
 |  |  |                     .or().eq(Brand::getType,Constants.ZERO);} ); | 
 |  |  |             wrapper.lambda().and(i->i.eq(Brand::getCompanyId,user.getCompanyId()) | 
 |  |  |                             .or().eq(Brand::getType,Constants.ZERO) | 
 |  |  |             ); | 
 |  |  |         } | 
 |  |  |         List<Brand> list = brandMapper.selectList(wrapper); | 
 |  |  |         String prefixUrl = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() | 
 |  |  | 
 |  |  |         if (Objects.isNull(user.getCompanyId())) { | 
 |  |  |             queryWrapper.lambda().eq(Brand::getType,Constants.ONE); | 
 |  |  |         }else { | 
 |  |  |             queryWrapper.lambda().and(wreapper->{ | 
 |  |  |                 wreapper.eq(Brand::getType,pageWrap.getModel().getCompanyId()) | 
 |  |  |                         .or().eq(Brand::getType,Constants.ZERO);}); | 
 |  |  |  | 
 |  |  |             queryWrapper.lambda().and(i->i.eq(Brand::getCompanyId,user.getCompanyId()) | 
 |  |  |                     .or().eq(Brand::getType,Constants.ONE) | 
 |  |  |             ); | 
 |  |  |         } | 
 |  |  |         queryWrapper.lambda().orderByAsc(Brand::getSortnum); | 
 |  |  |         IPage<Brand> brandIPage = brandMapper.selectPage(page, queryWrapper); |