跨站点转移皇邮跟踪号

背景:鸟系统中根据皇邮的地址贴规范排版制作地址贴面单,然后每天生成preadvice csv文件ftp上传到皇邮服务器,有跟踪号的服务会在出单的时候分配一个跟踪号。但有时候一个站点某一个服务的跟踪号用完了,就需要麻烦IT后台从另一个站点分配一些过来。因此,将此功能做到系统。

1.针对皇邮服务,因此Consignment Delivery Agent统一是 Royalmail

2.目前线上只有Special Type=RoyalMail V2的服务可以转移跟踪号(其他类型的皇邮服务已经弃用)

3.转移的标准是Service code,Account number和Contract code要完全一致的服务才可以转移

Delivery Service IDDelivery Service Name

Company ID

Consignment Delivery Agent Name

Service code

External code

Account number

External code 1

Contract code

External code 2

1Royal Mail 1st Class10437485000RM-1ST

3Royal Mail 1st Class Signed For10437485000RM-1ST-SIGN

6Royal Mail Special Delivery (TM) 1:00 pm10437485000SD101

7Standard Int'l Postage EU10437485000RM-EU

10Standard Int'l signed for Postage EU10437485000RM-EU-SIGN

13Standard Int'l Postage Rest of World10437485000RM-ROW

14Standard Int'l signed for Postage Rest of World10437485000RM-ROW-SIGN

34Royal Mail Tracked 48 (Internal)10437485000TPL010437485000580697TL
45Royal Mail Tracked with Signature (Internal)10437485000TPL010437485000580697TL
105Royal Mail 2nd Class10437485000RM

137Royal Mail 2.8+10437485000TPL020437485000582760TL
138Royal Mail 2.8+ with Signature10437485000TPL020437485000582760TL
139Royal Mail Tracked 4810437485000


140Royal Mail Tracked with Signature10437485000


13331st Class Letter10437485000


1334RM 2410437485000


1488Royal Mail 2nd Class Packet10437485000
0438737000
1496Royal Mail 2nd Class Letter & Large Letter10437485000RM

1513Royal Mail 2.8 Large10437485000TPL020437485000582760TL
1514Royal Mail 2.8 Large with Signature10437485000TPL020437485000582760TL
1569跟踪UK 48110437485000TPL030437485000587020TL
1731平邮UK 24110438737000
0438737000
1870跟踪UK 48(不计泡)110437485000TPL030437485000587020TL
1871平邮UK 24(不计泡)110438737000
0438737000
1980UNTRACK UK 24110438737000
0438737000
1981UNTRACK UK 24(不计泡)110438737000
0438737000
775Royal Mail Tracked 48 (Internal)160437485000TPL010437485000580697TL
776Royal Mail Tracked with Signature (Internal)160437485000TPL010437485000580697TL
777Royal Mail 1st Class160437485000RM-1ST

778Royal Mail 1st Class Signed For160437485000RM-1ST-SIGN

1395Royal Mail Tracked 48160437485000


1396Royal Mail Tracked with Signature160437485000


19761st Class Letter160437485000


1977RM 24160437485000


937Royal Mail 1st Class190437485000RM-1ST

938Royal Mail 1st Class Signed For190437485000RM-1ST-SIGN

939Royal Mail Tracked 48 (Internal)190437485000TPL010437485000580697TL
940Royal Mail Tracked with Signature (Internal)190437485000TPL010437485000580697TL
941Royal Mail 2.8+ (Internal)190437485000TPL020437485000582760TL
942Royal Mail 2.8+ with Signature190437485000TPL020437485000582760TL
943Royal Mail Tracked 48190437485000


944Royal Mail Tracked with Signature190437485000


1110Standard Int'l Postage EU190437485000RM-EU

1111Standard Int'l signed for Postage EU190437485000RM-EU-SIGN

1112Standard Int'l Postage Rest of World190437485000RM-ROW

