1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user