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

View File

@@ -6428,9 +6428,8 @@ var TaoStoreStatus = map[string]int{
}
// SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string) (error, string) {
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string, storeID int) (error, string) {
var (
storeID = ""
db *dao.DaoDB
errList errlist.ErrList
errIDName = make([]string, 0)
@@ -6452,7 +6451,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOr
// }
//}
storeMap := &model.StoreMap{
StoreID: utils.Str2Int(storeID),
StoreID: storeID,
VendorID: model.VendorIDTaoVegetable,
VendorOrgCode: vendorOrgCode,
Status: TaoStoreStatus[v.Status],

View File

@@ -1693,7 +1693,15 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
// @Failure 200 {object} controllers.CallResult
// @router /SingleBindTaoVegetable [post]
func (c *StoreController) SingleBindTaoVegetable() {
c.callSingleBindTaoVegetable(func(params *tStoreSingleBindTaoVegetableParams) (retVal interface{}, hint string, err error) {
taoBindInfo := make([]cms.TaoBindInfo, 0)
b := bytes.NewBufferString(params.BindInfos)
decoder := json.NewDecoder(b)
if err = decoder.Decode(&taoBindInfo); err == nil {
err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode, params.StoreID)
}
return nil, hint, err
})
}
// @Title 更新淘鲜达门店信息