Commit 3aeafc10 authored by shiyu's avatar shiyu

泉库后台商品详情展示图片问题优化

parent 4db91359
...@@ -197,13 +197,7 @@ public class ItemVo implements Entity { ...@@ -197,13 +197,7 @@ public class ItemVo implements Entity {
topImage = item.getImages().split(";")[0]; topImage = item.getImages().split(";")[0];
} }
itemVo.setTopImage(topImage); itemVo.setTopImage(topImage);
String extra = item.getExtra();
if (com.xxdxxs.utils.StringUtils.hasLength(extra)) {
Map<String, Object> map = JsonUtils.toMap(extra);
itemVo.setDiameter(map.get("diameter") == null ? "" : map.get("diameter").toString());
itemVo.setThickness(map.get("thickness") == null ? "" : map.get("thickness").toString());
itemVo.setWeight(map.get("weight") == null ? "" : map.get("weight").toString());
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -93,7 +93,7 @@ public class ItemServiceImpl implements ItemService { ...@@ -93,7 +93,7 @@ public class ItemServiceImpl implements ItemService {
item = itemDao.findDetails(id); item = itemDao.findDetails(id);
} }
} }
ItemVo itemVo = ItemVo.fromItem(item); CoinVo itemVo = convertEntity(item);
//用于展示商品归属的类目(页面级联下拉控件数据展示) //用于展示商品归属的类目(页面级联下拉控件数据展示)
Integer categoryId = item.getCid(); Integer categoryId = item.getCid();
Category category = categoryDao.findById(categoryId); Category category = categoryDao.findById(categoryId);
......
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