修复达达区域名称转换的bug
This commit is contained in:
@@ -1892,7 +1892,7 @@ func SyncStoresCourierInfo(ctx *jxcontext.Context, storeIDs []int, isAsync, isCo
|
|||||||
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||||
vendorID := batchItemList[0].(int)
|
vendorID := batchItemList[0].(int)
|
||||||
storeDetail2, err := dao.GetStoreDetail2(db, store.ID, "", vendorID)
|
storeDetail2, err := dao.GetStoreDetail2(db, store.ID, "", vendorID)
|
||||||
if err == nil && storeDetail2.VendorStoreID != "" && storeDetail2.CourierStatus != model.StoreStatusDisabled {
|
if err == nil && storeDetail2.VendorStoreID != "" /*&& storeDetail2.CourierStatus != model.StoreStatusDisabled*/ {
|
||||||
if handler := partner.GetDeliveryPlatformFromVendorID(vendorID); handler != nil {
|
if handler := partner.GetDeliveryPlatformFromVendorID(vendorID); handler != nil {
|
||||||
if updateHandler, ok := handler.Handler.(partner.IDeliveryUpdateStoreHandler); ok {
|
if updateHandler, ok := handler.Handler.(partner.IDeliveryUpdateStoreHandler); ok {
|
||||||
updateHandler.UpdateStore(ctx, storeDetail2)
|
updateHandler.UpdateStore(ctx, storeDetail2)
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ func Init() {
|
|||||||
|
|
||||||
func doDailyWork() {
|
func doDailyWork() {
|
||||||
globals.SugarLogger.Debug("doDailyWork")
|
globals.SugarLogger.Debug("doDailyWork")
|
||||||
|
cms.SyncStoresCourierInfo(jxcontext.AdminCtx, nil, false, true)
|
||||||
netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true)
|
netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true)
|
||||||
// cms.CurVendorSync.FullSyncStoresSkus(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDJD}, nil, true, true)
|
// cms.CurVendorSync.FullSyncStoresSkus(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDJD}, nil, true, true)
|
||||||
|
|
||||||
|
|||||||
@@ -124,8 +124,8 @@ func StoreDetail2ShopInfo(storeDetail *dao.StoreDetail2) (shopInfo *dadaapi.Shop
|
|||||||
cityName = districtName
|
cityName = districtName
|
||||||
districtName, _ = api.AutonaviAPI.GetCoordinateTownInfo(lng, lat)
|
districtName, _ = api.AutonaviAPI.GetCoordinateTownInfo(lng, lat)
|
||||||
}
|
}
|
||||||
if dadaDistrictMap[storeDetail.DistrictName] != "" {
|
if dadaDistrictMap[districtName] != "" {
|
||||||
storeDetail.DistrictName = dadaDistrictMap[storeDetail.DistrictName]
|
districtName = dadaDistrictMap[storeDetail.DistrictName]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
shopInfo = &dadaapi.ShopInfo{
|
shopInfo = &dadaapi.ShopInfo{
|
||||||
|
|||||||
Reference in New Issue
Block a user