|
@@ -20,6 +20,8 @@ import org.springframework.transaction.annotation.Isolation;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.math.RoundingMode;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -173,7 +175,7 @@ public class UserPaymentOrderServiceImpl implements UserPaymentOrderService {
|
|
|
|
|
|
UserOrderPayment newestPayment = userOrderPaymentService.getNewestPayment(order.getTransNo(), userOrder.getOrderNo());
|
|
|
if (newestPayment == null) {
|
|
|
- return;
|
|
|
+ newestPayment = new UserOrderPayment();
|
|
|
}
|
|
|
|
|
|
newestPayment.setOrderNo(userOrder.getOrderNo());
|
|
@@ -201,7 +203,7 @@ public class UserPaymentOrderServiceImpl implements UserPaymentOrderService {
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
- userOrderPaymentService.updateById(newestPayment);
|
|
|
+ userOrderPaymentService.saveOrUpdate(newestPayment);
|
|
|
}
|
|
|
|
|
|
/**
|