This commit is contained in:
苏尹岚
2021-02-04 15:22:31 +08:00
parent 6856ef2f8f
commit 09e751b83a
4 changed files with 77 additions and 17 deletions

View File

@@ -419,6 +419,7 @@ func (c *StoreController) BindPrinter() {
// @Description 同步门店资质信息至平台(当前只支持京东)
// @Param token header string true "认证token"
// @Param storeIDs formData string true "京西门店ID列表必须非空值"
// @Param vendorID formData int true "平台ID"
// @Param isAsync formData bool true "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
@@ -429,7 +430,7 @@ func (c *StoreController) SyncStoresQualify() {
var storeIDs []int
err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs)
if err == nil {
retVal, err = cms.SyncStoresQualify(params.Ctx, storeIDs, params.IsAsync, params.IsContinueWhenError)
retVal, err = cms.SyncStoresQualify(params.Ctx, storeIDs, params.VendorID, params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})