跨站点转移皇邮跟踪号
背景:鸟系统中根据皇邮的地址贴规范排版制作地址贴面单,然后每天生成preadvice csv文件ftp上传到皇邮服务器,有跟踪号的服务会在出单的时候分配一个跟踪号。但有时候一个站点某一个服务的跟踪号用完了,就需要麻烦IT后台从另一个站点分配一些过来。因此,将此功能做到系统。
1.针对皇邮服务,因此Consignment Delivery Agent统一是 Royalmail
2.目前线上只有Special Type=RoyalMail V2的服务可以转移跟踪号(其他类型的皇邮服务已经弃用)
3.转移的标准是Service code,Account number和Contract code要完全一致的服务才可以转移
Delivery Service ID | Delivery Service Name | Company ID | Consignment Delivery Agent Name | Service code External code | Account number External code 1 | Contract code External code 2 |
---|---|---|---|---|---|---|
1 | Royal Mail 1st Class | 1 | 0437485000 | RM-1ST | ||
3 | Royal Mail 1st Class Signed For | 1 | 0437485000 | RM-1ST-SIGN | ||
6 | Royal Mail Special Delivery (TM) 1:00 pm | 1 | 0437485000 | SD101 | ||
7 | Standard Int'l Postage EU | 1 | 0437485000 | RM-EU | ||
10 | Standard Int'l signed for Postage EU | 1 | 0437485000 | RM-EU-SIGN | ||
13 | Standard Int'l Postage Rest of World | 1 | 0437485000 | RM-ROW | ||
14 | Standard Int'l signed for Postage Rest of World | 1 | 0437485000 | RM-ROW-SIGN | ||
34 | Royal Mail Tracked 48 (Internal) | 1 | 0437485000 | TPL01 | 0437485000 | 580697TL |
45 | Royal Mail Tracked with Signature (Internal) | 1 | 0437485000 | TPL01 | 0437485000 | 580697TL |
105 | Royal Mail 2nd Class | 1 | 0437485000 | RM | ||
137 | Royal Mail 2.8+ | 1 | 0437485000 | TPL02 | 0437485000 | 582760TL |
138 | Royal Mail 2.8+ with Signature | 1 | 0437485000 | TPL02 | 0437485000 | 582760TL |
139 | Royal Mail Tracked 48 | 1 | 0437485000 | |||
140 | Royal Mail Tracked with Signature | 1 | 0437485000 | |||
1333 | 1st Class Letter | 1 | 0437485000 | |||
1334 | RM 24 | 1 | 0437485000 | |||
1488 | Royal Mail 2nd Class Packet | 1 | 0437485000 | 0438737000 | ||
1496 | Royal Mail 2nd Class Letter & Large Letter | 1 | 0437485000 | RM | ||
1513 | Royal Mail 2.8 Large | 1 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1514 | Royal Mail 2.8 Large with Signature | 1 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1569 | 跟踪UK 48 | 11 | 0437485000 | TPL03 | 0437485000 | 587020TL |
1731 | 平邮UK 24 | 11 | 0438737000 | 0438737000 | ||
1870 | 跟踪UK 48(不计泡) | 11 | 0437485000 | TPL03 | 0437485000 | 587020TL |
1871 | 平邮UK 24(不计泡) | 11 | 0438737000 | 0438737000 | ||
1980 | UNTRACK UK 24 | 11 | 0438737000 | 0438737000 | ||
1981 | UNTRACK UK 24(不计泡) | 11 | 0438737000 | 0438737000 | ||
775 | Royal Mail Tracked 48 (Internal) | 16 | 0437485000 | TPL01 | 0437485000 | 580697TL |
776 | Royal Mail Tracked with Signature (Internal) | 16 | 0437485000 | TPL01 | 0437485000 | 580697TL |
777 | Royal Mail 1st Class | 16 | 0437485000 | RM-1ST | ||
778 | Royal Mail 1st Class Signed For | 16 | 0437485000 | RM-1ST-SIGN | ||
1395 | Royal Mail Tracked 48 | 16 | 0437485000 | |||
1396 | Royal Mail Tracked with Signature | 16 | 0437485000 | |||
1976 | 1st Class Letter | 16 | 0437485000 | |||
1977 | RM 24 | 16 | 0437485000 | |||
937 | Royal Mail 1st Class | 19 | 0437485000 | RM-1ST | ||
938 | Royal Mail 1st Class Signed For | 19 | 0437485000 | RM-1ST-SIGN | ||
939 | Royal Mail Tracked 48 (Internal) | 19 | 0437485000 | TPL01 | 0437485000 | 580697TL |
940 | Royal Mail Tracked with Signature (Internal) | 19 | 0437485000 | TPL01 | 0437485000 | 580697TL |
941 | Royal Mail 2.8+ (Internal) | 19 | 0437485000 | TPL02 | 0437485000 | 582760TL |
942 | Royal Mail 2.8+ with Signature | 19 | 0437485000 | TPL02 | 0437485000 | 582760TL |
943 | Royal Mail Tracked 48 | 19 | 0437485000 | |||
944 | Royal Mail Tracked with Signature | 19 | 0437485000 | |||
1110 | Standard Int'l Postage EU | 19 | 0437485000 | RM-EU | ||
1111 | Standard Int'l signed for Postage EU | 19 | 0437485000 | RM-EU-SIGN | ||
1112 | Standard Int'l Postage Rest of World | 19 | 0437485000 | RM-ROW | ||
1113 | Standard Int'l signed for Postage Rest of World | 19 | 0437485000 | RM-ROW-SIGN | ||
1309 | Royal Mail 2nd Class | 19 | 0437485000 | RM | ||
1441 | 2nd Class Large Letter | 19 | 0437485000 | RM | ||
1489 | Royal Mail Special Delivery (TM) 1:00 pm | 19 | 0437485000 | SD101 | ||
1495 | Royal Mail 2nd Class Packet | 19 | 0437485000 | |||
1511 | Royal Mail 2.8 Large | 19 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1512 | Royal Mail 2.8 Large with Signature | 19 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1126 | Royal Mail 1st Class | 20 | 0437485000 | RM-1ST | ||
1127 | Royal Mail 1st Class Signed For | 20 | 0437485000 | RM-1ST-SIGN | ||
1129 | Royal Mail Special Delivery (TM) 1:00 pm | 20 | 0437485000 | SD101 | ||
1130 | Standard Int'l Postage EU | 20 | 0437485000 | RM-EU | ||
1131 | Standard Int'l signed for Postage EU | 20 | 0437485000 | RM-EU-SIGN | ||
1133 | Standard Int'l Postage Rest of World | 20 | 0437485000 | RM-ROW | ||
1134 | Standard Int'l signed for Postage Rest of World | 20 | 0437485000 | RM-ROW-SIGN | ||
1137 | Royal Mail Tracked 48 (Internal) | 20 | 0437485000 | TPL01 | 0437485000 | 580697TL |
1138 | Royal Mail Tracked with Signature (Internal) | 20 | 0437485000 | TPL01 | 0437485000 | 580697TL |
1174 | Royal Mail 2nd Class | 20 | 0437485000 | |||
1176 | Royal Mail 2.8+ | 20 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1177 | Royal Mail 2.8+ with Signature | 20 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1178 | Royal Mail Tracked 48 | 20 | 0437485000 | |||
1179 | Royal Mail Tracked with Signature | 20 | 0437485000 | |||
1337 | 1st Class Letter | 20 | 0437485000 | |||
1338 | RM 24 | 20 | 0437485000 | |||
1487 | Royal Mail 2nd Class Packet | 20 | 0437485000 | |||
1596 | Royal Mail 2.8 Large | 20 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1597 | Royal Mail 2.8 Large with Signature | 20 | 0437485000 | TPL02 | 0437485000 | 582760TL |
1740 | Royal Mail 2nd Class Letter & Large Letter | 20 | 0437485000 | RM | ||
2325 | Royal Mail Tracked 48 | 26 | 0437485000 | TPL01 | 0437485000 | 580697TL |
2326 | Royal Mail 1st Class Large Letter | 26 | 0437485000 | RM-1ST | ||
2327 | Royal Mail 2nd Class Large Letter | 26 | 0437485000 | RM | ||
2328 | Royal Mail 2nd Class Packet | 26 | 0437485000 | |||
2329 | Royal Mail Tracked with Signature | 26 | 0437485000 | TPL01 | 0437485000 | 580697TL |
1661 | 跟踪UK48 | 28 | 0437485000 | TPL01 | 0230098000 | 215143TL |
1733 | 平邮UK24 | 28 | 0438737000 | 0438737000 | ||
1732 | 平邮UK24 | 31 | 0438737000 | 0438737000 | ||
1766 | 跟踪UK48 | 31 | 0437485000 | TPL03 | 0437485000 | 587020TL |
具体操作如下:
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,并移动到目的服务所在站点