- use orderStartTime instead of orderPurchaseTime if doesn't exist
This commit is contained in:
@@ -299,6 +299,10 @@ func TransferLegacyJdOrder(ctx *jxcontext.Context, isAsync, isContinueWhenError
|
|||||||
orgCode := originalData["orgCode"].(string)
|
orgCode := originalData["orgCode"].(string)
|
||||||
if orgCode == "320406" {
|
if orgCode == "320406" {
|
||||||
orderPurchaseTime := utils.Interface2String(originalData["orderPurchaseTime"])
|
orderPurchaseTime := utils.Interface2String(originalData["orderPurchaseTime"])
|
||||||
|
if orderPurchaseTime == "" {
|
||||||
|
globals.SugarLogger.Debugf("TransferLegacyJdOrder abnormal order:%s", jdOrder.VendorOrderID)
|
||||||
|
orderPurchaseTime = utils.Interface2String(originalData["orderStartTime"])
|
||||||
|
}
|
||||||
if orderPurchaseTime != "" {
|
if orderPurchaseTime != "" {
|
||||||
orderDetail := &model.GoodsOrderOriginal{
|
orderDetail := &model.GoodsOrderOriginal{
|
||||||
VendorOrderID: jdOrder.VendorOrderID,
|
VendorOrderID: jdOrder.VendorOrderID,
|
||||||
@@ -309,7 +313,7 @@ func TransferLegacyJdOrder(ctx *jxcontext.Context, isAsync, isContinueWhenError
|
|||||||
}
|
}
|
||||||
orderDetailList = append(orderDetailList, orderDetail)
|
orderDetailList = append(orderDetailList, orderDetail)
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debugf("TransferLegacyJdOrder abnormal order:%s", jdOrder.VendorOrderID)
|
globals.SugarLogger.Debugf("TransferLegacyJdOrder abnormal2 order:%s", jdOrder.VendorOrderID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user