|  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         CreateCouponTemplateBO couponTemplateBO = new CreateCouponTemplateBO(); | 
 |  |  |         BeanUtils.copyProperties(couponTemplateDO,couponTemplateBO); | 
 |  |  |         BeanUtils.copyProperties(dto, couponTemplateBO); | 
 |  |  |  | 
 |  |  |         // 设置成积分优惠券 | 
 |  |  | 
 |  |  |  | 
 |  |  |     private void valid(CreateCouponTemplatePointDTO dto){ | 
 |  |  |  | 
 |  |  |         if (StringUtils.isNotBlank(dto.getCouponDiscountType()) | 
 |  |  |                 && dto.getCouponDiscountType().equals(CouponTypeEnum.DISCOUNT.getType()) | 
 |  |  |                 && dto.getMinOrderAmount().compareTo(dto.getCouponDiscountValue()) < 0) { | 
 |  |  |             throw new ValidationException("订单金额不能小于折扣金额"); | 
 |  |  |         if (StringUtils.isNotBlank(dto.getCouponDiscountType()) && dto.getCouponDiscountType().equals(CouponTypeEnum.DISCOUNT.getType())) { | 
 |  |  |  | 
 |  |  |             if(dto.getMinOrderAmount().compareTo(BigDecimal.ZERO)<=0){ | 
 |  |  |                 throw new ValidationException("优惠券使用条件不能小于0"); | 
 |  |  |             } | 
 |  |  |             if(dto.getMinOrderAmount().compareTo(dto.getCouponDiscountValue()) < 0){ | 
 |  |  |                 throw new ValidationException("优惠券使用条件不能小于面值金额"); | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if (StringUtils.isNotBlank(dto.getCouponDiscountType()) | 
 |  |  |                 && dto.getCouponDiscountType().equals(CouponTypeEnum.DISCOUNT.getType()) | 
 |  |  |                 && dto.getCouponDiscountValue().compareTo(BigDecimal.ZERO) <= 0) { |