Commit f65e0f7c authored by shiyu's avatar shiyu

藏品详情新增是否是藏家的判断2

parent ad75f67c
...@@ -824,20 +824,20 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -824,20 +824,20 @@ public class SupplierItemServiceImpl implements SupplierItemService {
} }
//判断是否是藏家 //判断是否是藏家
if (shopWhiteListDao.isExisted(supplierItem.getCreatorId())) { if (shopWhiteListDao.isExisted(supplierItem.getCreatorId())) {
supplierItemVo.setIsCollected(true); supplierItemVo.setIsCollector(true);
} else { } else {
supplierItemVo.setIsCollected(false); supplierItemVo.setIsCollector(false);
try { try {
CloudServerResponse<ShopDTO> cloudServerResponse = shopReadService.getShopByUserId(supplierItem.getCreatorId(), new ShopQueryOption()); CloudServerResponse<ShopDTO> cloudServerResponse = shopReadService.getShopByUserId(supplierItem.getCreatorId(), new ShopQueryOption());
if (cloudServerResponse.isSuccess()) { if (cloudServerResponse.isSuccess()) {
ShopDTO shopDTO = cloudServerResponse.getResult(); ShopDTO shopDTO = cloudServerResponse.getResult();
if (shopDTO != null && !ObjectUtils.isEmpty(shopDTO.getShopId()) && shopDTO.getPayStatus() == 1 && shopDTO.getCheckStatus() == 1 && shopDTO.getType() == 4) { if (shopDTO != null && !ObjectUtils.isEmpty(shopDTO.getShopId()) && shopDTO.getPayStatus() == 1 && shopDTO.getCheckStatus() == 1 && shopDTO.getType() == 4) {
supplierItemVo.setIsCollected(true); supplierItemVo.setIsCollector(true);
} }
} }
} catch (Exception e) { } catch (Exception e) {
logger.error("根据用户id查询店铺信息失败error:{}", e); logger.error("根据用户id查询店铺信息失败error:{}", e);
supplierItemVo.setIsCollected(false); supplierItemVo.setIsCollector(false);
} }
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment