/*
 Navicat Premium Dump SQL

 Source Server         : 10.10.14.210
 Source Server Type    : MySQL
 Source Server Version : 50742 (5.7.42-log)
 Source Host           : 10.10.14.210:22066
 Source Schema         : yltcharge

 Target Server Type    : MySQL
 Target Server Version : 50742 (5.7.42-log)
 File Encoding         : 65001

 Date: 14/08/2024 13:24:34
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_ext_dz_log
-- ----------------------------
DROP TABLE IF EXISTS `t_ext_dz_log`;
CREATE TABLE `t_ext_dz_log`  (
  `order_no` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单号',
  `charge_plate_no` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '车牌号',
  `request_body` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '请求内容',
  `result` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '返回代码',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`order_no`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_ext_dz_log
-- ----------------------------
INSERT INTO `t_ext_dz_log` VALUES ('2021040710440684484', '吉A88888', '{\"Uid\":\"E4450C69-C4C7-4983-8D4C-A52737ACBB0D\",\"Op\":\"discount\",\"Ver\":2,\"Sign\":\"1CEDBA635F2911884644AB72F9A8BE80\",\"Data\":{\"Serial\":\"498D8F13-54E6-4F57-B92A-9C958ED047CB\",\"DiscountType\":2,\"License\":\"吉A88888\",\"DiscountFee\":0,\"DiscountMinute\":120,\"Name\":\"驿来特停车优惠券\"},\"Timestamp\":1723536970212}', '{\"Code\":0,\"Message\":\"未查询到数据或停车记录\",\"Tag\":\"吉A88888\",\"Ver\":2.0,\"Uid\":\"E4450C69-C4C7-4983-8D4C-A52737ACBB0D\",\"AppId\":\"\",\"MacId\":null,\"Op\":\"discount\",\"Data\":{\"Serial\":\"498D8F13-54E6-4F57-B92A-9C958ED047CB\",\"License\":\"吉A88888\"}}', '2024-08-13 04:16:10');
INSERT INTO `t_ext_dz_log` VALUES ('2022012911045715187', '吉A88888', '{\"orderNo\":\"2022012911045715187\",\"serviceCode\":\"syncChargePilePay\",\"plateNo\":\"吉A88888\",\"totalMoney\":59,\"seviceMoney\":25,\"freeType\":1,\"deviceId\":930,\"deviceName\":\"驿来特充电站(中东港站)-2#\",\"parkId\":431008480,\"elecMoney\":34,\"reqId\":\"8F447F58-8C1E-4923-8C73-0C2FE1950485\",\"appId\":\"13492\",\"spaceNo\":\"201051\",\"freeTime\":7200,\"startTime\":\"2022-01-29 11:05:17.0\",\"stationName\":\"驿来特充电站(中东港站)\",\"endTime\":\"2022-01-29 11:06:30.0\",\"power\":35.3,\"freeMoney\":0,\"key\":\"60194762AECCDF05FFC17C85391292A4\",\"ts\":1723536954988,\"stationId\":114}', '{\"data\":null,\"resCode\":\"1\",\"resMsg\":\"没有找到车辆信息\"}', '2024-08-13 04:15:56');

-- ----------------------------
-- Table structure for t_ext_dz_station
-- ----------------------------
DROP TABLE IF EXISTS `t_ext_dz_station`;
CREATE TABLE `t_ext_dz_station`  (
  `station_id` int(11) NOT NULL DEFAULT 0 COMMENT '车场ID',
  `station_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '车场名称',
  `third_party_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '第三方道闸的供应商名称',
  `third_party_station_id` int(255) NOT NULL DEFAULT 0 COMMENT '第三方的车场ID',
  `third_party_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '第三方车场对接的URL',
  `third_party_appId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '第三方车场对接的appId',
  `third_party_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '第三方车场对接的pwd',
  `b_use` int(11) NOT NULL DEFAULT 1 COMMENT '是否启用',
  `mini_receivable_total_fee` int(11) NOT NULL DEFAULT 0 COMMENT '最小充电费用，单位：分，0表示不限制',
  `mini_charge_ah` float NOT NULL DEFAULT 0 COMMENT '最小充电度数，单位：度，0表示不限制',
  `freeMoney` int(11) NOT NULL DEFAULT 0 COMMENT '减免金额,单位：元',
  `freeTime` int(11) NOT NULL DEFAULT 0 COMMENT '减名时间,单位：秒',
  PRIMARY KEY (`station_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '与科拓闸机对接，充电结束，免费2小时停车费用。' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_ext_dz_station
-- ----------------------------
INSERT INTO `t_ext_dz_station` VALUES (85, '驿来特充电站（西点药业湛江路）', '智门科技', 0, 'http://www.wmarkj.com:12004/Cloud', '-1', '-1', 1, 0, 0, 0, 0);
INSERT INTO `t_ext_dz_station` VALUES (114, '驿来特充电站(中东港站)', '科拓', 431008480, 'http://kp-open.keytop.cn/unite-api/api/wec/SyncChargePilePay', '13492', '28a2b82f3e9c48338eafbf84fecf8f9b', 1, 0, 0, 0, 7200);

SET FOREIGN_KEY_CHECKS = 1;
