feat:适配离线订单
This commit is contained in:
1 parent
cddb87d922
commit
035f077e0c
2 files changed
+6
No files matched your search
+3
@@ -38,4 +38,7 @@ public class OfflineCar {
|
|||||||
|
|
||||||
@Schema(description = "单商品总价(分)")
|
@Schema(description = "单商品总价(分)")
|
||||||
private Long totalPrice;
|
private Long totalPrice;
|
||||||
|
|
||||||
|
@Schema(description = "是否额外收费")
|
||||||
|
private Boolean isPriceIncreased;
|
||||||
}
|
}
|
||||||
+3
@@ -212,6 +212,8 @@ public class HardOrderSyncServiceImpl implements HardOrderSyncService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public HardCarEntity parseCar(OfflineCar order) {
|
public HardCarEntity parseCar(OfflineCar order) {
|
||||||
|
String isPriceIncreased = ObjectUtil.isNotEmpty(order.getIsPriceIncreased()) && order.getIsPriceIncreased() ? YesNoEnum.YES.getCode() : YesNoEnum.NO.getCode();
|
||||||
|
|
||||||
HardCarEntity res = new HardCarEntity();
|
HardCarEntity res = new HardCarEntity();
|
||||||
res.setParentCarId(null);
|
res.setParentCarId(null);
|
||||||
res.setProductName(order.getProductName());
|
res.setProductName(order.getProductName());
|
||||||
@@ -221,6 +223,7 @@ public class HardOrderSyncServiceImpl implements HardOrderSyncService {
|
|||||||
res.setProductCount(order.getProductNumber());
|
res.setProductCount(order.getProductNumber());
|
||||||
res.setProductWeight(order.getProductWidget());
|
res.setProductWeight(order.getProductWidget());
|
||||||
res.setTotalPrice(order.getTotalPrice());
|
res.setTotalPrice(order.getTotalPrice());
|
||||||
|
res.setIsDiscountsProduct(isPriceIncreased);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user