- set promotion status to PromotionStatusRemoteCreated when manually associated.

This commit is contained in:
gazebo
2018-11-08 16:44:30 +08:00
parent 69aad912cd
commit 7f8a7e7820

View File

@@ -352,6 +352,8 @@ func CreateJdPromotion(ctx *jxcontext.Context, isIDJd bool, isAsync, isContinueW
promotion.CreateType = model.PromotionCreateTypeByVendor
if status, ok := mapData[keyPromotionStatus]; ok {
promotion.Status = status.(int)
} else {
promotion.Status = model.PromotionStatusRemoteCreated
}
if source, ok := mapData[keyPromotionSource]; ok {
promotion.Source = source.(string)