This commit is contained in:
richboo111
2023-09-07 16:48:50 +08:00
parent cb6cad8229
commit 9be24c7e60
2 changed files with 4 additions and 3 deletions

View File

@@ -6395,7 +6395,7 @@ var TaoStoreStatus = map[string]int{
}
// SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo) (error, string) {
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string) (error, string) {
var (
storeID = ""
db *dao.DaoDB
@@ -6420,7 +6420,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo) (error,
storeMap := &model.StoreMap{
StoreID: utils.Str2Int(storeID),
VendorID: model.VendorIDTaoVegetable,
VendorOrgCode: "",
VendorOrgCode: vendorOrgCode,
Status: TaoStoreStatus[v.Status],
DeliveryType: model.StoreDeliveryTypeByStore,
SyncStatus: 0,

View File

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