|
@@ -58,7 +58,7 @@ public class BrandServiceImpl implements BrandService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public BrandInfo searchByBrandId(String brandId) {
|
|
|
+ public BrandInfo searchByBrandId(String brandId, String userId) {
|
|
|
Brand brand = brandMapper.searchById(brandId);
|
|
|
BrandInfo info = new BrandInfo();
|
|
|
if (brand != null){
|
|
@@ -74,6 +74,14 @@ public class BrandServiceImpl implements BrandService {
|
|
|
info.setAddrInfo(enterprise.getAddrInfo());
|
|
|
}
|
|
|
info.setUpdateTime(brand.getUpdateTime());
|
|
|
+ QueryWrapper<AttentionPool> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("brand_id",brandId);
|
|
|
+ queryWrapper.eq("wd_id","");
|
|
|
+ AttentionPool pool = attentionPoolDao.selectOne(queryWrapper);
|
|
|
+ if (pool == null)
|
|
|
+ info.setAttention(0);
|
|
|
+ else
|
|
|
+ info.setAttention(1);
|
|
|
}else return null;
|
|
|
return info;
|
|
|
}
|