private ItemVO convertVOFromModel (ItemModel itemModel){
if (itemModel == null){
return null;
}
ItemVO itemVO = new ItemVO();
BeanUtils.copyProperties(itemModel,itemVO);
if (itemModel.getPromoModel() != null){
//有正在进行或即将进行的秒杀活动
itemVO.setPromoStatus(itemModel.getPromoModel().getStatus());
itemVO.setPromoId(itemModel.getPromoModel().getId());
itemVO.setStartDate(itemModel.getPromoModel().getStartDate());
itemVO.setPromoPrice(itemModel.getPromoModel().getPromItemPrice());
}else{
itemVO.setPromoStatus(0);
}
return itemVO;