Commit f65e0f7c authored by shiyu's avatar shiyu

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

parent ad75f67c
......@@ -824,20 +824,20 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
//判断是否是藏家
if (shopWhiteListDao.isExisted(supplierItem.getCreatorId())) {
supplierItemVo.setIsCollected(true);
supplierItemVo.setIsCollector(true);
} else {
supplierItemVo.setIsCollected(false);
supplierItemVo.setIsCollector(false);
try {
CloudServerResponse<ShopDTO> cloudServerResponse = shopReadService.getShopByUserId(supplierItem.getCreatorId(), new ShopQueryOption());
if (cloudServerResponse.isSuccess()) {
ShopDTO shopDTO = cloudServerResponse.getResult();
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) {
logger.error("根据用户id查询店铺信息失败error:{}", e);
supplierItemVo.setIsCollected(false);
supplierItemVo.setIsCollector(false);
}
}
} 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