This commit is contained in:
苏尹岚
2021-03-17 13:40:55 +08:00
parent 435a3a1a04
commit 30e4b26ebf

View File

@@ -1225,7 +1225,6 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
return nil, err
}
} else if vendorID == model.VendorIDJDShop {
storeMap.VendorOrgCode = "1"
if storeMap.VendorStoreID == "" {
storeMap.SyncStatus = model.SyncFlagNewMask //京东商城要去建店
} else {
@@ -1262,11 +1261,6 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
}
}()
if err = dao.CreateEntity(db, storeMap); err == nil {
if vendorID == model.VendorIDJDShop {
storeMap2 := storeMap
storeMap2.VendorOrgCode = "2"
dao.CreateEntity(db, storeMap2)
}
dao.Commit(db)
outStoreMap = storeMap
} else {