diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 3d3cac8de..56a3b8a6e 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -4736,8 +4736,8 @@ func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword, vendorStoreI FROM meituan_showd ` sqlGD := ` - SELECT name, 10 vendor_id, wmpoiid vendor_store_id,'' org_code,1 vendor_status,address, phone tel1,pj shop_score,month_sales_tip recent_order_num, - city_name,goods_number sku_count, district_name, brand_name, third_category category, shipping_time + SELECT name, 10 vendor_id, wmpoiid vendor_store_id, '' org_code, 1 vendor_status, address, phone tel1, pj shop_score, month_sales_tip recent_order_num, + city_name, goods_number sku_count, lat, lng, district_name, brand_name, third_category category, shipping_time FROM gaode_showd ` //lat, lng, diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 3ac4336b8..f3ea1892d 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -5282,7 +5282,7 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto globals.SugarLogger.Debugf("doStoreSkuAudit cover storeID : %v nameID: %v", storeID, skuBindInfo.NameID) } } else { - return false, fmt.Errorf("未查询到该门店商品价,storeID: %v, nameID: %V", storeID, skuBindInfo.NameID) + return false, fmt.Errorf("未查询到该门店商品价,storeID: %v, nameID: %v", storeID, skuBindInfo.NameID) } storeSkuAudit.Type = model.StoreSkuAuditTypePrice storeSkuAudit.OriginUnitPrice = int(storeSkus[0].UnitPrice) @@ -5350,7 +5350,7 @@ func doStoreSkuAuditForGy(ctx *jxcontext.Context, storeIDs []int, skuBindInfos [ } globals.SugarLogger.Debugf("doStoreSkuAudit cover storeID : %v nameID: %v", storeID, skuBindInfo.NameID) } else { - return false, fmt.Errorf("未查询到该门店商品价,storeID: %v, nameID: %V", storeID, skuBindInfo.NameID) + return false, fmt.Errorf("未查询到该门店商品价,storeID: %v, nameID: %v", storeID, skuBindInfo.NameID) } storeSkuAudit.Type = model.StoreSkuAuditTypePrice storeSkuAudit.OriginUnitPrice = int(storeSkus[0].UnitPrice) diff --git a/business/jxstore/cms/store_test.go b/business/jxstore/cms/store_test.go index bb39605e4..3b991cff1 100644 --- a/business/jxstore/cms/store_test.go +++ b/business/jxstore/cms/store_test.go @@ -1,12 +1,11 @@ package cms import ( - "testing" - "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/jxutils/jxcontext" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" + "testing" ) func TestGetStoresVendorSnapshot(t *testing.T) { diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 8b5865fec..fc43b12e9 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -587,7 +587,7 @@ func OnPayFinished(orderPay *model.OrderPay) (err error) { if storeOrder.StoreID == 668357 { storeOrder.StoreID = 131 } - partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, 131, storeOrder.ActualPayPrice, 1, 1, "") + partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, 131, storeOrder.ActualPayPrice, 1, 1, orderPay.VendorOrderID) } } case model.PayTypeTL_BrandBillCharge: diff --git a/tests/default_test.go b/tests/default_test.go index 6d662d28b..0c27e2e76 100644 --- a/tests/default_test.go +++ b/tests/default_test.go @@ -1,6 +1,7 @@ package test import ( + "fmt" "path/filepath" "runtime" "testing" @@ -19,6 +20,8 @@ func init() { // TestGet is a sample to run an endpoint test func TestGet(t *testing.T) { + fmt.Println("123") + //r, _ := http.NewRequest("GET", "/v1/object", nil) //w := httptest.NewRecorder() //beego.BeeApp.Handlers.ServeHTTP(w, r)