- fk
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = ?
|
||||
|
||||
Reference in New Issue
Block a user