同步门店库存

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

@@ -377,5 +377,11 @@ func (c *SyncController) SyncStoreSkusFromYb() {
// @Failure 200 {object} controllers.CallResult
// @router /SyncJdsStoresSkus [put]
func (c *SyncController) SyncJdsStoresSkus() {
c.callSyncJdsStoresSkus(func(params *tSyncSyncJdsStoresSkusParams) (retVal interface{}, errCode string, err error) {
var storeIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err == nil {
retVal, err = cms.CurVendorSync.SyncJdsStoresSkus(params.Ctx, storeIDs, params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})
}