字段打错了yybid

This commit is contained in:
苏尹岚
2020-03-25 14:32:32 +08:00
parent a2dd19a585
commit dadeb3b996
2 changed files with 6 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ type StoreSkuExt struct {
JdID string `orm:"column(sku_jd_id);null;index" json:"jdID"`
EbaiID string `orm:"column(ebai_id);index" json:"ebaiID"`
MtwmID string `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的只是为了DAO取数据语句一致
YbID string `orm:"column(yb_id);index" json:"YybID"`
YbID string `orm:"column(yb_id);index" json:"ybID"`
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
EbaiSyncStatus int8 `orm:"default(2)" json:"ebaiSyncStatus"`

View File

@@ -187,7 +187,11 @@ func (p *PurchaseHandler) CreateStoreCategory(ctx *jxcontext.Context, storeID in
func (p *PurchaseHandler) UpdateStoreCategory(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeCat *dao.SkuStoreCatInfo) (err error) {
if globals.EnableYbStoreWrite {
vendorOrgCode, err := buildYbConfigs(storeID)
if err != nil {
return err
}
err = api.YinBaoAPI.UpdateCategory(vendorOrgCode, storeCat.VendorCatID, storeCat.Name, storeCat.ParentCatName)
}
return err
}