|
@@ -403,7 +403,9 @@ public class ApiOrderNewServiceImpl implements ApiOrderNewService {
|
|
} else {
|
|
} else {
|
|
iOrderService.save(order);
|
|
iOrderService.save(order);
|
|
}
|
|
}
|
|
- redisCache.setCacheObject(couponDto.getId()+"","",2,TimeUnit.MINUTES);
|
|
|
|
|
|
+ if (!Objects.isNull(couponDto)) {
|
|
|
|
+ redisCache.setCacheObject(couponDto.getId() + "","",2,TimeUnit.MINUTES);
|
|
|
|
+ }
|
|
// 达达收付配送商计价明细入库
|
|
// 达达收付配送商计价明细入库
|
|
if (isDadaRapDelivery) {
|
|
if (isDadaRapDelivery) {
|
|
OrderFreight orderFreight = new OrderFreight();
|
|
OrderFreight orderFreight = new OrderFreight();
|
|
@@ -428,7 +430,9 @@ public class ApiOrderNewServiceImpl implements ApiOrderNewService {
|
|
if (PaymentTypeEnum.BALANCE.type.equals(req.getPaymentType()) || payAmount.compareTo(BigDecimal.ZERO) == 0) {
|
|
if (PaymentTypeEnum.BALANCE.type.equals(req.getPaymentType()) || payAmount.compareTo(BigDecimal.ZERO) == 0) {
|
|
//更改优惠券状态
|
|
//更改优惠券状态
|
|
apiCouponService.updateCoupon(couponDto);
|
|
apiCouponService.updateCoupon(couponDto);
|
|
- redisCache.deleteObject(couponDto.getId()+"");
|
|
|
|
|
|
+ if (!Objects.isNull(couponDto)) {
|
|
|
|
+ redisCache.deleteObject(couponDto.getId()+"");
|
|
|
|
+ }
|
|
// 发单
|
|
// 发单
|
|
if (CollectionUtils.isNotEmpty(resList)) {
|
|
if (CollectionUtils.isNotEmpty(resList)) {
|
|
// order.setProduct(product);
|
|
// order.setProduct(product);
|