- fixed some price bug.
This commit is contained in:
@@ -148,27 +148,28 @@ func (c *OrderController) legacyWriteJxOrder(order *model.GoodsOrder, db orm.Orm
|
||||
orderStatus = JX_ORDER_STATUS_PICKING
|
||||
}
|
||||
jxorder := &legacymodel.Jxorder2{
|
||||
VenderId: int8(order.VendorID),
|
||||
OrderId: utils.Str2Int64(order.VendorOrderID),
|
||||
JxStoreId: utils.Int2Str(jxutils.GetJxStoreIDFromOrder(order)),
|
||||
JxStoreName: order.StoreName,
|
||||
OrderNum: order.OrderSeq,
|
||||
OrderStatus: orderStatus,
|
||||
OrderStatusTime: utils.Time2Str(order.StatusTime),
|
||||
BusinessTag: businessTags,
|
||||
SkuCount: order.SkuCount,
|
||||
OrderBuyerRemark: order.BuyerComment,
|
||||
BuyerFullName: order.ConsigneeName,
|
||||
BuyerFullAddress: order.ConsigneeAddress,
|
||||
BuyerMobile: order.ConsigneeMobile,
|
||||
BuyerCoordType: legacyMapCoordinateType(order.CoordinateType),
|
||||
BuyerLng: jxutils.IntCoordinate2Standard(order.ConsigneeLng),
|
||||
BuyerLat: jxutils.IntCoordinate2Standard(order.ConsigneeLat),
|
||||
CityName: "all",
|
||||
OrderStartTime: utils.Time2Str(order.StatusTime),
|
||||
JdStoreId: order.VendorStoreID,
|
||||
OrderTotalMoney: int(order.SalePrice),
|
||||
OrderDiscountMoney: int(order.SalePrice - order.ActualPayPrice),
|
||||
VenderId: int8(order.VendorID),
|
||||
OrderId: utils.Str2Int64(order.VendorOrderID),
|
||||
JxStoreId: utils.Int2Str(jxutils.GetJxStoreIDFromOrder(order)),
|
||||
JxStoreName: order.StoreName,
|
||||
OrderNum: order.OrderSeq,
|
||||
OrderStatus: orderStatus,
|
||||
OrderStatusTime: utils.Time2Str(order.StatusTime),
|
||||
BusinessTag: businessTags,
|
||||
SkuCount: order.SkuCount,
|
||||
OrderBuyerRemark: order.BuyerComment,
|
||||
BuyerFullName: order.ConsigneeName,
|
||||
BuyerFullAddress: order.ConsigneeAddress,
|
||||
BuyerMobile: order.ConsigneeMobile,
|
||||
BuyerCoordType: legacyMapCoordinateType(order.CoordinateType),
|
||||
BuyerLng: jxutils.IntCoordinate2Standard(order.ConsigneeLng),
|
||||
BuyerLat: jxutils.IntCoordinate2Standard(order.ConsigneeLat),
|
||||
CityName: "all",
|
||||
OrderStartTime: utils.Time2Str(order.StatusTime),
|
||||
JdStoreId: order.VendorStoreID,
|
||||
OrderTotalMoney: int(order.SalePrice),
|
||||
OrderDiscountMoney: int(order.SalePrice - order.ActualPayPrice),
|
||||
OrderBuyerPayableMoney: int(order.ActualPayPrice),
|
||||
// DeliveryPackageWeight: float64(order.Weight) / 1000,
|
||||
}
|
||||
if order.VendorID == model.VendorIDELM {
|
||||
|
||||
Reference in New Issue
Block a user