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();
if (paymentInfo != null && paymentInfo.getPaymentItemList() != null && !paymentInfo.getPaymentItemList().isEmpty()) {
List<HotelOrderInfoEntity.PaymentItem> paymentItemList = paymentInfo.getPaymentItemList();
hotelOrderDetail.setOrderAmount(KEEP_TWO_DECIMAL_ZERO);
if (hotelOrderDetail.getOrderAmount() == null || hotelOrderDetail.getOrderAmount().isEmpty()) {
hotelOrderDetail.setOrderAmount(KEEP_TWO_DECIMAL_ZERO);
}

View File

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

View File

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