aa
This commit is contained in:
@@ -1225,7 +1225,6 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else if vendorID == model.VendorIDJDShop {
|
} else if vendorID == model.VendorIDJDShop {
|
||||||
storeMap.VendorOrgCode = "1"
|
|
||||||
if storeMap.VendorStoreID == "" {
|
if storeMap.VendorStoreID == "" {
|
||||||
storeMap.SyncStatus = model.SyncFlagNewMask //京东商城要去建店
|
storeMap.SyncStatus = model.SyncFlagNewMask //京东商城要去建店
|
||||||
} else {
|
} 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 err = dao.CreateEntity(db, storeMap); err == nil {
|
||||||
if vendorID == model.VendorIDJDShop {
|
|
||||||
storeMap2 := storeMap
|
|
||||||
storeMap2.VendorOrgCode = "2"
|
|
||||||
dao.CreateEntity(db, storeMap2)
|
|
||||||
}
|
|
||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
outStoreMap = storeMap
|
outStoreMap = storeMap
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user