This commit is contained in:
richboo111
2023-10-23 11:32:20 +08:00
parent 16c56a1b6e
commit af5ca9f371
2 changed files with 4 additions and 4 deletions

View File

@@ -6417,6 +6417,7 @@ func BatchUpdateMTStoreLogos(vendorOrgCode string, relInfo []MtRelInfo) (hint st
} }
type TaoBindInfo struct { type TaoBindInfo struct {
storeID int `json:"storeID"`
VendorStoreID string `json:"vendorStoreID"` VendorStoreID string `json:"vendorStoreID"`
VendorStoreName string `json:"vendorStoreName"` VendorStoreName string `json:"vendorStoreName"`
Status string `json:"status"` //渠道营业状态 Status string `json:"status"` //渠道营业状态
@@ -6428,7 +6429,7 @@ var TaoStoreStatus = map[string]int{
} }
// SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射 // SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string, storeID int) (error, string) { func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string) (error, string) {
var ( var (
db *dao.DaoDB db *dao.DaoDB
errList errlist.ErrList errList errlist.ErrList
@@ -6451,7 +6452,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOr
// } // }
//} //}
storeMap := &model.StoreMap{ storeMap := &model.StoreMap{
StoreID: storeID, StoreID: v.storeID,
VendorID: model.VendorIDTaoVegetable, VendorID: model.VendorIDTaoVegetable,
VendorOrgCode: vendorOrgCode, VendorOrgCode: vendorOrgCode,
Status: TaoStoreStatus[v.Status], Status: TaoStoreStatus[v.Status],

View File

@@ -1687,7 +1687,6 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
// @Description 批量绑定淘鲜达门店 // @Description 批量绑定淘鲜达门店
// @Param token header string true "认证token" // @Param token header string true "认证token"
// @Param vendorOrgCode formData string true "账号id" // @Param vendorOrgCode formData string true "账号id"
// @Param storeID formData int true "本地门店id"
// @Param bindInfos formData string true "TaoBindInfo" // @Param bindInfos formData string true "TaoBindInfo"
// @Success 200 {object} controllers.CallResult // @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult
@@ -1698,7 +1697,7 @@ func (c *StoreController) SingleBindTaoVegetable() {
b := bytes.NewBufferString(params.BindInfos) b := bytes.NewBufferString(params.BindInfos)
decoder := json.NewDecoder(b) decoder := json.NewDecoder(b)
if err = decoder.Decode(&taoBindInfo); err == nil { if err = decoder.Decode(&taoBindInfo); err == nil {
err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode, params.StoreID) err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode)
} }
return nil, hint, err return nil, hint, err
}) })