diff --git a/business/partner/purchase/jd/order.go b/business/partner/purchase/jd/order.go index 4e9f184b0..8bc733d9f 100644 --- a/business/partner/purchase/jd/order.go +++ b/business/partner/purchase/jd/order.go @@ -96,12 +96,12 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo order = &model.GoodsOrder{ VendorOrderID: orderID, VendorID: model.VendorIDJD, - VendorStoreID: result["produceStationNo"].(string), + VendorStoreID: utils.Interface2String(result["produceStationNo"]), StoreID: int(utils.Str2Int64WithDefault(utils.Interface2String(result["produceStationNoIsv"]), 0)), StoreName: utils.Interface2String(result["produceStationName"]), - ConsigneeName: result["buyerFullName"].(string), - ConsigneeMobile: result["buyerMobile"].(string), - ConsigneeAddress: result["buyerFullAddress"].(string), + ConsigneeName: utils.Interface2String(result["buyerFullName"]), + ConsigneeMobile: utils.Interface2String(result["buyerMobile"]), + ConsigneeAddress: utils.Interface2String(result["buyerFullAddress"]), CoordinateType: model.CoordinateTypeMars, BuyerComment: utils.TrimBlankChar(utils.Interface2String(result["orderBuyerRemark"])), ExpectedDeliveredTime: utils.Str2TimeWithDefault(utils.Interface2String(result["orderPreEndDeliveryTime"]), utils.DefaultTimeValue),