1
This commit is contained in:
@@ -6428,9 +6428,8 @@ var TaoStoreStatus = map[string]int{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射
|
// 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 (
|
var (
|
||||||
storeID = ""
|
|
||||||
db *dao.DaoDB
|
db *dao.DaoDB
|
||||||
errList errlist.ErrList
|
errList errlist.ErrList
|
||||||
errIDName = make([]string, 0)
|
errIDName = make([]string, 0)
|
||||||
@@ -6452,7 +6451,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOr
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
storeMap := &model.StoreMap{
|
storeMap := &model.StoreMap{
|
||||||
StoreID: utils.Str2Int(storeID),
|
StoreID: storeID,
|
||||||
VendorID: model.VendorIDTaoVegetable,
|
VendorID: model.VendorIDTaoVegetable,
|
||||||
VendorOrgCode: vendorOrgCode,
|
VendorOrgCode: vendorOrgCode,
|
||||||
Status: TaoStoreStatus[v.Status],
|
Status: TaoStoreStatus[v.Status],
|
||||||
|
|||||||
@@ -1693,7 +1693,15 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
|
|||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /SingleBindTaoVegetable [post]
|
// @router /SingleBindTaoVegetable [post]
|
||||||
func (c *StoreController) SingleBindTaoVegetable() {
|
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 更新淘鲜达门店信息
|
// @Title 更新淘鲜达门店信息
|
||||||
|
|||||||
Reference in New Issue
Block a user