install.sql 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. SET FOREIGN_KEY_CHECKS=0;
  2. -- ----------------------------
  3. -- Table structure for __PREFIX__expressquery
  4. -- ----------------------------
  5. CREATE TABLE IF NOT EXISTS `__PREFIX__expressquery` (
  6. `id` int(11) NOT NULL AUTO_INCREMENT,
  7. `name` varchar(50) DEFAULT '',
  8. `express` varchar(50) DEFAULT '',
  9. `coding` varchar(10) NOT NULL DEFAULT '',
  10. PRIMARY KEY (`id`)
  11. ) ENGINE=InnoDB AUTO_INCREMENT=96 DEFAULT CHARSET=utf8 COMMENT='快递公司表';
  12. -- ----------------------------
  13. -- Records of __PREFIX__expressquery
  14. -- ----------------------------
  15. INSERT INTO `__PREFIX__expressquery` VALUES ('1', '顺丰', 'shunfeng', 'SF');
  16. INSERT INTO `__PREFIX__expressquery` VALUES ('2', '申通', 'shentong', 'STO');
  17. INSERT INTO `__PREFIX__expressquery` VALUES ('3', '韵达快运', 'yunda', 'YD');
  18. INSERT INTO `__PREFIX__expressquery` VALUES ('4', '天天快递', 'tiantian', 'HHTT');
  19. INSERT INTO `__PREFIX__expressquery` VALUES ('5', '圆通速递', 'yuantong', 'YTO');
  20. INSERT INTO `__PREFIX__expressquery` VALUES ('6', '中通速递', 'zhongtong', 'ZTO');
  21. INSERT INTO `__PREFIX__expressquery` VALUES ('7', 'ems快递', 'ems', 'EMS');
  22. INSERT INTO `__PREFIX__expressquery` VALUES ('8', '百世快递', 'huitongkuaidi', 'HTKY');
  23. INSERT INTO `__PREFIX__expressquery` VALUES ('9', '全峰快递', 'quanfengkuaidi', '');
  24. INSERT INTO `__PREFIX__expressquery` VALUES ('10', '宅急送', 'zhaijisong', 'ZJS');
  25. INSERT INTO `__PREFIX__expressquery` VALUES ('11', 'aae全球专递', 'aae', 'AAE');
  26. INSERT INTO `__PREFIX__expressquery` VALUES ('12', '安捷快递', 'anjie', 'AJ');
  27. INSERT INTO `__PREFIX__expressquery` VALUES ('13', '安信达快递', 'anxindakuaixi', '');
  28. INSERT INTO `__PREFIX__expressquery` VALUES ('14', '彪记快递', 'biaojikuaidi', '');
  29. INSERT INTO `__PREFIX__expressquery` VALUES ('15', 'bht', 'bht', 'BHT');
  30. INSERT INTO `__PREFIX__expressquery` VALUES ('16', '百福东方国际物流', 'baifudongfang', '');
  31. INSERT INTO `__PREFIX__expressquery` VALUES ('17', '中国东方(COE)', 'coe', '');
  32. INSERT INTO `__PREFIX__expressquery` VALUES ('18', '长宇物流', 'changyuwuliu', '');
  33. INSERT INTO `__PREFIX__expressquery` VALUES ('19', '大田物流', 'datianwuliu', 'DTWL');
  34. INSERT INTO `__PREFIX__expressquery` VALUES ('20', '德邦物流', 'debangwuliu', 'DBL');
  35. INSERT INTO `__PREFIX__expressquery` VALUES ('21', 'dhl', 'dhl', 'DHL');
  36. INSERT INTO `__PREFIX__expressquery` VALUES ('22', 'dpex', 'dpex', 'DPEX');
  37. INSERT INTO `__PREFIX__expressquery` VALUES ('23', 'd速快递', 'dsukuaidi', 'DSWL');
  38. INSERT INTO `__PREFIX__expressquery` VALUES ('24', '递四方', 'disifang', 'D4PX');
  39. INSERT INTO `__PREFIX__expressquery` VALUES ('25', 'fedex(国外)', 'fedex', 'FEDEX_GJ');
  40. INSERT INTO `__PREFIX__expressquery` VALUES ('26', '飞康达物流', 'feikangda', 'FKD');
  41. INSERT INTO `__PREFIX__expressquery` VALUES ('27', '凤凰快递', 'fenghuangkuaidi', '');
  42. INSERT INTO `__PREFIX__expressquery` VALUES ('28', '飞快达', 'feikuaida', '');
  43. INSERT INTO `__PREFIX__expressquery` VALUES ('29', '国通快递', 'guotongkuaidi', 'GTO');
  44. INSERT INTO `__PREFIX__expressquery` VALUES ('30', '港中能达物流', 'ganzhongnengda', '');
  45. INSERT INTO `__PREFIX__expressquery` VALUES ('31', '广东邮政物流', 'guangdongyouzhengwuliu', 'GDEMS');
  46. INSERT INTO `__PREFIX__expressquery` VALUES ('32', '共速达', 'gongsuda', 'GSD');
  47. INSERT INTO `__PREFIX__expressquery` VALUES ('33', '恒路物流', 'hengluwuliu', 'HLWL');
  48. INSERT INTO `__PREFIX__expressquery` VALUES ('34', '华夏龙物流', 'huaxialongwuliu', 'HXLWL');
  49. INSERT INTO `__PREFIX__expressquery` VALUES ('35', '海红', 'haihongwangsong', '');
  50. INSERT INTO `__PREFIX__expressquery` VALUES ('36', '海外环球', 'haiwaihuanqiu', '');
  51. INSERT INTO `__PREFIX__expressquery` VALUES ('37', '佳怡物流', 'jiayiwuliu', 'JYWL');
  52. INSERT INTO `__PREFIX__expressquery` VALUES ('38', '京广速递', 'jinguangsudikuaijian', 'JGSD');
  53. INSERT INTO `__PREFIX__expressquery` VALUES ('39', '急先达', 'jixianda', 'JXD');
  54. INSERT INTO `__PREFIX__expressquery` VALUES ('40', '佳吉物流', 'jiajiwuliu', 'CNEX');
  55. INSERT INTO `__PREFIX__expressquery` VALUES ('41', '加运美物流', 'jymwl', 'JYM');
  56. INSERT INTO `__PREFIX__expressquery` VALUES ('42', '金大物流', 'jindawuliu', '');
  57. INSERT INTO `__PREFIX__expressquery` VALUES ('43', '嘉里大通', 'jialidatong', '');
  58. INSERT INTO `__PREFIX__expressquery` VALUES ('44', '晋越快递', 'jykd', 'JYKD');
  59. INSERT INTO `__PREFIX__expressquery` VALUES ('45', '快捷速递', 'kuaijiesudi', '');
  60. INSERT INTO `__PREFIX__expressquery` VALUES ('46', '联邦快递(国内)', 'lianb', '');
  61. INSERT INTO `__PREFIX__expressquery` VALUES ('47', '联昊通物流', 'lianhaowuliu', 'LHT');
  62. INSERT INTO `__PREFIX__expressquery` VALUES ('48', '龙邦物流', 'longbanwuliu', 'LB');
  63. INSERT INTO `__PREFIX__expressquery` VALUES ('49', '立即送', 'lijisong', 'LJSKD');
  64. INSERT INTO `__PREFIX__expressquery` VALUES ('50', '乐捷递', 'lejiedi', '');
  65. INSERT INTO `__PREFIX__expressquery` VALUES ('51', '民航快递', 'minghangkuaidi', 'MHKD');
  66. INSERT INTO `__PREFIX__expressquery` VALUES ('52', '美国快递', 'meiguokuaidi', '');
  67. INSERT INTO `__PREFIX__expressquery` VALUES ('53', '门对门', 'menduimen', 'MDM');
  68. INSERT INTO `__PREFIX__expressquery` VALUES ('54', 'OCS', 'ocs', 'OCS');
  69. INSERT INTO `__PREFIX__expressquery` VALUES ('55', '配思货运', 'peisihuoyunkuaidi', '');
  70. INSERT INTO `__PREFIX__expressquery` VALUES ('56', '全晨快递', 'quanchenkuaidi', 'QCKD');
  71. INSERT INTO `__PREFIX__expressquery` VALUES ('57', '全际通物流', 'quanjitong', '');
  72. INSERT INTO `__PREFIX__expressquery` VALUES ('58', '全日通快递', 'quanritongkuaidi', 'QRT');
  73. INSERT INTO `__PREFIX__expressquery` VALUES ('59', '全一快递', 'quanyikuaidi', 'UAPEX');
  74. INSERT INTO `__PREFIX__expressquery` VALUES ('60', '如风达', 'rufengda', 'RFD');
  75. INSERT INTO `__PREFIX__expressquery` VALUES ('61', '三态速递', 'santaisudi', '');
  76. INSERT INTO `__PREFIX__expressquery` VALUES ('62', '盛辉物流', 'shenghuiwuliu', '');
  77. INSERT INTO `__PREFIX__expressquery` VALUES ('63', '速尔物流', 'suer', 'SURE');
  78. INSERT INTO `__PREFIX__expressquery` VALUES ('64', '盛丰物流', 'shengfeng', 'SFWL');
  79. INSERT INTO `__PREFIX__expressquery` VALUES ('65', '赛澳递', 'saiaodi', 'SAD');
  80. INSERT INTO `__PREFIX__expressquery` VALUES ('66', '天地华宇', 'tiandihuayu', 'HOAU');
  81. INSERT INTO `__PREFIX__expressquery` VALUES ('67', 'tnt', 'tnt', 'TNT');
  82. INSERT INTO `__PREFIX__expressquery` VALUES ('68', 'ups', 'ups', 'UPS');
  83. INSERT INTO `__PREFIX__expressquery` VALUES ('69', '万家物流', 'wanjiawuliu', 'WJWL');
  84. INSERT INTO `__PREFIX__expressquery` VALUES ('70', '文捷航空速递', 'wenjiesudi', '');
  85. INSERT INTO `__PREFIX__expressquery` VALUES ('71', '伍圆', 'wuyuan', '');
  86. INSERT INTO `__PREFIX__expressquery` VALUES ('72', '万象物流', 'wxwl', 'WXWL');
  87. INSERT INTO `__PREFIX__expressquery` VALUES ('73', '新邦物流', 'xinbangwuliu', '');
  88. INSERT INTO `__PREFIX__expressquery` VALUES ('74', '信丰物流', 'xinfengwuliu', 'XFEX');
  89. INSERT INTO `__PREFIX__expressquery` VALUES ('75', '亚风速递', 'yafengsudi', 'YFSD');
  90. INSERT INTO `__PREFIX__expressquery` VALUES ('76', '一邦速递', 'yibangwuliu', '');
  91. INSERT INTO `__PREFIX__expressquery` VALUES ('77', '优速物流', 'youshuwuliu', 'UC');
  92. INSERT INTO `__PREFIX__expressquery` VALUES ('78', '邮政快递包裹', 'youzhengguonei', 'YZBK');
  93. INSERT INTO `__PREFIX__expressquery` VALUES ('79', '邮政国际包裹挂号信', 'youzhengguoji', '');
  94. INSERT INTO `__PREFIX__expressquery` VALUES ('80', '远成物流', 'yuanchengwuliu', 'YCWL');
  95. INSERT INTO `__PREFIX__expressquery` VALUES ('81', '源伟丰快递', 'yuanweifeng', '');
  96. INSERT INTO `__PREFIX__expressquery` VALUES ('82', '元智捷诚快递', 'yuanzhijiecheng', '');
  97. INSERT INTO `__PREFIX__expressquery` VALUES ('83', '运通快递', 'yuntongkuaidi', 'YTKD');
  98. INSERT INTO `__PREFIX__expressquery` VALUES ('84', '越丰物流', 'yuefengwuliu', '');
  99. INSERT INTO `__PREFIX__expressquery` VALUES ('85', '源安达', 'yad', 'YADEX');
  100. INSERT INTO `__PREFIX__expressquery` VALUES ('86', '银捷速递', 'yinjiesudi', '');
  101. INSERT INTO `__PREFIX__expressquery` VALUES ('87', '中铁快运', 'zhongtiekuaiyun', 'ZTKY');
  102. INSERT INTO `__PREFIX__expressquery` VALUES ('88', '中邮物流', 'zhongyouwuliu', 'ZYKD');
  103. INSERT INTO `__PREFIX__expressquery` VALUES ('89', '忠信达', 'zhongxinda', '');
  104. INSERT INTO `__PREFIX__expressquery` VALUES ('90', '芝麻开门', 'zhimakaimen', '');
  105. INSERT INTO `__PREFIX__expressquery` VALUES ('91', '安能物流', 'annengwuliu', 'ANE');
  106. INSERT INTO `__PREFIX__expressquery` VALUES ('92', '京东快递', 'jd', 'JD');
  107. INSERT INTO `__PREFIX__expressquery` VALUES ('93', '微特派', 'weitepai', 'WTP');
  108. INSERT INTO `__PREFIX__expressquery` VALUES ('94', '九曳供应链', 'jiuyescm', 'JIUYE');
  109. INSERT INTO `__PREFIX__expressquery` VALUES ('95', '跨越速运', 'kuayue', 'KYSY');
  110. -- ----------------------------
  111. -- Table structure for __PREFIX__expressquery_cache
  112. -- ----------------------------
  113. CREATE TABLE IF NOT EXISTS `__PREFIX__expressquery_cache` (
  114. `id` int(11) NOT NULL AUTO_INCREMENT,
  115. `expresssn` varchar(50) DEFAULT NULL,
  116. `express` varchar(50) DEFAULT NULL,
  117. `lasttime` int(11) NOT NULL,
  118. `datas` text,
  119. PRIMARY KEY (`id`),
  120. KEY `idx_expresssn` (`expresssn`),
  121. KEY `idx_express` (`express`)
  122. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='查询缓存表';
  123. -- ----------------------------
  124. -- Records of __PREFIX__expressquery_cache
  125. -- ----------------------------
  126. -- ----------------------------
  127. -- Table structure for __PREFIX__expressquery_config
  128. -- ----------------------------
  129. CREATE TABLE IF NOT EXISTS `__PREFIX__expressquery_config` (
  130. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  131. `express_type` enum('kuaidiniao','kuaidi100','ali') NOT NULL DEFAULT 'kuaidiniao' COMMENT '类型选择',
  132. `express_bird_userid` varchar(100) DEFAULT NULL COMMENT '用户ID',
  133. `express_bird_apikey` varchar(100) DEFAULT NULL COMMENT 'API key',
  134. `express_bird_customer_name` varchar(100) DEFAULT NULL COMMENT '京东商家编码',
  135. `express_bird_cache` int(10) unsigned DEFAULT '0' COMMENT '缓存时长(分钟)',
  136. `kuaidi100_type` enum('free','company') NOT NULL DEFAULT 'free' COMMENT '接口类型',
  137. `apikey` varchar(100) DEFAULT NULL COMMENT '授权密匙(Key)',
  138. `customer` varchar(100) DEFAULT NULL COMMENT '公司编号(Customer)',
  139. `aliappcode` varchar(100) DEFAULT NULL COMMENT '阿里云APPCODE',
  140. PRIMARY KEY (`id`)
  141. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='物流接口配置表';