jdsc
This commit is contained in:
@@ -248,6 +248,11 @@ func Map2Order(orderData map[string]interface{}) (order *model.GoodsOrder) {
|
|||||||
if result[statusTimeField] == nil { // 814560888003021 orderPurchaseTime为空
|
if result[statusTimeField] == nil { // 814560888003021 orderPurchaseTime为空
|
||||||
statusTimeField = "orderStartTime"
|
statusTimeField = "orderStartTime"
|
||||||
}
|
}
|
||||||
|
//物竞天择订单备注改一下
|
||||||
|
comment := utils.TrimBlankChar(utils.Interface2String(result["orderBuyerRemark"]))
|
||||||
|
if strings.Contains(comment, "【JD】") {
|
||||||
|
comment += "【京东商城】"
|
||||||
|
}
|
||||||
order = &model.GoodsOrder{
|
order = &model.GoodsOrder{
|
||||||
VendorOrderID: orderID,
|
VendorOrderID: orderID,
|
||||||
VendorID: model.VendorIDJD,
|
VendorID: model.VendorIDJD,
|
||||||
@@ -259,7 +264,7 @@ func Map2Order(orderData map[string]interface{}) (order *model.GoodsOrder) {
|
|||||||
ConsigneeMobile: jxutils.FormalizeMobile(utils.Interface2String(result["buyerMobile"])),
|
ConsigneeMobile: jxutils.FormalizeMobile(utils.Interface2String(result["buyerMobile"])),
|
||||||
ConsigneeAddress: utils.Interface2String(result["buyerFullAddress"]),
|
ConsigneeAddress: utils.Interface2String(result["buyerFullAddress"]),
|
||||||
CoordinateType: model.CoordinateTypeMars,
|
CoordinateType: model.CoordinateTypeMars,
|
||||||
BuyerComment: utils.TrimBlankChar(utils.Interface2String(result["orderBuyerRemark"])),
|
BuyerComment: comment,
|
||||||
ExpectedDeliveredTime: utils.Str2TimeWithDefault(utils.Interface2String(result["orderPreEndDeliveryTime"]), utils.DefaultTimeValue),
|
ExpectedDeliveredTime: utils.Str2TimeWithDefault(utils.Interface2String(result["orderPreEndDeliveryTime"]), utils.DefaultTimeValue),
|
||||||
PickDeadline: utils.Str2TimeWithDefault(utils.Interface2String(result["pickDeadline"]), utils.DefaultTimeValue), // 813951615000022 pickDeadline为空
|
PickDeadline: utils.Str2TimeWithDefault(utils.Interface2String(result["pickDeadline"]), utils.DefaultTimeValue), // 813951615000022 pickDeadline为空
|
||||||
VendorStatus: utils.Int64ToStr(utils.MustInterface2Int64(result["orderStatus"])),
|
VendorStatus: utils.Int64ToStr(utils.MustInterface2Int64(result["orderStatus"])),
|
||||||
|
|||||||
Reference in New Issue
Block a user