Commit 137be25f authored by shiyu's avatar shiyu

显示价格

parent a15a183b
......@@ -166,9 +166,12 @@ public class ItemVo implements Entity {
return item;
}
public static final ItemVo fromItem(Item item) {
ItemVo itemVo = new ItemVo();
EntityMapper.copyAttribute(item, itemVo);
long price = item.getPrice() == null ? 0 : item.getPrice();
itemVo.setPrice(price / (double)100);
itemVo.setStateName(ItemStateEnum.getNameByCode(item.getState()));
itemVo.setId(item.getId());
itemVo.setName(item.getName());
......
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