别邮箱
This commit is contained in:
@@ -3700,17 +3700,11 @@ func GetDiffJxStoreAndMTWMStoreInfo(ctx *jxcontext.Context, storeIDs []int) (err
|
||||
)
|
||||
courierStoreList, _ := dao.GetStoreCourierList(db, storeIDs, []int{model.VendorIDMTPS}, model.StoreStatusAll, model.StoreAuditStatusAll)
|
||||
for _, v := range courierStoreList {
|
||||
comment := ""
|
||||
tmpDiffStore := &TmpDiffStore{
|
||||
StoreID: v.StoreID,
|
||||
}
|
||||
shopInfo, _ := api.MtpsAPI.ShopQuery(utils.Int2Str(v.StoreID))
|
||||
if shopInfo == nil {
|
||||
continue
|
||||
}
|
||||
stores, _ := dao.GetStoreList(db, []int{v.StoreID}, nil, nil, nil, "")
|
||||
if len(stores) == 0 {
|
||||
continue
|
||||
}
|
||||
stores, err := dao.GetStoreList(db, []int{v.StoreID}, nil, nil, nil, "")
|
||||
store := stores[0]
|
||||
place, _ := dao.GetPlaceByCode(db, store.CityCode)
|
||||
tmpDiffStore.City = place.Name
|
||||
@@ -3718,10 +3712,15 @@ func GetDiffJxStoreAndMTWMStoreInfo(ctx *jxcontext.Context, storeIDs []int) (err
|
||||
tmpDiffStore.Coordinate = utils.Float64ToStr(jxutils.IntCoordinate2Standard(store.Lng)) + "," + utils.Float64ToStr(jxutils.IntCoordinate2Standard(store.Lat))
|
||||
tmpDiffStore.Address = store.Address
|
||||
tmpDiffStore.Phone = store.Tel1
|
||||
shopInfo, err := api.MtpsAPI.ShopQuery(utils.Int2Str(v.StoreID))
|
||||
if err != nil {
|
||||
tmpDiffStore.Comment += err.Error()
|
||||
tmpDiffStoreList = append(tmpDiffStoreList, tmpDiffStore)
|
||||
continue
|
||||
}
|
||||
tmpDiffStore.CoordinateMT = utils.Float64ToStr(jxutils.IntCoordinate2Standard(shopInfo.ShopLng)) + "," + utils.Float64ToStr(jxutils.IntCoordinate2Standard(shopInfo.ShopLat))
|
||||
tmpDiffStore.AddressMT = shopInfo.ShopAddress
|
||||
tmpDiffStore.PhoneMT = shopInfo.ContactPhone
|
||||
comment := ""
|
||||
if tmpDiffStore.Coordinate != tmpDiffStore.CoordinateMT {
|
||||
comment += "坐标不同;"
|
||||
}
|
||||
@@ -3731,9 +3730,7 @@ func GetDiffJxStoreAndMTWMStoreInfo(ctx *jxcontext.Context, storeIDs []int) (err
|
||||
if tmpDiffStore.Phone != tmpDiffStore.PhoneMT {
|
||||
comment += "电话不同;"
|
||||
}
|
||||
if comment != "" {
|
||||
tmpDiffStoreList = append(tmpDiffStoreList, tmpDiffStore)
|
||||
}
|
||||
tmpDiffStore.Comment = comment
|
||||
}
|
||||
|
||||
excelConf := &excel.Obj2ExcelSheetConfig{
|
||||
|
||||
Reference in New Issue
Block a user