From 4222d41cc1e687b2642394b986878747c178a727 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 9 May 2019 14:39:37 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8DStoreDetail2=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=8F=8F=E8=BF=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 3 ++- business/model/dao/store.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index e3cd810f3..f541be960 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -881,9 +881,10 @@ func RefreshMissingDadaStores(ctx *jxcontext.Context, storeID int, isAsync, isCo return nil, err }, storeList) tasksch.HandleTask(task, nil, true).Run() - hint = task.ID if !isAsync { _, err = task.GetResult(0) + } else { + hint = task.ID } return hint, err } diff --git a/business/model/dao/store.go b/business/model/dao/store.go index a228e97e9..3a6c07005 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -24,8 +24,8 @@ type StoreDetail struct { type StoreDetail2 struct { model.Store - VendorStoreID string `orm:"column(vendor_store_id)` // 这个在GetMissingDadaStores返回中指的是到家的vendorStoreID - DadaStoreID string `orm:"column(dada_store_id)` + VendorStoreID string `orm:"column(vendor_store_id)"` // 这个在GetMissingDadaStores返回中指的是到家的vendorStoreID + DadaStoreID string `orm:"column(dada_store_id)"` DistrictName string CityName string }