同步门店库存
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user