- set promotion status to PromotionStatusRemoteCreated when manually associated.
This commit is contained in:
@@ -352,6 +352,8 @@ func CreateJdPromotion(ctx *jxcontext.Context, isIDJd bool, isAsync, isContinueW
|
|||||||
promotion.CreateType = model.PromotionCreateTypeByVendor
|
promotion.CreateType = model.PromotionCreateTypeByVendor
|
||||||
if status, ok := mapData[keyPromotionStatus]; ok {
|
if status, ok := mapData[keyPromotionStatus]; ok {
|
||||||
promotion.Status = status.(int)
|
promotion.Status = status.(int)
|
||||||
|
} else {
|
||||||
|
promotion.Status = model.PromotionStatusRemoteCreated
|
||||||
}
|
}
|
||||||
if source, ok := mapData[keyPromotionSource]; ok {
|
if source, ok := mapData[keyPromotionSource]; ok {
|
||||||
promotion.Source = source.(string)
|
promotion.Source = source.(string)
|
||||||
|
|||||||
Reference in New Issue
Block a user