fix:修复酒店重复推送导致金额累加的bug

This commit is contained in:
lulz1 2024-05-19 13:35:09 +08:00
parent 546766349b
commit 6eefc3a9f7
3 changed files with 3 additions and 2 deletions

View File

@ -489,6 +489,7 @@ public class CTripOrderExtensionFactoryImpl implements OrderExtensionFactory {
HotelOrderInfoEntity.PaymentInfoEntity paymentInfo = hotelOrderInfoEntity.getPaymentInfo(); HotelOrderInfoEntity.PaymentInfoEntity paymentInfo = hotelOrderInfoEntity.getPaymentInfo();
if (paymentInfo != null && paymentInfo.getPaymentItemList() != null && !paymentInfo.getPaymentItemList().isEmpty()) { if (paymentInfo != null && paymentInfo.getPaymentItemList() != null && !paymentInfo.getPaymentItemList().isEmpty()) {
List<HotelOrderInfoEntity.PaymentItem> paymentItemList = paymentInfo.getPaymentItemList(); List<HotelOrderInfoEntity.PaymentItem> paymentItemList = paymentInfo.getPaymentItemList();
hotelOrderDetail.setOrderAmount(KEEP_TWO_DECIMAL_ZERO);
if (hotelOrderDetail.getOrderAmount() == null || hotelOrderDetail.getOrderAmount().isEmpty()) { if (hotelOrderDetail.getOrderAmount() == null || hotelOrderDetail.getOrderAmount().isEmpty()) {
hotelOrderDetail.setOrderAmount(KEEP_TWO_DECIMAL_ZERO); hotelOrderDetail.setOrderAmount(KEEP_TWO_DECIMAL_ZERO);
} }

View File

@ -246,7 +246,7 @@ public class CTripTest {
@Test @Test
void search() { void search() {
BaseContext.setCurrentUser(user); BaseContext.setCurrentUser(user);
SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("31791272980"); SearchOrderResponse response = orderSearchRequest.searchOrderResponseByOrderId("31519161865");
System.out.println(response); System.out.println(response);
} }

View File

@ -305,7 +305,7 @@ class RouteApplicationTests {
@Test @Test
void loginSignProd() { void loginSignProd() {
String sfno = "060726001"; String sfno = "001019002";
String syscode = "FSSC"; String syscode = "FSSC";
String billcode = "CLSQ240225000099"; String billcode = "CLSQ240225000099";
String companycode = "正泰集团股份有限公司"; String companycode = "正泰集团股份有限公司";