Commit 0a8e0c89 authored by shiyu's avatar shiyu

finddetails

parent 68e3c6d7
...@@ -61,6 +61,11 @@ public class ItemServiceImpl implements ItemService { ...@@ -61,6 +61,11 @@ public class ItemServiceImpl implements ItemService {
Long itemId = coinRequestDto.getId(); Long itemId = coinRequestDto.getId();
if (!ObjectUtils.isEmpty(itemId)) { if (!ObjectUtils.isEmpty(itemId)) {
item = itemManager.findDetails(coinRequestDto.getId()); item = itemManager.findDetails(coinRequestDto.getId());
String topImage = item.getTopImage();
if (StringUtils.isEmpty(topImage)) {
topImage = item.getImages().split(";")[0];
item.setTopImage(topImage);
}
} else { } else {
item = itemManager.findOne(coinRequestDto); item = itemManager.findOne(coinRequestDto);
} }
......
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