aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user