From 2d9169c4e8e4217d25e6dd4e5e57bac530f8e45a Mon Sep 17 00:00:00 2001 From: richboo111 Date: Sun, 8 Oct 2023 09:45:35 +0800 Subject: [PATCH] 1 --- business/partner/purchase/tiktok_store/store.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index 4e81e2273..519543058 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -107,9 +107,10 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri ShopBatchCreateStoreParam = &shop_batchCreateStore_request.ShopBatchCreateStoreParam{ StoreList: []shop_batchCreateStore_request.StoreListItem{ { - RowId: 1, - Name: "京西菜市(" + storeDetail.Name + ")", - StoreCode: utils.Int2Str(storeDetail.Store.ID), + RowId: 1, + Name: "京西菜市(" + storeDetail.Name + ")", + //StoreCode: utils.Int2Str(storeDetail.Store.ID), + StoreCode: utils.Int2Str(storeID), Longitude: utils.Float64ToStr(jxutils.IntCoordinate2Standard(storeDetail.Lng)), Latitude: utils.Float64ToStr(jxutils.IntCoordinate2Standard(storeDetail.Lat)), Province: storeDetail.ProvinceName, @@ -145,7 +146,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri errList.AddErr(dao.CreateEntity(db, storeMap)) } vendorStoreIDs = utils.Int64ToStr(resp.ResultList[0].Store.StoreId) - if err := CreateOrUpdateAll(storeDetail.VendorOrgCode, int64(storeDetail.Store.ID), resp.ResultList[0].Store.StoreId, int64(storeDetail.DeliveryFeeDeductionFee), int64(storeMap.DeliveryFeeDeductionSill), utils.Str2Int64(storeDetail.YbStorePrefix), storeDetail.YbAppID); err != nil { + if err := CreateOrUpdateAll(storeDetail.VendorOrgCode, int64(storeID), resp.ResultList[0].Store.StoreId, int64(storeDetail.DeliveryFeeDeductionFee), int64(storeMap.DeliveryFeeDeductionSill), utils.Str2Int64(storeDetail.YbStorePrefix), storeDetail.YbAppID); err != nil { errList.AddErr(err) } }