You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
honor-dd-light-ds-java/doc/move/const/class.DdLogisticsCodeConst.php

269 lines
52 KiB
PHTML

<?php
class DdLogisticsCodeConst {
const jd = 'jd';
const shunfeng = 'shunfeng';
const zhongtong = 'zhongtong';
const yunda = 'yunda';
const yuantong = 'yuantong';
const huitongkuaidi = 'huitongkuaidi';
const shentong = 'shentong';
const debangwuliu = 'debangwuliu';
const debangkuaiyun = 'debangkuaiyun';
const youzhengguonei = 'youzhengguonei';
const ems = 'ems';
const tiantian = 'tiantian';
const youshuwuliu = 'youshuwuliu';
const zhaijisong = 'zhaijisong';
const zhimakaimen = 'zhimakaimen';
const guotongkuaidi = 'guotongkuaidi';
const pjbest = 'pjbest';
const quanfengkuaidi = 'quanfengkuaidi';
const bsht = 'bsht';
const annengwuliu = 'annengwuliu';
const jiuyescm = 'jiuyescm';
const ndwl = 'ndwl';
const zhongtongphone = 'zhongtongphone';
const jinguangsudikuaijian = 'jinguangsudikuaijian';
const dangdangorder = 'dangdangorder';
const ytkd = 'ytkd';
const wanxiangwuliu = 'wanxiangwuliu';
const kuaijiesudi = 'kuaijiesudi';
const suer = 'suer';
const suning = 'suning';
const weitepai = 'weitepai';
const jym56 = 'jym56';
const jiayiwuliu = 'jiayiwuliu';
const rufengda = 'rufengda';
const wondersyd = 'wondersyd';
const zengyisudi = 'zengyisudi';
const kuayue = 'kuayue';
const lntjs = 'lntjs';
const baishiwuliu = 'baishiwuliu';
const zhongtongkuaiyun = 'zhongtongkuaiyun';
const yuantongkuaiyun = 'yuantongkuaiyun';
const rrs = 'rrs';
const exfresh = 'exfresh';
const danniao = 'danniao';
const dsukuaidi = 'dsukuaidi';
const dangdang = 'dangdang';
const jtexpress = 'jtexpress';
const anxl = 'anxl';
const yundakuaiyun = 'yundakuaiyun';
const dfkuaidi = 'dfkuaidi';
const zhongyouex = 'zhongyouex';
const fengwang = 'fengwang';
const annto = 'annto';
const savor = 'savor';
const huangmajia = 'huangmajia';
const jiayunmeiwuliu = 'jiayunmeiwuliu';
const shanxijianhua = 'shanxijianhua';
const sfwl = 'sfwl';
const shenghuiwuliu = 'shenghuiwuliu';
const sxjdfreight = 'sxjdfreight';
const shunfengkuaiyun = 'shunfengkuaiyun';
const subida = 'subida';
const taijin = 'taijin';
const tiandihuayu = 'tiandihuayu';
const xinfengwuliu = 'xinfengwuliu';
const xintianweng = 'xintianweng';
const yimidida = 'yimidida';
const ztky = 'ztky';
const zilegongmao = 'zilegongmao';
const yzguonei = 'yzguonei';
const yzdsbk = 'yzdsbk';
public static function getLogisticsNameAndCompanyCodeMap() {
return [
'京东物流' => self::jd,
'顺丰速运' => self::shunfeng,
'中通快递' => self::zhongtong,
'韵达速递' => self::yunda,
'圆通速递' => self::yuantong,
'百世汇通' => self::huitongkuaidi,
'申通快递' => self::shentong,
'德邦物流' => self::debangwuliu,
'德邦快运' => self::debangkuaiyun,
'邮政国内小包' => self::youzhengguonei,
'EMS' => self::ems,
'天天快递' => self::tiantian,
'优速物流' => self::youshuwuliu,
'宅急送' => self::zhaijisong,
'芝麻开门' => self::zhimakaimen,
'国通快递' => self::guotongkuaidi,
'品骏快递' => self::pjbest,
'全峰快递' => self::quanfengkuaidi,
'百事亨通' => self::bsht,
'安能物流' => self::annengwuliu,
'九曳供应链' => self::jiuyescm,
'南方传媒物流' => self::ndwl,
'中通(带电话)' => self::zhongtongphone,
'京广速递' => self::jinguangsudikuaijian,
'当当' => self::dangdangorder,
'运通中港快递' => self::ytkd,
'万象物流' => self::wanxiangwuliu,
'快捷快递' => self::kuaijiesudi,
'速尔快递' => self::suer,
'苏宁物流' => self::suning,
'微特派' => self::weitepai,
'加运美速递' => self::jym56,
'佳怡物流' => self::jiayiwuliu,
'如风达' => self::rufengda,
'中邮速递' => self::wondersyd,
'增益速递' => self::zengyisudi,
'跨越速运' => self::kuayue,
'特急送' => self::lntjs,
'百世物流' => self::baishiwuliu,
'中通快运' => self::zhongtongkuaiyun,
'圆通快运' => self::yuantongkuaiyun,
'日日顺物流' => self::rrs,
'安鲜达' => self::exfresh,
'丹鸟' => self::danniao,
'D速快递' => self::dsukuaidi,
'当当物流' => self::dangdang,
'极兔速递' => self::jtexpress,
'安迅物流' => self::anxl,
'韵达快运' => self::yundakuaiyun,
'东风快递' => self::dfkuaidi,
'众邮快递' => self::zhongyouex,
'丰网速运' => self::fengwang,
'顺丰快运' => self::shunfengkuaiyun,
'安得物流' => self::annto,
'海信物流' => self::savor,
'黄马甲' => self::huangmajia,
'加运美' => self::jiayunmeiwuliu,
'山西建华' => self::shanxijianhua,
'盛丰物流' => self::sfwl,
'盛辉物流' => self::shenghuiwuliu,
'顺心捷达' => self::sxjdfreight,
'速必达' => self::subida,
'泰进物流' => self::taijin,
'天地华宇' => self::tiandihuayu,
'信丰物流' => self::xinfengwuliu,
'信天翁同城速配' => self::xintianweng,
'壹米滴答' => self::yimidida,
'紫乐工贸' => self::zilegongmao,
'中铁快运' => self::ztky,
'邮政国内' => self::yzguonei,
];
}
public static function getDdLogisticsIdAndCompanyCodeMap() {
return [
self::jd => 30,
self::shunfeng => 12,
self::zhongtong => 15,
self::yunda => 9,
self::yuantong => 7,
self::huitongkuaidi => 20,
self::shentong => 8,
self::debangwuliu => 13,
self::youzhengguonei => 19,
self::ems => 17,
self::tiantian => 14,
self::youshuwuliu => 11,
self::zhaijisong => 21,
self::zhimakaimen => 440,
self::guotongkuaidi => 25,
self::pjbest => 447,
self::quanfengkuaidi => 16,
self::bsht => 221,
self::annengwuliu => 32,
self::jiuyescm => 191,
self::ndwl => 317,
self::zhongtongphone => 424,
self::jinguangsudikuaijian => 517,
self::dangdangorder => 192,
self::ytkd => 321,
self::wanxiangwuliu => 31,
self::kuaijiesudi => 26,
self::suer => 243,
self::suning => 202,
self::weitepai => 18,
self::jym56 => 158,
self::jiayiwuliu => 10,
self::rufengda => 22,
self::wondersyd => 151,
self::zengyisudi => 23,
self::kuayue => 397,
self::lntjs => 289,
self::baishiwuliu => 637,
self::zhongtongkuaiyun => 846,
self::yuantongkuaiyun => 909,
self::rrs => 641,
self::exfresh => 284,
self::danniao => 1017,
self::dsukuaidi => 1018,
self::dangdang => 1016,
self::jtexpress => 1021,
self::anxl => 631,
self::yundakuaiyun => 952,
self::dfkuaidi => 1019,
self::zhongyouex => 1022,
self::fengwang => 1033,
self::savor => 1025,
self::huangmajia => 37,
self::jiayunmeiwuliu => 327,
self::shanxijianhua => 1037,
self::sfwl => 1026,
self::shenghuiwuliu => 244,
self::sxjdfreight => 1024,
self::shunfengkuaiyun => 1035,
self::subida => 716,
self::taijin => 1032,
self::tiandihuayu => 518,
self::xinfengwuliu => 36,
self::xintianweng => 1039,
self::yimidida => 897,
self::ztky => 140,
self::zilegongmao => 1038,
self::yzguonei => 854,
];
}
public static function getDdCompanyIdAndCompanyInfoMap() {
$jsonStr = <<<EOL
{"7":{"companyId":"7","companyCode":"yuantong","name":"圆通快递(常用)","pinyin":"yuantongkuaidi"},"8":{"companyId":"8","companyCode":"shentong","name":"申通快递(常用)","pinyin":"shentongkuaidi"},"9":{"companyId":"9","companyCode":"yunda","name":"韵达快递(常用)","pinyin":"yundakuaidi"},"10":{"companyId":"10","companyCode":"jiayiwuliu","name":"佳怡物流","pinyin":"jiayiwuliu"},"11":{"companyId":"11","companyCode":"youshuwuliu","name":"优速物流","pinyin":"yousuwuliu"},"12":{"companyId":"12","companyCode":"shunfeng","name":"顺丰快递(常用)","pinyin":"shunfengkuaidi"},"13":{"companyId":"13","companyCode":"debangwuliu","name":"德邦快递(常用)","pinyin":"debangkuaidi"},"14":{"companyId":"14","companyCode":"tiantian","name":"天天快递","pinyin":"tiantiankuaidi"},"15":{"companyId":"15","companyCode":"zhongtong","name":"中通速递(常用)","pinyin":"zhongtongsudi"},"16":{"companyId":"16","companyCode":"quanfengkuaidi","name":"全峰快递","pinyin":"quanfengkuaidi"},"17":{"companyId":"17","companyCode":"ems","name":"EMS(常用)","pinyin":"ems"},"18":{"companyId":"18","companyCode":"weitepai","name":"微特派","pinyin":"weitepai"},"19":{"companyId":"19","companyCode":"youzhengguonei","name":"邮政国内小包(常用)","pinyin":"youzhengguoneixiaobao"},"20":{"companyId":"20","companyCode":"huitongkuaidi","name":"百世快递(常用)","pinyin":"baishikuaidi"},"21":{"companyId":"21","companyCode":"zhaijisong","name":"宅急送","pinyin":"zhaijisong"},"22":{"companyId":"22","companyCode":"rufengda","name":"如风达","pinyin":"rufengda"},"23":{"companyId":"23","companyCode":"zengyisudi","name":"增益速递","pinyin":"zengyisudi"},"25":{"companyId":"25","companyCode":"guotongkuaidi","name":"国通快递","pinyin":"guotongkuaidi"},"26":{"companyId":"26","companyCode":"kuaijiesudi","name":"快捷快递","pinyin":"kuaijiekuaidi"},"30":{"companyId":"30","companyCode":"jd","name":"京东快递(常用)","pinyin":"jingdongkuaidi"},"31":{"companyId":"31","companyCode":"wanxiangwuliu","name":"万象物流","pinyin":"wanxiangwuliu"},"32":{"companyId":"32","companyCode":"annengwuliu","name":"安能物流","pinyin":"annengwuliu"},"34":{"companyId":"34","companyCode":"fedex","name":"联邦快递","pinyin":"lianbangkuaidi"},"35":{"companyId":"35","companyCode":"ycgky","name":"远成快递","pinyin":"yuanchengkuaidi"},"36":{"companyId":"36","companyCode":"xinfengwuliu","name":"信丰物流","pinyin":"xinfengwuliu"},"37":{"companyId":"37","companyCode":"huangmajia","name":"黄马甲","pinyin":"huangmajia"},"39":{"companyId":"39","companyCode":"jinan","name":"金岸物流","pinyin":"jinanwuliu"},"40":{"companyId":"40","companyCode":"haidaibao","name":"海带宝","pinyin":"haidaibao"},"41":{"companyId":"41","companyCode":"cllexpress","name":"澳通华人物流","pinyin":"aotonghuarenwuliu"},"42":{"companyId":"42","companyCode":"banma","name":"斑马物流","pinyin":"banmawuliu"},"43":{"companyId":"43","companyCode":"deutschepost","name":"德国(Deutsche Post)","pinyin":"deguodeutsche_post"},"44":{"companyId":"44","companyCode":"suningorder","name":"苏宁订单","pinyin":"suningdingdan"},"45":{"companyId":"45","companyCode":"yiex","name":"宜送物流","pinyin":"yisongwuliu"},"46":{"companyId":"46","companyCode":"aolau","name":"AOL澳通速递","pinyin":"aolaotongsudi"},"47":{"companyId":"47","companyCode":"trakpak","name":"TRAKPAK","pinyin":"trakpak"},"48":{"companyId":"48","companyCode":"gts","name":"GTS快递","pinyin":"gtskuaidi"},"49":{"companyId":"49","companyCode":"tongdaxing","name":"通达兴物流","pinyin":"tongdaxingwuliu"},"50":{"companyId":"50","companyCode":"hkposten","name":"中国香港(HongKong Post)英文","pinyin":"zhongguoxiangganghongkong_postyingwen"},"51":{"companyId":"51","companyCode":"junfengguoji","name":"骏丰国际速递","pinyin":"junfengguojisudi"},"52":{"companyId":"52","companyCode":"pochta","name":"俄罗斯邮政(Russian Post)","pinyin":"eluosiyouzhengrussian_post"},"53":{"companyId":"53","companyCode":"ydglobe","name":"云达通","pinyin":"yundatong"},"54":{"companyI
EOL;
return json_decode($jsonStr, true);
}
public static function getDdWaybillLogisticsCodes() {
return [
self::shunfeng,
self::jd,
self::zhongtong,
self::yunda,
self::yuantong,
self::huitongkuaidi,
self::debangwuliu,
self::debangkuaiyun,
self::zhongyouex,
self::ems,
self::jtexpress,
self::shentong,
self::danniao,
self::zhaijisong,
self::youshuwuliu,
self::youzhengguonei,
self::fengwang,
self::yzdsbk,
];
}
public static function getNoSupportCancelWaybillLogisticsCodes() {
return [
self::shunfeng,
self::zhongyouex,
self::huitongkuaidi,
];
}
public static function getSupportWbHomeDeliveryLogisticCodes() {
return [
self::zhongtong,
self::yunda,
self::yuantong,
];
}
}