This commit is contained in:
gazebo
2019-04-18 19:17:38 +08:00
parent 49ca57a882
commit d93906c5e9
2 changed files with 3 additions and 1 deletions

View File

@@ -814,6 +814,8 @@ func AddStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID
if err != nil && len(storeList) > 0 {
storeList[0].DadaStoreID = storeCourierMap.VendorStoreID
err = updateOrCreateDadaStore(storeList[0])
} else {
globals.SugarLogger.Debugf("AddStoreCourierMap GetMissingDadaStores error:%v, len(storeList):%d", err, len(storeList))
}
}
outStoreCourierMap = storeCourierMap

View File

@@ -132,7 +132,7 @@ func GetMissingDadaStores(db *DaoDB, storeID int, isMustHaveJdStore bool) (store
sql := `
SELECT t1.*,
t2.vendor_store_id vendor_store_id,
city.name city_name, district.name district_name
city.name city_name, district.name district_name,
t3.vendor_store_id dada_store_id
FROM store t1
LEFT JOIN store_map t2 ON t1.id = t2.store_id AND t2.vendor_id = ? AND t2.deleted_at = ?