Commit 6940539f authored by shiyu's avatar shiyu

商品详情3

parent 3f23a419
......@@ -89,7 +89,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
try {
String shareRecordId = dto.getShareRecordId();
DistributorShareRecord distributorShareRecord = new DistributorShareRecord();
long itemId = 0;
Long itemId;
if (StringUtils.isEmpty(shareRecordId) && dto.getId() == null) {
return Result.failed("商品信息为空");
} else if (StringUtils.hasLength(shareRecordId)) {
......@@ -106,6 +106,11 @@ public class SupplierItemServiceImpl implements SupplierItemService {
} else {
itemId = dto.getId();
}
if (itemId == null) {
logger.error("商品详情分享id和商品id参数全为空,查询失败");
return Result.failed("商品信息为空");
}
SupplierItemVo supplierItemVo = new SupplierItemVo();
//用户点击链接进入详情页需要记录
if (!dto.getIsShop()) {
......
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