/**
  * 根据条件检索原始订单项
  *
  * @param originalOrderItem
  * @return
  */
 public List<OriginalOrderItem> findOriginalOrderItem(OriginalOrderItem originalOrderItem) {
   Search search = new Search(OriginalOrderItem.class);
   if (originalOrderItem != null) {
     if (NumberUtil.isNotNullOrNotZero(originalOrderItem.getOriginalOrderId())) {
       search.addFilterEqual("originalOrderId", originalOrderItem.getOriginalOrderId());
     }
   }
   return generalDAO.search(search);
 }
 /**
  * 根据条件查询优惠详情
  *
  * @param promotionInfo
  * @return
  */
 @Transactional(readOnly = true)
 public List<PromotionInfo> findPromotionInfos(PromotionInfo promotionInfo) {
   Search search = new Search(PromotionInfo.class);
   if (promotionInfo != null) {
     if (StringUtils.isNotBlank(promotionInfo.getPlatformOrderNo())) {
       search.addFilterEqual("platformOrderNo", promotionInfo.getPlatformOrderNo());
     }
     if (StringUtils.isNotBlank(promotionInfo.getSkuId())) {
       search.addFilterEqual("skuId", promotionInfo.getSkuId());
     }
     if (NumberUtil.isNotNullOrNotZero(promotionInfo.getOriginalOrderId())) {
       search.addFilterEqual("originalOrderId", promotionInfo.getOriginalOrderId());
     }
   }
   List<PromotionInfo> promotionInfoList = generalDAO.search(search);
   return promotionInfoList;
 }