This commit is contained in:
苏尹岚
2021-02-02 11:41:17 +08:00
parent faef2c35a8
commit 00766183c7
4 changed files with 13 additions and 7 deletions

View File

@@ -2666,7 +2666,7 @@ func deleteJdsSku(db *dao.DaoDB, skuID int) (err error) {
return err return err
} }
func UpdateSkuExinfoMap(ctx *jxcontext.Context, nameIDs []int, imgWaterMark string, vendorID int, exPrefix, fromTime, toTime string, isAsync, isContinueWhenError bool) (hint string, err error) { func UpdateSkuExinfoMap(ctx *jxcontext.Context, nameIDs []int, imgWaterMark string, brandID, vendorID int, vendorOrgCode, exPrefix, fromTime, toTime string, isAsync, isContinueWhenError bool) (hint string, err error) {
var ( var (
fromTimeP time.Time fromTimeP time.Time
toTimeP time.Time toTimeP time.Time

View File

@@ -768,6 +768,9 @@ type Brand struct {
Name string `orm:"size(255)" json:"name"` //品牌名 Name string `orm:"size(255)" json:"name"` //品牌名
Logo string `orm:"size(255)" json:"logo"` //品牌logo Logo string `orm:"size(255)" json:"logo"` //品牌logo
BrandType int `json:"brandType"` //品牌类型
IsOpen int `json:"isOpen"` //主要三方配送用是否配送默认0表示打开1表示关
EbaiSupplierID int `orm:"column(ebai_supplier_id)" json:"ebaiSupplierID"` //饿百供应商ID
} }
func (*Brand) TableUnique() [][]string { func (*Brand) TableUnique() [][]string {

View File

@@ -16,4 +16,5 @@ type VendorOrgCode struct {
VendorType string `json:"vendorType"` //platform 普通平台, delivery 三方配送平台 VendorType string `json:"vendorType"` //platform 普通平台, delivery 三方配送平台
IsJxCat int `json:"isJxCat"` //是否使用京西分类0默认使用 IsJxCat int `json:"isJxCat"` //是否使用京西分类0默认使用
IsOpen int `json:"isOpen"` //主要三方配送用是否配送默认0表示打开1表示关 IsOpen int `json:"isOpen"` //主要三方配送用是否配送默认0表示打开1表示关
EmpowerURL string `orm:"column(empower_url)" json:"empowerURL"` //授权地址
} }

View File

@@ -541,7 +541,9 @@ func (c *SkuController) RefreshJdDepot() {
// @Param fromDate formData string true "生效开始时间,格式 2006-01-01 " // @Param fromDate formData string true "生效开始时间,格式 2006-01-01 "
// @Param toDate formData string true "生效结束时间,格式 2006-01-01 " // @Param toDate formData string true "生效结束时间,格式 2006-01-01 "
// @Param imgWaterMark formData string false "商品水印图" // @Param imgWaterMark formData string false "商品水印图"
// @Param brandID formData int false "品牌ID"
// @Param vendorID formData int true "平台ID" // @Param vendorID formData int true "平台ID"
// @Param vendorOrgCode formData string true "平台账号"
// @Param isAsync formData bool false "是否异步" // @Param isAsync formData bool false "是否异步"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false" // @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult // @Success 200 {object} controllers.CallResult
@@ -551,7 +553,7 @@ func (c *SkuController) UpdateSkuExinfoMap() {
c.callUpdateSkuExinfoMap(func(params *tSkuUpdateSkuExinfoMapParams) (retVal interface{}, errCode string, err error) { c.callUpdateSkuExinfoMap(func(params *tSkuUpdateSkuExinfoMapParams) (retVal interface{}, errCode string, err error) {
var skuIDList []int var skuIDList []int
if err = jxutils.Strings2Objs(params.NameIDs, &skuIDList); err == nil { if err = jxutils.Strings2Objs(params.NameIDs, &skuIDList); err == nil {
retVal, err = cms.UpdateSkuExinfoMap(params.Ctx, skuIDList, params.ImgWaterMark, params.VendorID, params.ExPrefix, params.FromDate, params.ToDate, params.IsAsync, params.IsContinueWhenError) retVal, err = cms.UpdateSkuExinfoMap(params.Ctx, skuIDList, params.ImgWaterMark, params.BrandID, params.VendorID, params.VendorOrgCode, params.ExPrefix, params.FromDate, params.ToDate, params.IsAsync, params.IsContinueWhenError)
} }
return retVal, "", err return retVal, "", err
}) })