同步门店库存

This commit is contained in:
苏尹岚
2020-05-22 13:34:47 +08:00
parent a952ce7eb5
commit bc97ade75f
3 changed files with 19 additions and 2 deletions

View File

@@ -1215,11 +1215,13 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, vendorID int, vend
outStoreMap = storeMap
_, err = CurVendorSync.SyncStore(ctx, db, storeMap.VendorID, storeID, false, userName)
} else {
fmt.Println("test1", err.Error())
dao.Rollback(db)
}
}
}
if err != nil {
return outStoreMap, err
}
if vendorID == model.VendorIDJDShop {
//绑定京东商城后,需要对绑定的门店现有的和模板店相同且可售的商品设置京东商城的门店库存
//TODO SyncFlagSaleMask对京东商城来说修改门店商品状态就是修改库存