Beispiel #1
0
 /** 得到发货单应该显示的邮费 分摊邮费 + 邮费补差 - 邮费补差退款 + 换货邮费 */
 public Money getInvoicePostFee() {
   Money invoicePostFee = Money.valueOf(0);
   for (OrderItem item : orderItem) {
     invoicePostFee = invoicePostFee.add(item.getInvoicePostFee());
   }
   return invoicePostFee;
 }
Beispiel #2
0
  public void queryOthers(Boolean type) {
    int count = 0;
    int itemCount = 0;
    for (OrderItem o : orderItem) {
      count = count + o.getBuyCount();
      itemCount = itemCount + 1;
    }
    if (orderItem.size() > 0) {
      this.itemName = orderItem.get(0).getProductName();
    }

    if (type && orderType.equals(OrderType.CHEAT)) {
      goodsFee = "0.00";
      actualFee = "0.00";
      itemName = "嘻唰唰专用";
      count = 1;
      itemCount = 1;
      if (StringUtils.isBlank(offlineRemark)) {
        offlineRemark = "刷单";
      }
    }
    this.itemNumCount = count;
    this.itemCount = itemCount;
  }