@Override
 public Long getDiscountAmount(OrdOrder order, Long discountAmount) {
   if (isApply(order, discountAmount)) {
     return order.getMainProduct().getPrice()
         * order.getMainProduct().getQuantity()
         * (100 - (null == this.discountAmount ? this.getArgumentY() : this.discountAmount))
         / 100;
   } else {
     return 0L;
   }
 }
 @Override
 public boolean isApply(OrdOrder order, Long discountAmount) {
   return null != order
       && null != order.getMainProduct()
       && order.getMainProduct().getQuantity() >= this.getArgumentX();
 }