feat:适配离线订单

This commit is contained in:
dzc committed 2026-03-30 10:30:19 +08:00
1 parent cddb87d922
commit 035f077e0c
2 files changed
+6

No files matched your search

@@ -38,4 +38,7 @@ public class OfflineCar {
@Schema(description = "单商品总价(分)")
private Long totalPrice;
@Schema(description = "是否额外收费")
private Boolean isPriceIncreased;
}
@@ -212,6 +212,8 @@ public class HardOrderSyncServiceImpl implements HardOrderSyncService {
}
public HardCarEntity parseCar(OfflineCar order) {
String isPriceIncreased = ObjectUtil.isNotEmpty(order.getIsPriceIncreased()) && order.getIsPriceIncreased() ? YesNoEnum.YES.getCode() : YesNoEnum.NO.getCode();
HardCarEntity res = new HardCarEntity();
res.setParentCarId(null);
res.setProductName(order.getProductName());
@@ -221,6 +223,7 @@ public class HardOrderSyncServiceImpl implements HardOrderSyncService {
res.setProductCount(order.getProductNumber());
res.setProductWeight(order.getProductWidget());
res.setTotalPrice(order.getTotalPrice());
res.setIsDiscountsProduct(isPriceIncreased);
return res;
}