1113Standard Int'l signed for Postage Rest of World190437485000RM-ROW-SIGN

1309Royal Mail 2nd Class190437485000RM

14412nd Class Large Letter190437485000RM

1489Royal Mail Special Delivery (TM) 1:00 pm190437485000SD101

1495Royal Mail 2nd Class Packet190437485000


1511Royal Mail 2.8 Large190437485000TPL020437485000582760TL
1512Royal Mail 2.8 Large with Signature190437485000TPL020437485000582760TL
1126Royal Mail 1st Class200437485000RM-1ST

1127Royal Mail 1st Class Signed For200437485000RM-1ST-SIGN

1129Royal Mail Special Delivery (TM) 1:00 pm200437485000SD101

1130Standard Int'l Postage EU200437485000RM-EU

1131Standard Int'l signed for Postage EU200437485000RM-EU-SIGN

1133Standard Int'l Postage Rest of World200437485000RM-ROW

1134Standard Int'l signed for Postage Rest of World200437485000RM-ROW-SIGN

1137Royal Mail Tracked 48 (Internal)200437485000TPL010437485000580697TL
1138Royal Mail Tracked with Signature (Internal)200437485000TPL010437485000580697TL
1174Royal Mail 2nd Class200437485000


1176Royal Mail 2.8+200437485000TPL020437485000582760TL
1177Royal Mail 2.8+ with Signature200437485000TPL020437485000582760TL
1178Royal Mail Tracked 48200437485000


1179Royal Mail Tracked with Signature200437485000


13371st Class Letter200437485000


1338RM 24200437485000


1487Royal Mail 2nd Class Packet200437485000


1596Royal Mail 2.8 Large200437485000TPL020437485000582760TL
1597Royal Mail 2.8 Large with Signature200437485000TPL020437485000582760TL
1740Royal Mail 2nd Class Letter & Large Letter200437485000RM

2325Royal Mail Tracked 48260437485000TPL010437485000580697TL
2326Royal Mail 1st Class Large Letter260437485000RM-1ST

2327Royal Mail 2nd Class Large Letter260437485000RM

2328Royal Mail 2nd Class Packet260437485000


2329Royal Mail Tracked with Signature260437485000TPL010437485000580697TL
1661跟踪UK48280437485000TPL010230098000215143TL
1733平邮UK24280438737000
0438737000
1732平邮UK24310438737000
0438737000
1766跟踪UK48310437485000TPL030437485000587020TL


具体操作如下:

1.登录需要被转移(即缺少)皇邮跟踪号的站点,进入设置→ 杂项→ Royalmail Barcode 并点击批量转移(Batch Transfer)


Target:指该站点下选择的目的邮递服务。表示该服务的某个service code的跟踪号用完了,需要从其他站点补充

Source:指可以提供跟踪号的站点和与目的邮递服务的special type,account number和contract code完全一致的来源数据

Param:指需要转移的跟踪号的数量


2.确定“目的邮递服务”等参数

2.1列出所有皇邮的邮递服务 (special type为RMV2)供选择

2.2选择某个服务后,查询这个服务是否有多个皇邮服务代码,多个话,全部列出来

选N/A表示要转几个barcode里service_code为空的过来

选TLPXX的是指要转几个barcode里service code为TLP的过来

2.3显示这个服务过去一个月用了多少跟踪号,以便参考需要转移多少过来

这样基本就确定“目的地”啦

3.选择数据源

3.1列举出可以提供皇邮跟踪号的站点

3.2列举出可以提供皇邮跟踪号的服务

可以提供跟踪号的服务要求:与目的邮递服务的special type,account number和contract code完全一致


3.4显示该来源服务的跟踪号在过去三个月内的使用情况,供参考


4.填写需要转移的数量并确认转移


5.从最后面的跟踪号开始,把delivery_service_id改为目的的邮递服务id,并移动到目的服务所在站点