CREATE TABLE `xhpc_user_login`
(
    `user_login_id` bigint(20) NOT NULL AUTO_INCREMENT,
    `app_user_id`   bigint(20) DEFAULT NULL COMMENT '用户id',
    `account`       varchar(50)  DEFAULT NULL COMMENT '账号',
    `user_type`     int(4) NOT NULL COMMENT '用户类型 0 C端用户 1 流量方用户 2社区用户 3B端用户）',
    `open_id`       varchar(50)  DEFAULT NULL COMMENT 'openid',
    `type`          int(4) DEFAULT '0' COMMENT '1 微信 2支付宝',
    `status`        int(4) DEFAULT '1' COMMENT '0退出 1登录',
    `del_flag`      int(1) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_by`     varchar(64)  DEFAULT '' COMMENT '创建者',
    `create_time`   datetime     DEFAULT NULL COMMENT '创建时间',
    `update_by`     varchar(64)  DEFAULT '' COMMENT '更新者',
    `update_time`   datetime     DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `remark`        varchar(500) DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`user_login_id`)
) ENGINE = InnoDB
  DEFAULT CHARSET = utf8mb4 COMMENT ='小程序用户最后一次登录记录';

CREATE TABLE `xhpc_tenant` (
                               `tenant_id` varchar(12) NOT NULL DEFAULT '000000' COMMENT '租户ID',
                               `tenant_name` varchar(50) NOT NULL COMMENT '租户名称',
                               `domain` varchar(255) DEFAULT NULL COMMENT '域名地址',
                               `background_url` varchar(1000) DEFAULT NULL COMMENT '系统背景',
                               `linkman` varchar(20) DEFAULT NULL COMMENT '联系人',
                               `contact_number` varchar(20) DEFAULT NULL COMMENT '联系电话',
                               `address` varchar(255) DEFAULT NULL COMMENT '联系地址',
                               `station_quote` int(11) DEFAULT '-1' COMMENT '场站限额',
                               `station_pile_quote` int(11) DEFAULT '-1' COMMENT '每站桩限额',
                               `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
                               `create_user` bigint(64) DEFAULT NULL COMMENT '创建人',
                               `create_dept` bigint(64) DEFAULT NULL COMMENT '创建部门',
                               `create_time` datetime DEFAULT NULL COMMENT '创建时间',
                               `update_user` bigint(64) DEFAULT NULL COMMENT '修改人',
                               `update_time` datetime DEFAULT NULL COMMENT '修改时间',
                               `status` int(2) DEFAULT '0' COMMENT '状态(0-未启用，1-正常，2-停用)',
                               `is_deleted` int(2) DEFAULT '0' COMMENT '是否已删除（0-正常，2-已删除）',
                               PRIMARY KEY (`tenant_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='租户表';

CREATE TABLE `xhpc_device_message`
(
    `device_message_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息id',
    `type`              varchar(50)                    DEFAULT NULL COMMENT '设备类型（PILE-充电桩，TERMINAL-终端）',
    `serial_number`     varchar(32)                    DEFAULT NULL COMMENT '设备流水号',
    `content`           text CHARACTER SET utf8 COMMENT '报文16进制原文',
    `charge_order_no`   varchar(50)                    default null COMMENT '充电订单号',
    `status`            int(10) DEFAULT '0' COMMENT '状态（0正常 1停用）',
    `create_time`       datetime                       DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
    `create_by`         varchar(30) CHARACTER SET utf8 DEFAULT NULL COMMENT '创建者',
    `update_time`       datetime                       DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `update_by`         varchar(30) CHARACTER SET utf8 DEFAULT NULL COMMENT '更新者',
    `remark`            text CHARACTER SET utf8 COMMENT '备注',
    `tenant_id`         varchar(12)                    DEFAULT '000000' COMMENT '租户id',
    PRIMARY KEY (`device_message_id`) USING BTREE
) ENGINE=InnoDB
    COMMENT = '设备运行信息表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;



CREATE TABLE `xhpc_station_device`
(
    `device_id`        bigint(20) NOT NULL AUTO_INCREMENT COMMENT '设备ID',
    `device_name`      varchar(100) DEFAULT NULL COMMENT '设备名称',
    `device_type`      varchar(32)  DEFAULT NULL COMMENT '设备类型',
    `current_type`     varchar(32)  DEFAULT NULL COMMENT '充电电流类型（直流，交流）',
    `station_id`       bigint(20) DEFAULT NULL COMMENT '所属场站',
    `brand_model`      varchar(100) DEFAULT NULL COMMENT '品牌型号',
    `parent_device_id` bigint(20) DEFAULT NULL COMMENT '上级设备ID',
    `serial_number`    varchar(50)  DEFAULT NULL COMMENT '设备编码',
    `sorted`           smallint(4) DEFAULT 0 COMMENT '排序',
    `status`           smallint(4) DEFAULT NULL COMMENT '设备状态（0-未启用，1-正常，2-异常，3-维修中，4-待检测）',
    `del_flag`         smallint(2) DEFAULT NULL COMMENT '是否删除（0-正常，2-删除）',
    `create_time`      datetime     DEFAULT NULL COMMENT '创建时间',
    `create_by`        varchar(50)  DEFAULT NULL COMMENT '创建人',
    `update_time`      datetime     DEFAULT NULL COMMENT '更新时间',
    `update_by`        varchar(50)  DEFAULT NULL COMMENT '更新人',
    PRIMARY KEY (`device_id`)
) ENGINE=InnoDB
    COMMENT = '场站设备信息表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;

CREATE TABLE `xhpc_work_dept`
(
    `work_dept_id`   bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门ID',
    `dept_name`      varchar(100) DEFAULT NULL COMMENT '部门名称',
    `code`           varchar(16)  DEFAULT NULL COMMENT '部门编码',
    `sort`           smallint(4) DEFAULT NULL COMMENT '排序',
    `parent_dept_id` bigint(20) DEFAULT NULL COMMENT '上级部门ID',
    `status`         smallint(2) DEFAULT NULL COMMENT '状态（0-未启用，1-已启用）',
    `del_flag`       smallint(2) DEFAULT NULL COMMENT '删除（0-正常，2-删除）',
    `tenant_id`      varchar(16)  DEFAULT '000000' COMMENT '租户ID',
    `create_time`    datetime     DEFAULT NULL COMMENT '创建时间',
    `create_by`      varchar(50)  DEFAULT NULL COMMENT '创建人',
    `update_time`    datetime     DEFAULT NULL COMMENT '更新时间',
    `update_by`      varchar(50)  DEFAULT NULL COMMENT '更新人',
    PRIMARY KEY (`work_dept_id`)
) ENGINE=InnoDB
    COMMENT = '工单部门表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;

CREATE TABLE `xhpc_work_order`
(
    `work_order_id`   bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工单ID',
    `type`            smallint(4) DEFAULT NULL COMMENT '工单类型',
    `title`           varchar(100)  DEFAULT NULL COMMENT '工单标题',
    `content`         varchar(1000) DEFAULT NULL COMMENT '工单内容描述',
    `fault_time`      datetime      DEFAULT NULL COMMENT '故障时间',
    `device_type`     varchar(32)   DEFAULT NULL COMMENT '设备类型',
    `serial_number`   varchar(100)  DEFAULT NULL COMMENT '设备编码',
    `reason`          varchar(200)  DEFAULT NULL COMMENT '故障原因',
    `disposal_method` varchar(500)  DEFAULT NULL COMMENT '详细处理描述',
    `status`          smallint(4) DEFAULT NULL COMMENT '状态, 0-编辑，1-派发处理，2-处理完成',
    `del_flag`        smallint(2) DEFAULT NULL COMMENT '是否删除（0-正常，2-删除）',
    `tenant_id`       varchar(50)   DEFAULT '000000' COMMENT '租户ID',
    `create_time`     datetime      DEFAULT NULL COMMENT '创建时间',
    `create_by`       varchar(100)  DEFAULT NULL COMMENT '创建人',
    `update_time`     datetime      DEFAULT NULL COMMENT '更新时间',
    `update_by`       varchar(100)  DEFAULT NULL COMMENT '更新人',
    `remark` text COMMENT '备注',
    PRIMARY KEY (`work_order_id`)
) ENGINE=InnoDB
    COMMENT = '工单详情表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;

CREATE TABLE `xhpc_work_order_user` (
                                        `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '分派ID',
                                        `order_id` bigint(20) NOT NULL COMMENT '工单ID',
                                        `user_id` bigint(20) NOT NULL COMMENT '分配人ID',
                                        PRIMARY KEY (`id`)
) ENGINE=InnoDB
    COMMENT = '工单派单表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;


CREATE TABLE `xhpc_work_order_image`
(
    `order_image_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '图片ID',
    `order_id`       bigint(20) DEFAULT NULL COMMENT '工单ID',
    `file_name`      varchar(100) DEFAULT NULL COMMENT '文件名称',
    `url`            varchar(200) DEFAULT NULL COMMENT '文件地址',
    `type`           smallint(2) DEFAULT NULL COMMENT '文件类型（1-问题展示图片，2-处理反馈图片）',
    `del_flag`       smallint(2) DEFAULT NULL COMMENT '删除标记（0-正常，2-已删除）',
    `create_time`    datetime     DEFAULT NULL COMMENT '创建时间',
    `create_by`      varchar(50)  DEFAULT NULL COMMENT '创建人',
    PRIMARY KEY (`order_image_id`)
) ENGINE=InnoDB
    COMMENT = '工单文件表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;


CREATE TABLE `xhpc_work_order_push_message`
(
    `order_push_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息推送ID',
    `target`        varchar(64)  DEFAULT NULL COMMENT '接收方（邮箱、手机号、openID等）',
    `type`          smallint(2) DEFAULT NULL COMMENT '推送方式（1-手机短信，2-电子邮件，3-微信公众号，4-微信小程序，5-支付宝小程序，6-其他）',
    `content`       varchar(255) DEFAULT NULL COMMENT '推送内容',
    `status`        smallint(2) DEFAULT NULL COMMENT '推送状态标志（0-创建，1-成功，2-推送失败）',
    `fail_msg`      varchar(200) DEFAULT NULL COMMENT '推送失败详细信息',
    `remark`        varchar(255) DEFAULT NULL COMMENT '备注',
    `create_time`   datetime     DEFAULT NULL COMMENT '创建时间',
    `create_by`     varchar(50)  DEFAULT NULL COMMENT '创建人',
    `update_time`   datetime     DEFAULT NULL COMMENT '更新时间',
    `update_by`     varchar(50)  DEFAULT NULL COMMENT '更新人',
    PRIMARY KEY (`order_push_id`)
) ENGINE=InnoDB
    COMMENT = '工单消息推送表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;


CREATE TABLE `xhpc_work_station`
(
    `work_station_id`       bigint(20) NOT NULL AUTO_INCREMENT COMMENT '电站id',
    `name`                  varchar(30) CHARACTER SET utf8  DEFAULT NULL COMMENT '名称',
    `operator_id`           bigint(20) DEFAULT NULL COMMENT '运营商id',
    `type`                  int(2) DEFAULT NULL COMMENT '电站位置(地上电站、地下电站)',
    `construction_site`     smallint(6) DEFAULT NULL COMMENT '建设场所',
    `service_facilities`    text CHARACTER SET utf8 COMMENT '服务设施',
    `periphery_facilities`  text CHARACTER SET utf8 COMMENT '周边设施',
    `address`               varchar(50) CHARACTER SET utf8  DEFAULT NULL COMMENT '电站地址',
    `detailed_address`      varchar(50) CHARACTER SET utf8  DEFAULT NULL COMMENT '详细地址',
    `longitude`             varchar(30) CHARACTER SET utf8  DEFAULT NULL COMMENT '经度',
    `latitude`              varchar(30) CHARACTER SET utf8  DEFAULT NULL COMMENT '维度',
    `parking_instructions`  varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '停车说明',
    `serial_number`         varchar(50) CHARACTER SET utf8  DEFAULT NULL COMMENT '编号',
    `status`                int(10) DEFAULT '0' COMMENT '状态（0启用 1停用）',
    `del_flag`              int(2) DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_time`           datetime                        DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
    `create_by`             varchar(30) CHARACTER SET utf8  DEFAULT '' COMMENT '创建者',
    `update_time`           datetime                        DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `update_by`             varchar(30) CHARACTER SET utf8  DEFAULT NULL COMMENT '更新者',
    `remark`                varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '备注',
    `business_instructions` varchar(255)                    DEFAULT NULL COMMENT '营业说明',
    `reminder_instructions` varchar(255)                    DEFAULT NULL COMMENT '温馨提示',
    `img_id`                varchar(500)                    DEFAULT NULL COMMENT '图片集合',
    `station_type`          smallint(6) DEFAULT NULL COMMENT '电站类型',
    `service_tel`           varchar(20)                     DEFAULT NULL COMMENT '站点电话',
    `park_nums`             mediumint(9) DEFAULT NULL COMMENT '侧位数量',
    `tenant_id`             varchar(12)                     DEFAULT '000000' COMMENT '租户id',
    PRIMARY KEY (`work_station_id`) USING BTREE
) ENGINE=InnoDB
    COMMENT = '工单场站信息表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;


CREATE TABLE `xhpc_work_user`
(
    `work_user_id`  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '人员ID',
    `user_name`     varchar(64) DEFAULT NULL COMMENT '人员姓名',
    `dept_id`       bigint(20) DEFAULT NULL COMMENT '所属部门ID',
    `post_name`     varchar(64) DEFAULT NULL COMMENT '岗位名称',
    `phone`         varchar(16) DEFAULT NULL COMMENT '联系电话',
    `email`         varchar(64) DEFAULT NULL COMMENT '邮箱地址',
    `wechat_openid` varchar(64) DEFAULT NULL COMMENT '微信OPENID',
    `is_leader`     smallint(2) DEFAULT NULL COMMENT '是否部门负责人',
    `status`        smallint(2) DEFAULT NULL COMMENT '状态（0-未启用，1-正常）',
    `del_flag`      smallint(2) DEFAULT NULL COMMENT '删除（0-正常，2-删除）',
    `create_time`   datetime    DEFAULT NULL COMMENT '创建时间',
    `create_by`     varchar(50) DEFAULT NULL COMMENT '创建人',
    `update_time`   datetime    DEFAULT NULL COMMENT '更新时间',
    `update_by`     varchar(50) DEFAULT NULL COMMENT '更新人',
    PRIMARY KEY (`work_user_id`)
) ENGINE=InnoDB
    COMMENT = '工单人员信息表'
    AUTO_INCREMENT=1
    DEFAULT CHARSET=utf8mb4
    COLLATE='utf8mb4_general_ci'
    ROW_FORMAT=DYNAMIC;


ALTER TABLE `et_auth_sec_token`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `et_charge_order_info`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `et_common_operator_info`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `et_common_station_info`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `et_connector_status_info`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `et_dispute_orders`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `et_equip_charge_status_info`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `gen_table`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `gen_table_column`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `hibernate_sequence`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';


ALTER TABLE `service_field`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_config`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_dept`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_dict_data`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_dict_type`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_job`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_job_log`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_logininfor`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_menu`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_notice`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_oper_log`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_post`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_role`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_role_dept`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_role_menu`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_user`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_user_post`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `sys_user_role`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_agreement`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_app_user`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_area`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';


ALTER TABLE `xhpc_charge_order_current`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_charge_order_soc`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_charge_order_status`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_charge_order_voltage`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `xhpc_charging_station_push_status`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `xhpc_data_dimension`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_dict_biz`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_help`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_history_order_reconciliation_status`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_history_order_sorting_status`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_img`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `xhpc_invoice`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_invoice_map_history_order`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_mechanism`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_message`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_notice_read`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_operator`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_operator_internet_blacklist`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_order_redis_record`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_promotion`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_promotion_coupon`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_promotion_platform`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_promotion_station`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_rate`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_rate_model`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_rate_time`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_real_time_order`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_recharge_order`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_refund_audit`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_refund_order`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_sms`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `xhpc_statistics_station`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_statistics_time_interval`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `xhpc_tradebill_internet_check_record`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_tradebill_payment_check_record`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';


ALTER TABLE `xhpc_user_account_statement`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_user_login`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_user_privilege`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';
ALTER TABLE `xhpc_vin_blacklist`
    ADD COLUMN `tenant_id` VARCHAR(12) NULL DEFAULT '000000' COMMENT '租户id';

ALTER TABLE `xhpc_app_user`
    ADD COLUMN `soc_protect` INT(4) NULL DEFAULT '0' COMMENT '是否开启电池保护 0 未开启 1开启' AFTER `tenant_id`;

CREATE TABLE `xhpc_setting_config` (
                                       `setting_config_id` bigint(20) NOT NULL AUTO_INCREMENT,
                                       `wx_app_id` varchar(50) DEFAULT NULL COMMENT '微信小程序id',
                                       `wx_app_secret` varchar(50) DEFAULT NULL COMMENT '微信小程序密钥',
                                       `wx_mch_id` varchar(20) DEFAULT NULL COMMENT '微信商户id',
                                       `wx_mch_key` varchar(50) DEFAULT NULL COMMENT '微信商户平台Key',
                                       `wx_payment_url` varchar(255) DEFAULT NULL COMMENT '微信小程序支付地址',
                                       `wx_callback_url` varchar(255) DEFAULT NULL COMMENT '微信回调地址',
                                       `wx_transfers_url` varchar(255) DEFAULT NULL COMMENT '向微信用户个人付款地址',
                                       `wx_apiclient_cert_pem` varchar(255) DEFAULT NULL COMMENT '微信支付证书',
                                       `wx_apiclient_key_pem` varchar(255) DEFAULT NULL COMMENT '微信支付证书密钥',
                                       `wx_app_cert_public_key` varchar(255) DEFAULT NULL COMMENT '微信证书',
                                       `zfb_app_id` varchar(50) DEFAULT NULL COMMENT '支付宝appid',
                                       `zfb_private_key` text COMMENT '支付宝应用私钥',
                                       `zfb_callback_url` varchar(255) DEFAULT NULL COMMENT '支付宝回调地址',
                                       `zfb_app_cert_public_key` varchar(255) DEFAULT NULL COMMENT '支付宝应用公钥证书路径',
                                       `zfb_alipay_cert_public_key_rsa` varchar(255) DEFAULT NULL COMMENT '支付宝公钥证书路径',
                                       `zfb_alipay_root_cert` varchar(255) DEFAULT NULL COMMENT '支付宝根证书路径',
                                       `zhb_server_url` varchar(255) DEFAULT NULL COMMENT '支付宝网管',
                                       `status` int(4) DEFAULT '0' COMMENT '1微信 2支付宝',
                                       `del_flag` int(1) DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
                                       `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
                                       `create_time` datetime DEFAULT NULL COMMENT '创建时间',
                                       `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
                                       `update_time` datetime DEFAULT NULL COMMENT '更新时间',
                                       `remark` varchar(500) DEFAULT NULL COMMENT '备注',
                                       `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户id',
                                       PRIMARY KEY (`setting_config_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;

-- ICCard
ALTER TABLE `xhpc_operator`
    ADD COLUMN `corp_no` VARCHAR(30) NULL DEFAULT NULL COMMENT '运营商代码,用于桩编号前缀,如80836代表翔桦' AFTER `name`;
ALTER TABLE `xhpc_operator`
    ADD COLUMN `corp_type` TINYINT NULL DEFAULT NULL COMMENT '运营商类型1:平台2:合作运营商' AFTER `corp_no`;
CREATE TABLE `t_iccard_client_users`
(
    `usersID`     INT(11)      NOT NULL AUTO_INCREMENT,
    `usersName`   VARCHAR(100) NULL     DEFAULT NULL COMMENT '命名规则:字母数字组合' COLLATE 'utf8mb4_unicode_ci',
    `usersPwd`    VARCHAR(100) NULL     DEFAULT NULL COMMENT '用户密码' COLLATE 'utf8_general_ci',
    `usersPhone`  VARCHAR(50)  NULL     DEFAULT NULL COMMENT '用户电话' COLLATE 'utf8_general_ci',
    `usersEmail`  VARCHAR(50)  NULL     DEFAULT NULL COMMENT '用户Email' COLLATE 'utf8_general_ci',
    `usersAdress` VARCHAR(300) NULL     DEFAULT NULL COMMENT '用户地址' COLLATE 'utf8_general_ci',
    `usersLevel`  TINYINT(4)   NOT NULL DEFAULT '1' COMMENT '用户级别  3.运营商管理员  4.平台管理员',
    `usersCorp`   INT(11)      NOT NULL DEFAULT '0' COMMENT '所属运营商id,对应xhpc_operator.operator_id',
    `corpNo`      VARCHAR(10)  NOT NULL DEFAULT '0' COMMENT '所属运营商前缀' COLLATE 'utf8mb4_bin',
    `corpName`    VARCHAR(50)  NOT NULL DEFAULT '0' COMMENT '所属运营商名称' COLLATE 'utf8mb4_bin',
    `usersTime`   DATETIME     NULL     DEFAULT NULL COMMENT '添加日期',
    PRIMARY KEY (`usersID`),
    UNIQUE INDEX `usersName` (`usersName`)
)
    COMMENT ='发卡客户端用户表'
    COLLATE = 'utf8mb4_bin'
    ENGINE = InnoDB
    AUTO_INCREMENT = 1
;


CREATE TABLE `xhpc_message_board`
(
    `message_id`        bigint(30) NOT NULL AUTO_INCREMENT COMMENT '消息id',
    `sender_type`       tinyint(2)  DEFAULT NULL COMMENT '用户类型用户类型（0 C端用户 1 流量方用户 2社区用户 3B端用户）',
    `sender_account`    varchar(30) DEFAULT NULL COMMENT '用户账号',
    `send_message_time` datetime    DEFAULT NULL COMMENT '发送消息的时间',
    `message_content`   text COMMENT '消息内容',
    `tenant_type`       tinyint(2)  DEFAULT NULL COMMENT '租户类型',
    `tenant_id`         varchar(30) DEFAULT NULL COMMENT '租户id（平台id）',
    `have_new_info`     tinyint(1)  DEFAULT NULL COMMENT '租户发送的消息，用户是否已读，默认为null，0表示未读，1表示已读',
    `del_flag`          tinyint(1)  DEFAULT NULL COMMENT '逻辑删除字段',
    `sender`            tinyint(1)  DEFAULT NULL COMMENT '发送者（0，用户，1，时间，2，平台（租户））',
    PRIMARY KEY (`message_id`)
) ENGINE = InnoDB
  AUTO_INCREMENT = 2920
  DEFAULT CHARSET = utf8mb4;



ALTER TABLE `xhpc_statistics_station`
    ADD COLUMN `source` INT(4) NULL COMMENT '订单来源（0 C端用户 1 流量方用户 2社区用户 3B端用户）' AFTER `tenant_id`;

ALTER TABLE `xhpc_operator`
    CHANGE COLUMN `corp_no` `corp_no` VARCHAR(30) NULL COMMENT '运营商代码,用于桩编号前缀,如80836代表翔桦' AFTER `name`,
    ADD UNIQUE INDEX `corp_no` (`corp_no`);

ALTER TABLE `t_iccard_client_users`
    ADD COLUMN `tenant_id` VARCHAR(50) NULL COMMENT '租户id' AFTER `usersTime`;

ALTER TABLE `xhpc_real_time_order` ADD COLUMN `source`  int(10) NULL DEFAULT NULL COMMENT '订单来源（0 C端用户 1 流量方用户 2社区用户 3B端用户）' AFTER `tenant_id`;


SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `et_order_mapping` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `update_time`;
CREATE TABLE `oder_test` (
                             `recharge_order_number`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                             `alipay_number`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                             `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id'
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_blob_triggers` (
                                      `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `trigger_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `blob_data`  blob NULL ,
                                      PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`),
                                      CONSTRAINT `QRTZ_BLOB_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_calendars` (
                                  `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                  `calendar_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                  `calendar`  blob NOT NULL ,
                                  PRIMARY KEY (`sched_name`, `calendar_name`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_cron_triggers` (
                                      `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `trigger_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `cron_expression`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                      `time_zone_id`  varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                      PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`),
                                      CONSTRAINT `QRTZ_CRON_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_fired_triggers` (
                                       `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                       `entry_id`  varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                       `trigger_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                       `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                       `instance_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                       `fired_time`  bigint(13) NOT NULL ,
                                       `sched_time`  bigint(13) NOT NULL ,
                                       `priority`  int(11) NOT NULL ,
                                       `state`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                       `job_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                       `job_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                       `is_nonconcurrent`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                       `requests_recovery`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                       PRIMARY KEY (`sched_name`, `entry_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_job_details` (
                                    `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `job_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `job_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `description`  varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                    `job_class_name`  varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `is_durable`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `is_nonconcurrent`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `is_update_data`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `requests_recovery`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                    `job_data`  blob NULL ,
                                    PRIMARY KEY (`sched_name`, `job_name`, `job_group`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_locks` (
                              `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                              `lock_name`  varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                              PRIMARY KEY (`sched_name`, `lock_name`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_paused_trigger_grps` (
                                            `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                            `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                            PRIMARY KEY (`sched_name`, `trigger_group`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_scheduler_state` (
                                        `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                        `instance_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                        `last_checkin_time`  bigint(13) NOT NULL ,
                                        `checkin_interval`  bigint(13) NOT NULL ,
                                        PRIMARY KEY (`sched_name`, `instance_name`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_simple_triggers` (
                                        `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                        `trigger_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                        `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                        `repeat_count`  bigint(7) NOT NULL ,
                                        `repeat_interval`  bigint(12) NOT NULL ,
                                        `times_triggered`  bigint(10) NOT NULL ,
                                        PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`),
                                        CONSTRAINT `QRTZ_SIMPLE_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_simprop_triggers` (
                                         `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                         `trigger_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                         `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                         `str_prop_1`  varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                         `str_prop_2`  varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                         `str_prop_3`  varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                         `int_prop_1`  int(11) NULL DEFAULT NULL ,
                                         `int_prop_2`  int(11) NULL DEFAULT NULL ,
                                         `long_prop_1`  bigint(20) NULL DEFAULT NULL ,
                                         `long_prop_2`  bigint(20) NULL DEFAULT NULL ,
                                         `dec_prop_1`  decimal(13,4) NULL DEFAULT NULL ,
                                         `dec_prop_2`  decimal(13,4) NULL DEFAULT NULL ,
                                         `bool_prop_1`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                         `bool_prop_2`  varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                         PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`),
                                         CONSTRAINT `QRTZ_SIMPROP_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `qrtz_triggers` (
                                 `sched_name`  varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `trigger_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `trigger_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `job_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `job_group`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `description`  varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                 `next_fire_time`  bigint(13) NULL DEFAULT NULL ,
                                 `prev_fire_time`  bigint(13) NULL DEFAULT NULL ,
                                 `priority`  int(11) NULL DEFAULT NULL ,
                                 `trigger_state`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `trigger_type`  varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
                                 `start_time`  bigint(13) NOT NULL ,
                                 `end_time`  bigint(13) NULL DEFAULT NULL ,
                                 `calendar_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                 `misfire_instr`  smallint(2) NULL DEFAULT NULL ,
                                 `job_data`  blob NULL ,
                                 PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`),
                                 CONSTRAINT `QRTZ_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT,
                                 INDEX `sched_name` (`sched_name`, `job_name`, `job_group`) USING BTREE
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_corp` (
                          `corpID`  int(11) NOT NULL AUTO_INCREMENT ,
                          `corpNo`  varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业编码' ,
                          `corpName`  varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业名称' ,
                          `corpPhone`  varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业电话' ,
                          `corpEmail`  varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业Email' ,
                          `corpContact`  varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业联系人' ,
                          `corpAdress`  varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业地址' ,
                          `corpType`  tinyint(4) NULL DEFAULT 1 COMMENT '1.企业  2. 园区  3. 合作伙伴' ,
                          `corpFlag`  tinyint(4) NULL DEFAULT 0 COMMENT '是否删除' ,
                          `corpTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                          `corpLogo`  varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业logo' ,
                          `corpServiceTime`  varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务时间' ,
                          `corpServiceTel`  varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '服务电话' ,
                          `tenant_id`  varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户id' ,
                          PRIMARY KEY (`corpID`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
ALTER TABLE `t_iccard_client_users` ADD COLUMN `del_flag`  tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除字段（0，存在，1为删除）' AFTER `tenant_id`;
ALTER TABLE `t_iccard_client_users` MODIFY COLUMN `tenant_id`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '租户id' AFTER `usersTime`;
CREATE TABLE `t_iccard_device` (
                                   `id`  int(11) NOT NULL AUTO_INCREMENT ,
                                   `devName`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称' ,
                                   `devType`  varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备型号' ,
                                   `serialNumber`  varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡读写器全球唯一编号' ,
                                   `corpIndex`  int(11) NOT NULL COMMENT '授权商前6位编码' ,
                                   `createTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                                   `type`  tinyint(2) NOT NULL COMMENT '授权给谁（0，运营商，1平台）' ,
                                   `del_flag`  tinyint(2) NOT NULL DEFAULT 0 COMMENT '逻辑删除字段（0，未删除，1删除）' ,
                                   `tenant_id`  varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '000000' COMMENT '租户id（默认000000）' ,
                                   PRIMARY KEY (`id`),
                                   UNIQUE INDEX `serialNumber` (`serialNumber`) USING BTREE
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_encrypt_key` (
                                        `id`  int(11) NOT NULL AUTO_INCREMENT ,
                                        `corpIndex`  int(11) NOT NULL COMMENT '企业索引' ,
                                        `encryptKey`  varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '加密密钥' ,
                                        `createTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                                        PRIMARY KEY (`id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_info` (
                                 `id`  int(11) NOT NULL AUTO_INCREMENT ,
                                 `cardID`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡序列号' ,
                                 `cardNo`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡编号' ,
                                 `cardType`  tinyint(4) NULL DEFAULT 0 COMMENT '卡类型。0.离线卡; 1.联网卡' ,
                                 `is_platform`  tinyint(2) NULL DEFAULT NULL COMMENT '0表示平台，1表示运营商' ,
                                 `userIndex`  int(11) NULL DEFAULT NULL COMMENT '卡用户索引 (t_iccard_users 找用户的，没有表示没绑)' ,
                                 `password`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'password' ,
                                 `corpNo`  varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '运营商站编号前6位（xhpc_operator）' ,
                                 `cashPledge`  int(11) NULL DEFAULT NULL COMMENT '押金' ,
                                 `balance`  int(11) NULL DEFAULT NULL COMMENT '余额' ,
                                 `status`  tinyint(4) NULL DEFAULT 0 COMMENT '0.初始化, 1.正常, 2.锁卡, 3.挂失, 4.作废，5,解绑' ,
                                 `createTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                                 `tenant_id`  varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户id' ,
                                 PRIMARY KEY (`id`),
                                 UNIQUE INDEX `cardID` (`cardID`) USING BTREE ,
                                 UNIQUE INDEX `cardNo` (`cardNo`) USING BTREE ,
                                 UNIQUE INDEX `userIndex` (`userIndex`) USING BTREE
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_invalid` (
                                    `id`  int(11) NOT NULL AUTO_INCREMENT ,
                                    `cardID`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡序列号' ,
                                    `cardNo`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡编号' ,
                                    `cardType`  tinyint(4) NULL DEFAULT 0 COMMENT '卡类型。0.单机卡; 1.联网卡' ,
                                    `password`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'password' ,
                                    `userIndex`  int(11) NULL DEFAULT NULL COMMENT '卡用户索引' ,
                                    `corpNo`  varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '企业编码' ,
                                    `cashPledge`  int(11) NULL DEFAULT NULL COMMENT '押金' ,
                                    `balance`  int(11) NULL DEFAULT NULL COMMENT '余额' ,
                                    `status`  tinyint(4) NULL DEFAULT 0 COMMENT '4.作废' ,
                                    `createTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                                    `tenant_id`  varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户id' ,
                                    PRIMARY KEY (`id`),
                                    UNIQUE INDEX `cardID` (`cardID`) USING BTREE ,
                                    UNIQUE INDEX `cardNo` (`cardNo`) USING BTREE
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_log` (
                                `id`  int(11) NOT NULL AUTO_INCREMENT ,
                                `uniqueID`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '卡序列号, 用户身份证号, 读写卡器序列号' ,
                                `type`  tinyint(4) NULL DEFAULT 0 COMMENT '日志类型：0.用户卡; 1.读写卡器' ,
                                `operate`  tinyint(4) NULL DEFAULT 0 COMMENT '操作。0.初始化, 1.发卡, 2.充值, 3.退费, 4.解锁, 5.挂失, 6.解除挂失, 7.重置密码, 8.作废卡, 9.添加读写卡器, 10.删除读写卡器，11解绑卡' ,
                                `operatorId`  int(11) NOT NULL COMMENT '操作员ID, 关联t_users usersID' ,
                                `log`  varchar(640) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '日志内容。操作的序列化' ,
                                `createTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                                PRIMARY KEY (`id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_operate` (
                                    `operate`  int(11) NOT NULL COMMENT '操作' ,
                                    `description`  varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '描述' ,
                                    PRIMARY KEY (`operate`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_status` (
                                   `status`  int(11) NOT NULL COMMENT '卡状态' ,
                                   `description`  varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '描述' ,
                                   PRIMARY KEY (`status`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_type` (
                                 `type`  int(11) NOT NULL COMMENT '卡类型' ,
                                 `description`  varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '描述' ,
                                 PRIMARY KEY (`type`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `t_iccard_users` (
                                  `id`  int(11) NOT NULL AUTO_INCREMENT ,
                                  `userName`  varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户姓名' ,
                                  `userAge`  tinyint(4) NULL DEFAULT 0 COMMENT '年龄' ,
                                  `userSex`  tinyint(4) NULL DEFAULT 0 COMMENT '性别(0男，1女)' ,
                                  `idNumber`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '身份证号码' ,
                                  `phone`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话号码' ,
                                  `licencePlate`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车牌号码' ,
                                  `createTime`  datetime NULL DEFAULT NULL COMMENT '添加日期' ,
                                  `tenant_id`  varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '000000' COMMENT '租户id（默认为000000）' ,
                                  PRIMARY KEY (`id`),
                                  UNIQUE INDEX `idNumber` (`idNumber`) USING BTREE
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_activity_cash` (
                                      `activity_id`  int(11) NOT NULL AUTO_INCREMENT COMMENT '活动ID' ,
                                      `start_time`  datetime NULL DEFAULT NULL COMMENT '开始时间' ,
                                      `end_time`  datetime NULL DEFAULT NULL COMMENT '结束时间' ,
                                      `amount`  decimal(4,2) NULL DEFAULT NULL COMMENT '红包金额' ,
                                      `app_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'C端用户ID（-1表示全部）' ,
                                      `com_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '社区用户ID列表（-1表示全部）' ,
                                      `b_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'B端用户ID列表（-1表示全部）' ,
                                      `tenant_id`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID' ,
                                      `status`  smallint(4) NULL DEFAULT 0 COMMENT '状态（0-编辑，1-提交待审核，2-审核失败，3-审核通过，4-立即失效）' ,
                                      `del_flag`  smallint(2) NULL DEFAULT 0 COMMENT '删除标记（0-正常，2-已删除）' ,
                                      `create_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
                                      `create_time`  datetime NULL DEFAULT NULL COMMENT '更新时间' ,
                                      `update_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人' ,
                                      `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间' ,
                                      `check_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核人' ,
                                      `check_time`  datetime NULL DEFAULT NULL COMMENT '审核时间' ,
                                      PRIMARY KEY (`activity_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_activity_discount` (
                                          `activity_id`  int(11) NOT NULL AUTO_INCREMENT COMMENT '活动ID' ,
                                          `app_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'C端用户列表(以逗号分隔，-1表示全部用户)' ,
                                          `com_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '社区用户列表(以逗号分隔，-1表示全部用户)' ,
                                          `b_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'B端用户列表(以逗号分隔，-1表示全部用户)' ,
                                          `station_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '场站列表' ,
                                          `tenant_id`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '租户ID' ,
                                          `status`  smallint(2) NULL DEFAULT NULL COMMENT '状态（0-编辑，1-提交待审核，2-审核失败，3-审核通过，4-立即失效）' ,
                                          `del_flag`  smallint(2) NULL DEFAULT NULL COMMENT '删除标识（0-正常，2-删除）' ,
                                          `create_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
                                          `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' ,
                                          `update_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人' ,
                                          `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间' ,
                                          `check_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核人' ,
                                          `check_time`  datetime NULL DEFAULT NULL COMMENT '审核时间' ,
                                          PRIMARY KEY (`activity_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_activity_img` (
                                     `activity_img_id`  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '图片ID' ,
                                     `activity_type`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动类型（CASH, DISCOUNT）' ,
                                     `activity_id`  int(11) NULL DEFAULT NULL COMMENT '活动ID' ,
                                     `img_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片名称' ,
                                     `img_url`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片地址' ,
                                     `del_flag`  smallint(2) NULL DEFAULT NULL COMMENT '删除标志（0-正常，2-已删除）' ,
                                     `create_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
                                     `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' ,
                                     PRIMARY KEY (`activity_img_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_activity_internet` (
                                          `activity_id`  int(11) NOT NULL AUTO_INCREMENT COMMENT '活动ID' ,
                                          `activity_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动名称' ,
                                          `internet_name`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流量方名称' ,
                                          `compute_type`  smallint(4) NULL DEFAULT NULL COMMENT '计算类型（1-总金额，2-服务费，3-电量）' ,
                                          `compute_formula`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计算公式' ,
                                          `start_time`  datetime NULL DEFAULT NULL COMMENT '开始时间' ,
                                          `end_time`  datetime NULL DEFAULT NULL COMMENT '结束时间' ,
                                          `station_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参与场站列表' ,
                                          `tenant_id`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID' ,
                                          `status`  smallint(4) NULL DEFAULT 0 COMMENT '状态（0-编辑，1-提交生效，2-停用）' ,
                                          `del_flag`  smallint(2) NULL DEFAULT 0 COMMENT '删除标志（0-正常，2-删除）' ,
                                          `create_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
                                          `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' ,
                                          `update_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人' ,
                                          `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间' ,
                                          PRIMARY KEY (`activity_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_activity_record` (
                                        `activity_record_id`  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '活动参与记录ID' ,
                                        `activity_type`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动类型（CASH,DISCOUNT）' ,
                                        `activity_id`  int(11) NULL DEFAULT NULL COMMENT '活动ID' ,
                                        `source`  smallint(4) NULL DEFAULT NULL COMMENT '人员类型（0 C端用户 1 流量方用户 2社区用户 3B端用户）' ,
                                        `user_id`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户ID' ,
                                        `amount`  decimal(4,2) NULL DEFAULT NULL COMMENT '红包金额' ,
                                        `create_time`  datetime NULL DEFAULT NULL COMMENT '领取时间' ,
                                        PRIMARY KEY (`activity_record_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_activity_template` (
                                          `activity_temlpate_id`  int(11) NOT NULL AUTO_INCREMENT COMMENT '模板ID' ,
                                          `template_name`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板名称' ,
                                          `discount_type`  smallint(2) NULL DEFAULT NULL COMMENT '优惠类型（1-总金额，2-服务费，3-电量）' ,
                                          `discount_rate`  decimal(4,2) NULL DEFAULT NULL COMMENT '优惠比率' ,
                                          `start_time`  datetime NULL DEFAULT NULL COMMENT '开始时间' ,
                                          `end_time`  datetime NULL DEFAULT NULL COMMENT '结束时间' ,
                                          `discount_count`  smallint(4) NULL DEFAULT NULL COMMENT '折扣次数' ,
                                          `mini_display`  smallint(2) NULL DEFAULT NULL COMMENT '小程序弹出次数' ,
                                          `backgroud_url`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动背景图' ,
                                          `status`  smallint(2) NULL DEFAULT 0 COMMENT '状态（0-编辑未发布,1-已发布，2-已失效）' ,
                                          `del_flag`  smallint(2) NULL DEFAULT 0 COMMENT '删除标识（0-正常，2-删除）' ,
                                          `tenant_id`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID' ,
                                          `create_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
                                          `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' ,
                                          `update_by`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人' ,
                                          `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间' ,
                                          PRIMARY KEY (`activity_temlpate_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
ALTER TABLE `xhpc_charge_order` DROP INDEX `sn_idx`;
ALTER TABLE `xhpc_charge_order` DROP INDEX `isn_idx`;
ALTER TABLE `xhpc_charge_order_voltage` DROP INDEX `charge_order_id_di`;
ALTER TABLE `xhpc_charging_station` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `park_nums`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `status`  int(10) NULL DEFAULT 0 COMMENT '状态（0正常 1停用）' AFTER `content`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间' AFTER `status`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' AFTER `create_time`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' AFTER `update_time`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `remark`  text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注' AFTER `update_by`;
ALTER TABLE `xhpc_device_message` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `remark`;
ALTER TABLE `xhpc_history_order` DROP INDEX `isnidx`;
ALTER TABLE `xhpc_history_order` DROP INDEX `snidx`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `platform_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台总金额抽成' AFTER `internet_svc_commission`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `platform_svc_commisssion`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台服务费抽成' AFTER `platform_commission`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `operation_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '运维总抽成' AFTER `platform_svc_commisssion`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `operation_svc_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '运维服务费抽成' AFTER `operation_commission`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `start_soc`  varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '开始充电soc' AFTER `operation_svc_commission`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `end_soc`  varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '结束时soc' AFTER `start_soc`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `reconciliation_status`  int(10) NULL DEFAULT NULL COMMENT '对账状态（0待确认 1已确认，2待提交，3待审核）' AFTER `end_soc`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `sorting_status`  int(10) NULL DEFAULT 0 COMMENT '清分状态（0待清分 1清分在途，2已提现，3待提交，4待审核）' AFTER `reconciliation_status`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `type`  tinyint(2) NULL DEFAULT NULL COMMENT '1 自动结算 2 平台结算' AFTER `sorting_status`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `status`  int(10) NULL DEFAULT 0 COMMENT '状态（0正常 1停用）' AFTER `type`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' AFTER `status`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `del_flag`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' AFTER `create_time`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' AFTER `update_time`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `update_by`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `state`  int(2) NULL DEFAULT 0 COMMENT '0未统计 1小时统计 2 其他统计' AFTER `remark`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `vin_normal`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'VIN 码' AFTER `state`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `search_value`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `vin_normal`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `operator_id_evcs`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '运营商在EVCS分配的唯一OperatorID' AFTER `search_value`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `charge_model_evcs`  int(11) NULL DEFAULT NULL COMMENT '终端客户开启充电方式' AFTER `operator_id_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `connector_power_evcs`  double NULL DEFAULT NULL COMMENT '接口额定功率' AFTER `charge_model_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `meter_value_end_evcs`  double NULL DEFAULT NULL COMMENT '电表总起值' AFTER `connector_power_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `meter_value_start_evcs`  double NULL DEFAULT NULL COMMENT '电表总结束值' AFTER `meter_value_end_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `operator_id3rdpty_evcs`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流量方OperatorID' AFTER `meter_value_start_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `start_time`  datetime NULL DEFAULT NULL AFTER `operator_id3rdpty_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `end_time`  datetime NULL DEFAULT NULL COMMENT '结束时间' AFTER `start_time`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `stop_reason_evcs`  int(11) NULL DEFAULT NULL AFTER `end_time`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `total_power`  double(10,2) NULL DEFAULT NULL COMMENT '电量' AFTER `stop_reason_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `user_name_evcs`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `total_power`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `phone`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `user_name_evcs`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `evcs_order_no`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '互联网订单流水号' AFTER `phone`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `confirm_Result`  int(4) NULL DEFAULT '-1' COMMENT '-1:未推送/推送失败 0:成功 1:争议交易 2～99:自定义' AFTER `evcs_order_no`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `rate_model_id`  bigint(20) NULL DEFAULT NULL AFTER `confirm_Result`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `charging_mode`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充电方式' AFTER `rate_model_id`;
ALTER TABLE `xhpc_history_order` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `source`;

ALTER TABLE `xhpc_img` DROP COLUMN `tenant_id`;
ALTER TABLE `xhpc_internet_user` MODIFY COLUMN `commission_type`  int(10) NULL DEFAULT 0 COMMENT '提成类型（0总金额提成 1服务费提成 2电量提成）' AFTER `detailed_address`;
ALTER TABLE `xhpc_internet_user` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `search_value`;
ALTER TABLE `xhpc_invoice` ADD COLUMN `invoice_type`  int(1) NULL DEFAULT 0 COMMENT '发票类型（0，票普，1，专票，默认开的都是普票）' AFTER `invoice_id`;
ALTER TABLE `xhpc_invoice` ADD COLUMN `is_read`  tinyint(1) NULL DEFAULT NULL COMMENT '该发票是否被用户阅读（默认为null），0，表示未阅读，1表示已经阅读' AFTER `update_time`;
ALTER TABLE `xhpc_invoice` MODIFY COLUMN `creator_type`  int(1) NOT NULL COMMENT '创建者类型0 C端用户 1 流量方用户 2社区用户 3B端用户）' AFTER `creator_id`;
ALTER TABLE `xhpc_invoice` MODIFY COLUMN `creator`  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建人（用户账号）' AFTER `creator_type`;
ALTER TABLE `xhpc_invoice_map_history_order` ADD COLUMN `history_serial_number`  varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '该发票所选中的历史订单订单编号' AFTER `history_user_type`;
ALTER TABLE `xhpc_invoice_map_history_order` MODIFY COLUMN `history_user_type`  bigint(5) NULL DEFAULT NULL COMMENT '该发票所选中的历史订单的用户类型（0 C端用户 1 流量方用户 2社区用户 3B端用户）' AFTER `history_user_id`;
ALTER TABLE `xhpc_invoice_map_history_order` DROP COLUMN `hisotry_serial_number`;
ALTER TABLE `xhpc_message` DROP COLUMN `code`;

ALTER TABLE `xhpc_notice_read` MODIFY COLUMN `tenant_id`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `remark`;
ALTER TABLE `xhpc_operator` DROP INDEX `corp_no`;
ALTER TABLE `xhpc_operator` MODIFY COLUMN `corp_no`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '运营商代码,用于桩编号前缀,如808360代表翔桦' AFTER `operator_id`;
ALTER TABLE `xhpc_operator` DROP COLUMN `corp_type`;
ALTER TABLE `xhpc_real_time_order` MODIFY COLUMN `real_time_order_id`  bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id' FIRST ;
ALTER TABLE `xhpc_recharge_order` MODIFY COLUMN `type`  int(10) NULL DEFAULT 1 COMMENT '充值渠道（1微信 2支付宝  3平台)' AFTER `amount`;
ALTER TABLE `xhpc_recharge_order` MODIFY COLUMN `source`  int(10) NULL DEFAULT 0 COMMENT '订单来源（0 C端用户 1 流量方用户 2社区用户 3B端用户）' AFTER `status`;
ALTER TABLE `xhpc_refund_order` MODIFY COLUMN `open_id`  varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信支付订单号' AFTER `user_id`;
ALTER TABLE `xhpc_refund_order` MODIFY COLUMN `alipay_id`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支付宝订单编号' AFTER `open_id`;
ALTER TABLE `xhpc_refund_order` MODIFY COLUMN `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间' AFTER `del_flag`;
ALTER TABLE `xhpc_refund_order` MODIFY COLUMN `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `update_by`;
ALTER TABLE `xhpc_refund_order` MODIFY COLUMN `payment_time`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '付款成功时间' AFTER `payment_no`;
ALTER TABLE `xhpc_station_internet_blacklist` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `operator_id_evcs`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `platform_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台总金额抽成' AFTER `internet_svc_commission`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `platform_svc_commisssion`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台服务费抽成' AFTER `platform_commission`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `operation_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '运维总抽成' AFTER `platform_svc_commisssion`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `operation_svc_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '运维服务费抽成' AFTER `operation_commission`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `operator_id`  bigint(20) NULL DEFAULT NULL COMMENT '运营商id' AFTER `operation_svc_commission`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `internet_user_id`  bigint(20) NULL DEFAULT NULL COMMENT '流量方' AFTER `operator_id`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `charging_pile_id`  bigint(20) NULL DEFAULT NULL COMMENT '电桩id' AFTER `internet_user_id`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' AFTER `charging_pile_id`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `del_flag`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' AFTER `create_time`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' AFTER `update_time`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `update_by`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `charging_station_id`  bigint(20) NULL DEFAULT NULL COMMENT '场站id' AFTER `remark`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `terminal_id`  bigint(20) NULL DEFAULT NULL COMMENT '终端id' AFTER `charging_station_id`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `type`  int(4) NULL DEFAULT NULL COMMENT '1.日期 2.场站 3.桩' AFTER `terminal_id`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `history_order_id`  bigint(20) NULL DEFAULT NULL COMMENT '历史订单id' AFTER `type`;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `charging_mode`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '充电方式' AFTER `history_order_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `platform_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台总金额抽成' AFTER `internet_svc_commission`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `platform_svc_commisssion`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '平台服务费抽成' AFTER `platform_commission`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `operation_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '运维总抽成' AFTER `platform_svc_commisssion`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `operation_svc_commission`  decimal(10,2) NULL DEFAULT 0.00 COMMENT '运维服务费抽成' AFTER `operation_commission`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `operator_id`  bigint(20) NULL DEFAULT NULL COMMENT '运营商id' AFTER `operation_svc_commission`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `internet_user_id`  bigint(20) NULL DEFAULT NULL COMMENT '流量方' AFTER `operator_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `charging_station_id`  bigint(20) NULL DEFAULT NULL COMMENT '电站id' AFTER `internet_user_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' AFTER `charging_station_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' AFTER `del_flag`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' AFTER `create_time`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' AFTER `update_time`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' AFTER `update_by`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `terminal_id`  bigint(20) NULL DEFAULT NULL COMMENT '终端id' AFTER `remark`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `history_order_id`  bigint(20) NULL DEFAULT NULL COMMENT '历史订单id' AFTER `terminal_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `start_time_evcs`  varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'EVCS开始时间(格式:yyyy-MM-dd HH:mm:ss)' AFTER `history_order_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `end_time_evcs`  varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'EVCS结束时间(格式:yyyy-MM-dd HH:mm:ss)' AFTER `start_time_evcs`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `elec_price_evcs`  decimal(10,2) NULL DEFAULT NULL COMMENT 'EVCS时段电价(单价)' AFTER `end_time_evcs`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `service_price_evcs`  decimal(10,2) NULL DEFAULT NULL COMMENT 'EVCS时段服务费价格(单价)' AFTER `elec_price_evcs`;


ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `id`  int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID' FIRST ;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `create_time`  datetime(6) NOT NULL COMMENT '创建时间' AFTER `id`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '创建人' AFTER `create_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `update_time`  datetime(6) NOT NULL COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新人' AFTER `update_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `upload_id`  int(11) NOT NULL COMMENT '文件上传ID' AFTER `update_by`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `history_order_no`  bigint(20) NULL DEFAULT NULL COMMENT '历史订单ID' AFTER `upload_id`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `user_id`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户ID' AFTER `history_order_no`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_name`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '流量方' AFTER `user_id`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_internet_serial_number`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-第三方订单号' AFTER `internet_name`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_serial_number`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-订单号' AFTER `platform_internet_serial_number`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_charge_station`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-场站名称' AFTER `platform_serial_number`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_start_soc`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-开始SOC' AFTER `platform_charge_station`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_end_soc`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-结束SOC' AFTER `platform_start_soc`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_charging_degree`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-充电电量' AFTER `platform_end_soc`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_charging_time`  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-充电时长' AFTER `platform_charging_degree`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_start_time`  datetime(6) NULL DEFAULT NULL COMMENT '平台-开始充电时间' AFTER `platform_charging_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_end_time`  datetime(6) NULL DEFAULT NULL COMMENT '平台-结束充电时间' AFTER `platform_start_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_order_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-订单总金额' AFTER `platform_end_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_power_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-电费' AFTER `platform_order_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_server_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-服务费' AFTER `platform_power_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_discount_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-折扣金额' AFTER `platform_server_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `platform_pay_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-支付金额' AFTER `platform_discount_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_serial_number`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '流量方-订单号' AFTER `platform_pay_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_charge_station`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '流量方-场站名称' AFTER `internet_serial_number`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_start_soc`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '流量方-开始SOC' AFTER `internet_charge_station`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_end_soc`  varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '流量方-结束SOC' AFTER `internet_start_soc`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_charging_degree`  decimal(10,2) NULL DEFAULT NULL COMMENT '流量方-充电电量' AFTER `internet_end_soc`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_charging_time`  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '流量方-充电时长（单位：分钟）' AFTER `internet_charging_degree`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_start_time`  datetime(6) NULL DEFAULT NULL COMMENT '流量方-开始充电时间' AFTER `internet_charging_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_end_time`  datetime(6) NULL DEFAULT NULL COMMENT '流量方-结束充电时间' AFTER `internet_start_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_order_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '流量方-订单总金额' AFTER `internet_end_time`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_power_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '流量方-电费' AFTER `internet_order_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_server_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '流量方-服务费' AFTER `internet_power_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_discount_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '流量方-折扣费' AFTER `internet_server_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `internet_pay_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '流量方-支付金额' AFTER `internet_discount_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `remark`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注' AFTER `internet_pay_amount`;
ALTER TABLE `xhpc_tradebill_internet_check_record` MODIFY COLUMN `status`  smallint(6) NOT NULL COMMENT '状态（0-待对账，1-对账异常，2-对账正常）' AFTER `remark`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `id`  int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID' FIRST ;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `create_time`  datetime(6) NOT NULL COMMENT '创建时间' AFTER `id`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '创建人' AFTER `create_time`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `update_time`  datetime(6) NOT NULL COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新人' AFTER `update_time`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `upload_id`  int(11) NOT NULL COMMENT '文件上传ID' AFTER `update_by`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `order_type`  smallint(6) NULL DEFAULT NULL COMMENT '订单类型（1-充值，2-退款）' AFTER `upload_id`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `payment_channel`  smallint(6) NULL DEFAULT NULL COMMENT '充值渠道（1微信 2支付宝）' AFTER `order_type`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `platform_order_number`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-订单ID' AFTER `payment_channel`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `platform_pay_number`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-支付订单号' AFTER `platform_order_number`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `platform_user_id`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '平台-用户ID' AFTER `platform_pay_number`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `platform_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '平台-金额' AFTER `platform_user_id`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `platform_pay_time`  datetime(6) NULL DEFAULT NULL COMMENT '平台-支付时间' AFTER `platform_amount`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `payment_pay_number`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付方-订单号' AFTER `platform_pay_time`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `payment_user_id`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付方-用户ID' AFTER `payment_pay_number`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `payment_amount`  decimal(10,2) NULL DEFAULT NULL COMMENT '支付方-支付金额' AFTER `payment_user_id`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `payment_pay_time`  datetime(6) NULL DEFAULT NULL COMMENT '支付方-支付时间' AFTER `payment_amount`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `status`  smallint(6) NOT NULL COMMENT '状态（0-待对账，1-对账异常，2-对账正常）' AFTER `payment_pay_time`;
ALTER TABLE `xhpc_tradebill_payment_check_record` MODIFY COLUMN `remark`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注' AFTER `status`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `id`  int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID' FIRST ;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `create_time`  datetime(6) NOT NULL COMMENT '创建时间' AFTER `id`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `create_by`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '创建人' AFTER `create_time`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `update_time`  datetime(6) NOT NULL COMMENT '更新时间' AFTER `create_by`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `update_by`  varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新人' AFTER `update_time`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `source`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源' AFTER `update_by`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `file_name`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件名称' AFTER `source`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `url`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件地址' AFTER `file_name`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `type`  smallint(6) NOT NULL COMMENT '文件类型（1-微信充值，2-微信退款，3-支付宝充值，4-支付宝退款，5-恒大，6-小桔，7-新电途，8-特来电）' AFTER `url`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `status`  smallint(6) NOT NULL COMMENT '状态（0-未对账，1-已对账）' AFTER `type`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `del_flag`  smallint(6) NOT NULL COMMENT '删除标识（0-正常，2-已删除）' AFTER `status`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `success_count`  int(11) NOT NULL COMMENT '对账成功记录数量' AFTER `del_flag`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `fail_count`  int(11) NOT NULL COMMENT '对账失败记录数量' AFTER `success_count`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `uncheck_count`  int(11) NOT NULL COMMENT '未对账记录数量' AFTER `fail_count`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `checked_count`  int(11) NOT NULL COMMENT '已对账记录数量' AFTER `uncheck_count`;
ALTER TABLE `xhpc_tradebill_upload_record` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `checked_count`;
ALTER TABLE `xhpc_user_account_statement` MODIFY COLUMN `type`  int(10) NULL DEFAULT NULL COMMENT '类型（1充值 2退款 3充电）' AFTER `refund_order_id`;
ALTER TABLE `xhpc_user_account_statement` MODIFY COLUMN `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间' AFTER `del_flag`;
ALTER TABLE `xhpc_user_account_statement` MODIFY COLUMN `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' AFTER `remark`;
ALTER TABLE `xhpc_user_account_statement` MODIFY COLUMN `source`  int(4) NULL DEFAULT 0 COMMENT '订单来源（0 C端用户 1 流量方用户 2社区用户 3B端用户）' AFTER `tenant_id`;
ALTER TABLE `xhpc_work_order_user` MODIFY COLUMN `id`  bigint(20) NOT NULL AUTO_INCREMENT FIRST ;


CREATE TABLE `xhpc_ic_card_info` (
                                     `ic_card_info_id`  bigint(11) NOT NULL AUTO_INCREMENT COMMENT '记录id' ,
                                     `t_iccard_info_id`  varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 't_iccard_info表中的卡记录的id' ,
                                     `use_status`  bigint(2) NULL DEFAULT 0 COMMENT '卡使用状态（0未使用，1已绑定）' ,
                                     `create_time`  datetime NULL DEFAULT NULL COMMENT '绑卡日期' ,
                                     `user_id`  int(11) NULL DEFAULT NULL COMMENT '用户id' ,
                                     `user_account`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户账户' ,
                                     `user_type`  bigint(2) NULL DEFAULT NULL COMMENT '用户类型（0 C端用户 1 流量方用户 2社区用户 3B端用户）' ,
                                     `user_name`  varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户姓名' ,
                                     `user_id_card`  varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户身份证' ,
                                     `user_age`  bigint(3) NULL DEFAULT NULL COMMENT '用户年龄' ,
                                     `user_sex`  bigint(2) NULL DEFAULT NULL COMMENT '用户性别（0女，1男）' ,
                                     `user_phone`  varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户手机号码' ,
                                     `user_vehicle`  varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户车牌号码' ,
                                     `del_flag`  bigint(2) NULL DEFAULT 0 COMMENT '逻辑删除字段（默认为0，1为删除）' ,
                                     `tenant_id`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户id' ,
                                     PRIMARY KEY (`ic_card_info_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_message_board_receive_user` (
                                                   `tenant_id`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收者id（租户id）' ,
                                                   `tenant_type`  int(2) NULL DEFAULT NULL COMMENT '接收者类型（租户类型 0，为默认类型）' ,
                                                   `sender_account`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送者账号' ,
                                                   `sender_type`  int(11) NULL DEFAULT NULL COMMENT '发送者类型（0 C端用户 1 流量方用户 2社区用户 3B端用户）' ,
                                                   `user_icon`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '用户头像地址' ,
                                                   `have_new_info`  tinyint(1) NULL DEFAULT NULL COMMENT '是否有新消息（0表示有新消息，null表示没有）' ,
                                                   `new_info_time`  datetime NULL DEFAULT NULL COMMENT '新消息发送时间' ,
                                                   `del_flag`  tinyint(1) NULL DEFAULT NULL COMMENT '逻辑删除（0为删除）'
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_timing_charging_cache_rate_model` (
                                                         `timing_charging_cache_rate_model_id`  bigint(20) NOT NULL AUTO_INCREMENT ,
                                                         `timing_charging_model_id`  bigint(20) NOT NULL ,
                                                         `one_price`  int(8) NULL DEFAULT NULL COMMENT '尖电价 所有价格精度' ,
                                                         `one_svc_price`  int(8) NULL DEFAULT NULL COMMENT '尖服务费价格' ,
                                                         `two_price`  int(8) NULL DEFAULT NULL COMMENT '峰电价' ,
                                                         `two_svc_price`  int(8) NULL DEFAULT NULL COMMENT '峰服务费价格' ,
                                                         `three_price`  int(8) NULL DEFAULT NULL COMMENT '平电价' ,
                                                         `three_svc_price`  int(8) NULL DEFAULT NULL COMMENT '平服务费价格' ,
                                                         `four_price`  int(8) NULL DEFAULT NULL COMMENT '谷电价' ,
                                                         `four_svc_price`  int(8) NULL DEFAULT NULL COMMENT '谷服务费价格' ,
                                                         `loss_rate`  int(4) NULL DEFAULT NULL COMMENT '计损比例' ,
                                                         `tf_prices_seq`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '48个字符串48个时段,每个时段的值为4个值之一 → 00: 尖费率 01: 峰费率 02: 平费率 03: 谷费率' ,
                                                         `pp`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '00:00~07:00,0.16格式电费/服务费' ,
                                                         `status`  int(10) NULL DEFAULT 0 COMMENT '状态（0正常 1停用）' ,
                                                         `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' ,
                                                         `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间' ,
                                                         `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' ,
                                                         `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' ,
                                                         `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' ,
                                                         `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' ,
                                                         `tenant_id`  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL ,
                                                         `charging_station_id`  bigint(20) NULL DEFAULT NULL COMMENT '场站id' ,
                                                         `phone`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新失败联系人' ,
                                                         PRIMARY KEY (`timing_charging_cache_rate_model_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_timing_charging_model` (
                                              `timing_charging_model_id`  bigint(20) NOT NULL AUTO_INCREMENT ,
                                              `reason`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '调整原因' ,
                                              `charging_station_id`  bigint(20) NULL DEFAULT NULL COMMENT '场站id' ,
                                              `timing_time`  datetime NOT NULL COMMENT '定时时间' ,
                                              `error_reason`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '失败原因' ,
                                              `number`  int(2) NULL DEFAULT 0 COMMENT '次数' ,
                                              `status`  int(10) NULL DEFAULT 0 COMMENT '状态（0未执行 1已执行 2执行错误）' ,
                                              `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' ,
                                              `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' ,
                                              `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' ,
                                              `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' ,
                                              `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' ,
                                              `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' ,
                                              `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' ,
                                              `phone`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新失败联系人' ,
                                              PRIMARY KEY (`timing_charging_model_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_timing_charging_rate` (
                                             `timing_charging_rate_id`  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '费率id' ,
                                             `charging_station_id`  bigint(20) NULL DEFAULT NULL COMMENT '电站id' ,
                                             `power_fee`  decimal(10,5) NULL DEFAULT NULL COMMENT '电费' ,
                                             `service_fee`  decimal(10,5) NULL DEFAULT NULL COMMENT '服务费' ,
                                             `name`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称' ,
                                             `status`  int(10) NULL DEFAULT 0 COMMENT '状态（0正常 1停用）' ,
                                             `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' ,
                                             `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间' ,
                                             `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' ,
                                             `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' ,
                                             `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' ,
                                             `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' ,
                                             `rate_value`  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '费率类型 00: 尖费率 01: 峰费率 02: 平费率 03: 谷费率' ,
                                             `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' ,
                                             `timing_charging_model_id`  bigint(20) NOT NULL COMMENT '计费模型id' ,
                                             PRIMARY KEY (`timing_charging_rate_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_timing_charging_time` (
                                             `timing_charging_time_id`  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '费率时段id' ,
                                             `charging_station_id`  bigint(20) NULL DEFAULT NULL COMMENT '电站id' ,
                                             `timing_charging_rate_id`  bigint(20) NULL DEFAULT NULL COMMENT '费率id' ,
                                             `start_time`  time NULL DEFAULT NULL COMMENT '启始时间' ,
                                             `end_time`  time NULL DEFAULT NULL COMMENT '结束时间' ,
                                             `status`  int(10) NULL DEFAULT 0 COMMENT '状态（0正常 1停用）' ,
                                             `del_flag`  int(2) NULL DEFAULT 0 COMMENT '删除标志（0代表存在 2代表删除）' ,
                                             `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间' ,
                                             `create_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建者' ,
                                             `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间' ,
                                             `update_by`  varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新者' ,
                                             `remark`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注' ,
                                             `sort`  int(4) NULL DEFAULT 1 COMMENT '时间排序' ,
                                             `type`  int(2) NULL DEFAULT 1 COMMENT '1 设置时间段  2默认时间段' ,
                                             `rate_value`  varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '费率类型 00: 尖费率 01: 峰费率 02: 平费率 03: 谷费率' ,
                                             `tenant_id`  varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户id' ,
                                             `timing_charging_model_id`  bigint(20) NOT NULL COMMENT '计费模型id' ,
                                             PRIMARY KEY (`timing_charging_time_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;
CREATE TABLE `xhpc_work_type_dict` (
                                       `work_type_id`  int(11) NOT NULL AUTO_INCREMENT ,
                                       `name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型名称' ,
                                       `parent_type_id`  int(11) NULL DEFAULT NULL COMMENT '父级类型ID' ,
                                       `status`  smallint(2) NULL DEFAULT NULL COMMENT '状态（0:禁用，1-启用）' ,
                                       `del_flag`  smallint(2) NULL DEFAULT NULL COMMENT '删除标志（0-正常，2-已删除）' ,
                                       `sort`  smallint(4) NULL DEFAULT 0 COMMENT '排序' ,
                                       `tenant_id`  varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID' ,
                                       `create_by`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
                                       `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间' ,
                                       `update_by`  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人' ,
                                       `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间' ,
                                       PRIMARY KEY (`work_type_id`)
)
    ENGINE=InnoDB
DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
ROW_FORMAT=Dynamic
;

ALTER TABLE `xhpc_community`
    ADD COLUMN `commission_type` INT(4) NULL COMMENT ' 0总金额提成 1服务费提成 2电量抽成' AFTER `tenant_id`;

ALTER TABLE `xhpc_customers`
    ADD COLUMN `commission_type` INT(4) NULL COMMENT '0总金额提成 1服务费提成 2电量抽成' AFTER `tenant_id`;


--------------------------v2.0更新-----------------------
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `sys_oper_log` MODIFY COLUMN `method`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '方法名称' AFTER `business_type`;
ALTER TABLE `t_iccard_device` ADD COLUMN `corpName`  varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '运营商名称' AFTER `serialNumber`;
ALTER TABLE `t_iccard_info` DROP INDEX `userIndex`;
ALTER TABLE `xhpc_activity_cash` ADD COLUMN `activity_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动名称' AFTER `activity_id`;
ALTER TABLE `xhpc_activity_cash` ADD COLUMN `receive_count`  int(4) NULL DEFAULT NULL COMMENT '领取次数' AFTER `end_time`;
ALTER TABLE `xhpc_activity_cash` ADD COLUMN `cus_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'B端用户ID列表（-1表示全部）' AFTER `com_user_list`;
ALTER TABLE `xhpc_activity_cash` DROP COLUMN `b_user_list`;
ALTER TABLE `xhpc_activity_discount` ADD COLUMN `activity_name`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动名称' AFTER `activity_id`;
ALTER TABLE `xhpc_activity_discount` ADD COLUMN `template_id`  int(11) NULL DEFAULT NULL COMMENT '模板ID' AFTER `activity_name`;
ALTER TABLE `xhpc_activity_discount` ADD COLUMN `cus_user_list`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'B端用户列表(以逗号分隔，-1表示全部用户)' AFTER `com_user_list`;
ALTER TABLE `xhpc_activity_discount` ADD COLUMN `start_time`  datetime NULL DEFAULT NULL COMMENT '开始时间' AFTER `tenant_id`;
ALTER TABLE `xhpc_activity_discount` ADD COLUMN `end_time`  datetime NULL DEFAULT NULL COMMENT '结束时间' AFTER `start_time`;
ALTER TABLE `xhpc_activity_discount` MODIFY COLUMN `status`  smallint(2) NULL DEFAULT NULL COMMENT '状态（0-编辑，1-提交待审核，2-审核失败，3-审核通过，4-已失效）' AFTER `end_time`;
ALTER TABLE `xhpc_activity_discount` DROP COLUMN `b_user_list`;


ALTER TABLE `xhpc_activity_internet` ADD COLUMN `service_price`  decimal(10,2) NULL DEFAULT NULL COMMENT '默认服务费' AFTER `compute_formula`;
ALTER TABLE `xhpc_activity_internet` MODIFY COLUMN `compute_formula`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '默认计算公式' AFTER `compute_type`;
ALTER TABLE `xhpc_activity_template` ADD COLUMN `activity_template_id`  int(11) NOT NULL COMMENT '模板ID' FIRST ;
ALTER TABLE `xhpc_activity_template` ADD COLUMN `background_url`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动背景图' AFTER `mini_display`;
ALTER TABLE `xhpc_activity_template` MODIFY COLUMN `activity_temlpate_id`  int(11) NOT NULL AUTO_INCREMENT COMMENT '模板ID' FIRST ;


ALTER TABLE `xhpc_activity_template` DROP COLUMN `activity_temlpate_id`;
ALTER TABLE `xhpc_activity_template` DROP COLUMN `backgroud_url`;
ALTER TABLE `xhpc_charge_order` MODIFY COLUMN `charging_degree`  decimal(10,4) NULL DEFAULT NULL COMMENT '充电度数' AFTER `charging_time`;

CREATE INDEX `Index 2` ON `xhpc_device_message`(`charge_order_no`) USING BTREE ;
CREATE INDEX `Index 3` ON `xhpc_device_message`(`serial_number`) USING BTREE ;
CREATE INDEX `Index 4` ON `xhpc_device_message`(`create_time`) USING BTREE ;



ALTER TABLE `xhpc_history_order` MODIFY COLUMN `total_power`  double(10,4) NULL DEFAULT NULL COMMENT '电量' AFTER `stop_reason_evcs`;


ALTER TABLE `xhpc_invoice` MODIFY COLUMN `status`  int(2) NULL DEFAULT NULL COMMENT '开票状态（0表示未开票，1表示已经开票，2表示不开票）' AFTER `create_time`;
CREATE INDEX `Index 2` ON `xhpc_message`(`charge_order_no`) USING BTREE ;
ALTER TABLE `xhpc_statistics_station` MODIFY COLUMN `charging_degree`  decimal(10,4) NULL DEFAULT NULL COMMENT '电量' AFTER `statistics_station_id`;
ALTER TABLE `xhpc_statistics_time_interval` MODIFY COLUMN `charging_degree`  decimal(10,4) NULL DEFAULT NULL COMMENT '电量' AFTER `status`;
ALTER TABLE `xhpc_terminal` MODIFY COLUMN `tenant_id`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL AFTER `search_value`;
ALTER TABLE `xhpc_work_order_push_message` MODIFY COLUMN `target`  varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接收方（邮箱、手机号、openID等）' AFTER `order_push_id`;

ALTER TABLE `xhpc_activity_template` ADD PRIMARY KEY (`activity_template_id`);
ALTER TABLE `xhpc_activity_template` MODIFY COLUMN `activity_template_id`  int(11) NOT NULL AUTO_INCREMENT COMMENT '模板ID' FIRST ;

INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1211', '定时计费模型', '0', '4', 'billingModel', NULL, '1', '0', 'M', '0', '0', NULL, 'build', 'admin', '2022-03-11 17:15:23', '', NULL, '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1212', '用户管理', '0', '1', 'userControl', NULL, '1', '0', 'M', '0', '0', '', 'user', 'admin', '2022-03-17 10:12:41', 'admin', '2022-03-17 13:58:01', '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1213', '活动', '0', '5', 'activity', NULL, '1', '0', 'M', '0', '0', NULL, 'date', 'admin', '2022-03-17 14:49:14', '', NULL, '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1214', '折扣活动', '1213', '1', '/promotionActivity', NULL, '1', '0', 'M', '0', '0', '', 'date', 'admin', '2022-03-17 14:52:37', 'admin', '2022-03-17 14:53:04', '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1215', '活动模板', '1214', '1', 'activityTemplate', 'activity/activityTemplate', '1', '0', 'C', '0', '0', '', '#', 'admin', '2022-03-17 14:54:32', 'admin', '2022-03-17 14:55:58', '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1216', '活动列表', '1214', '2', 'activityLists', 'activity/activityLists', '1', '0', 'C', '0', '0', NULL, '#', 'admin', '2022-03-17 14:56:46', '', NULL, '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1217', '定向发送红包', '1213', '2', 'giveRedPacket', 'activity/giveRedPacket', '1', '0', 'C', '0', '0', NULL, '#', 'admin', '2022-03-17 14:59:25', '', NULL, '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1218', '流量方活动', '1213', '3', 'thirdPartyActivity', 'activity/thirdPartyActivity', '1', '0', 'C', '0', '0', NULL, '#', 'admin', '2022-03-17 15:01:01', '', NULL, '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1219', '生成场站二维码', '1164', '1', '', NULL, '1', '0', 'F', '0', '0', 'scan:station:QRcode', '#', 'admin', '2022-03-18 15:58:51', '', NULL, '', '000000');
INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`, `tenant_id`) VALUES ('1220', '生成桩二维码', '1164', '2', '', NULL, '1', '0', 'F', '0', '0', 'scan:stake:QRcode', '#', 'admin', '2022-03-18 15:59:54', '', NULL, '', '000000');

INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('1', '01', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('2', '01', '0A', 'termType', '1', '2', '终端类型', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('3', '01', '0A', 'gunNum', '1', '3', '枪数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('4', '01', '0A', 'version', '1', '4', '协议版本', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('5', '03', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('6', '03', '0A', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('7', '03', '0A', 'gunStatus', '1', '3', '枪状态', 'int', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('8', '05', '0A', 'pileNo', '7', '1', '桩号', 'bin', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('9', '05', '0A', 'rateModelId', '1', '2', '计费模型编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('10', '09', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('11', '13', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('12', '13', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('13', '13', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('14', '13', '0A', 'status', '1', '4', '状态', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('15', '13', '0A', 'pileGunStatus', '1', '5', '枪是否归位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('16', '13', '0A', 'vehicleGunStatus', '1', '6', '是否插枪', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('17', '13', '0A', 'workingVoltage', '2', '7', '输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('18', '13', '0A', 'workingCurrent', '2', '8', '输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('19', '13', '0A', 'gunLineTemperature', '1', '9', '枪线温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('20', '13', '0A', 'gunLineNumber', '8', '10', '枪线编码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('21', '13', '0A', 'soc', '1', '11', 'SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('22', '13', '0A', 'maxTemperature', '1', '12', '电池组最高温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('23', '13', '0A', 'chargingTime', '2', '13', '累计充电时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('24', '13', '0A', 'remainingTime', '2', '14', '剩余时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('25', '13', '0A', 'chargingDegree', '4', '15', '充电度数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('26', '13', '0A', 'lossChargingDegree', '4', '16', '记损充电度数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('27', '13', '0A', 'amountCharged', '4', '17', '已充金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('28', '13', '0A', 'hardwareFault', '2', '18', '硬件故障', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('29', '15', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('30', '15', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('31', '15', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('32', '15', '0A', 'bmsProtocolVersion', '3', '4', 'BMS协议版本', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('33', '15', '0A', 'bmsBatteryType', '1', '5', 'BMS电池类型', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('34', '15', '0A', 'bmsBatteryNominalTotalCapacity', '2', '6', 'BMS整车额定容量Ah', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('35', '15', '0A', 'bmsBatteryNominalTotalVoltage', '2', '7', 'BMS整车额定电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('36', '15', '0A', 'bmsBatteryFactory', '4', '8', 'BMS电池厂商', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('37', '15', '0A', 'bmsBatteryPackSn', '4', '9', 'BMS电池组序号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('38', '15', '0A', 'bmsBatteryPackProdYear', '1', '10', 'BMS电池组生产年偏移量(+1985年)', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('39', '15', '0A', 'bmsBatteryPackProdMonth', '1', '11', 'BMS电池组生产月', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('40', '15', '0A', 'bmsBatteryPackProdDate', '1', '12', 'BMS电池组生产日', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('41', '15', '0A', 'bmsBatteryRecycleTime', '3', '13', 'BMS电池组充电次数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('42', '15', '0A', 'bmsBatteryOwnership', '1', '14', 'BMS电池组产权标识', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('43', '15', '0A', 'reserved', '1', '15', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('44', '15', '0A', 'vin', '17', '16', 'vin码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('45', '15', '0A', 'bmsSoftwareVersion', '8', '17', 'BMS软件版本号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('46', '17', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('47', '17', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('48', '17', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('49', '17', '0A', 'bmsBatteryMonoMaximumVoltage', '2', '4', 'BMS单体电池最高允许充电电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('50', '17', '0A', 'bmsBatteryMaximumCurrent', '2', '5', 'BMS最高允许充电电流A', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('51', '17', '0A', 'bmsBatteryNominalEnergy', '2', '6', 'BMS动力蓄电池标称总能量kWh', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('52', '17', '0A', 'bmsBatteryMaximumTotalVoltage', '2', '7', 'BMS最高允许充电总电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('53', '17', '0A', 'bmsBatteryMaximumTemperature', '1', '8', 'BMS最高允许温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('54', '17', '0A', 'soc', '2', '9', 'SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('55', '17', '0A', 'bmsBatteryViechleVoltage', '2', '10', 'BMS整车动力蓄电池当前电池电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('56', '17', '0A', 'pileMaximumVoltage', '2', '11', '电桩最高输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('57', '17', '0A', 'pileMinimumVoltage', '2', '12', '电桩最低输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('58', '17', '0A', 'pileMaximumCurrent', '2', '13', '电桩最大输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('59', '17', '0A', 'pileMinimumCurrent', '2', '14', '电桩最小输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('60', '19', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('61', '19', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('62', '19', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('63', '19', '0A', 'soc', '1', '4', '结束SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('64', '19', '0A', 'bmsBatteryMonoMinimumVoltage', '2', '5', 'BMS单体电池最低电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('65', '19', '0A', 'bmsBatteryMonoMaximumVoltage', '2', '6', 'BMS单体电池最高电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('66', '19', '0A', 'bmsBatteryMinimumTemperature', '1', '7', 'BMS电池最低温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('67', '19', '0A', 'bmsBatteryMaximumTemperature', '1', '8', 'BMS电池最高温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('68', '19', '0A', 'totalChargingTime', '2', '9', '累计充电时间min', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('69', '19', '0A', 'outputEnergy', '2', '10', '电桩输出能量kWh', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('70', '19', '0A', 'chargerSn', '4', '11', '电桩充电机编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('71', '1B', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('72', '1B', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('73', '1B', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('74', '1B', '0A', 'SPN25600x00', '2', '4', '接收 SPN2560=0x00 的充电机辨识报文超时 <00>：=正常；<01>：=超时；<10>：=不可信状态', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('75', '1B', '0A', 'SPN25600xAA', '2', '5', '接收 SPN2560=0xAA 的充电机辨识报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('76', '1B', '0A', 'reserved', '4', '6', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('77', '1B', '0A', 'timeSyncAndMaxOutputMsgOt', '2', '7', '接收充电机的时间同步和充电机最大输出能力报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('78', '1B', '0A', 'chargeCompleteMsgOt', '2', '8', '接收充电机完成充电准备报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('79', '1B', '0A', 'reserved', '4', '9', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('80', '1B', '0A', 'chargeStatusMsgOt', '2', '10', '接收充电机充电状态报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('81', '1B', '0A', 'chargeStopMsgOt', '2', '11', '接收充电机中止充电报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('82', '1B', '0A', 'reserved', '2', '12', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('83', '1B', '0A', 'chargerSummaryMsgOt', '2', '13', '接收充电机充电统计报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('84', '1B', '0A', 'bmsOther', '6', '14', '其他', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('85', '1B', '0A', 'bmsAndVehicleIdentMsgOt', '2', '15', '接收 BMS 和车辆的辨识报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('86', '1B', '0A', 'reserved', '6', '16', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('87', '1B', '0A', 'batteryChargeParamMsgOt', '2', '17', '接收电池充电参数报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('88', '1B', '0A', 'bmsChargingPreparedMsgOt', '2', '18', '接收 BMS 完成充电准备报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('89', '1B', '0A', 'reserved', '4', '19', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('90', '1B', '0A', 'batteryChargeStatusSummaryMsgOt', '2', '20', '接收电池充电总状态报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('91', '1B', '0A', 'batteryChargingRequestMsgOt', '2', '21', '接收电池充电要求报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('92', '1B', '0A', 'bmsStopMsgOt', '2', '22', '接收 BMS 中止充电报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('93', '1B', '0A', 'reserved', '2', '23', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('94', '1B', '0A', 'bmsChargingSummaryMsgOt', '2', '24', '接收 BMS 充电统计报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('95', '1B', '0A', 'chargerOther', '2', '25', '充电机其他 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('96', '1D', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('97', '1D', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('98', '1D', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('99', '1D', '0A', 'bmsStopReason', '1', '4', 'BMS 中止充电原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('100', '1D', '0A', 'bmsStopFaultReason', '2', '5', 'BMS 中止充电故障原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('101', '1D', '0A', 'bmsStopErrorReason', '1', '6', 'BMS 中止充电错误原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('102', '21', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('103', '21', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('104', '21', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('105', '21', '0A', 'chargerStopReason', '1', '4', '充电机 中止充电原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('106', '21', '0A', 'chargerStopFaultReason', '2', '5', '充电机 中止充电故障原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('107', '21', '0A', 'chargerStopErrorReason', '1', '6', '充电机 中止充电错误原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('108', '23', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('109', '23', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('110', '23', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('111', '23', '0A', 'bmsVoltageRequest', '2', '4', 'BMS 电压需求', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('112', '23', '0A', 'bmsCurrentRequest', '2', '5', 'BMS 电流需求', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('113', '23', '0A', 'bmsChargingMod', '1', '6', 'BMS 充电模式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('114', '23', '0A', 'bmsChargingVolt', '2', '7', 'BMS 充电电压测量值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('115', '23', '0A', 'bmsChargingCurrent', '2', '8', 'BMS 充电电流测量值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('116', '23', '0A', 'monoBatteryVoltGroupId', '4', '9', 'BMS 最高单体动力蓄电池电压及组号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('117', '23', '0A', 'soc', '1', '10', 'BMS 当前荷电状态 SOC（ %）', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('118', '23', '0A', 'bmsEstRemainingTime', '2', '11', 'BMS 估算剩余充电时间 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('119', '23', '0A', 'pileVoltageOutput', '2', '12', '电桩电压输出值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('120', '23', '0A', 'pileCurrentOutput', '2', '13', '电桩电流输出值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('121', '23', '0A', 'chargingTimeSummary', '2', '14', '累计充电时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('122', '25', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('123', '25', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('124', '25', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('125', '25', '0A', 'maxMonoBatVoltId', '1', '4', 'BMS 最高单体动力蓄电池电压所在编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('126', '25', '0A', 'maxBatTemperature', '1', '5', 'BMS 最高动力蓄电池温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('127', '25', '0A', 'maxTempCheckPntId', '1', '6', 'BMS 最高温度检测点编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('128', '25', '0A', 'miniBatTemperature', '1', '7', '最低动力蓄电池温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('129', '25', '0A', 'miniBatTempCheckPntId', '1', '8', '最低动力蓄电池温度检测点编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('130', '25', '0A', 'biBitWiseInfo', '2', '9', 'GBT-27930 充电桩与 BMS 充电过程 BMS 信息', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('137', '31', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('138', '31', '0A', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('139', '31', '0A', 'startType', '1', '3', '启动方式 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('140', '31', '0A', 'passwordRequired', '1', '4', '是否需要密码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('141', '31', '0A', 'accountOrCardNo', '8', '5', '账号或者物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('142', '31', '0A', 'password', '16', '6', '密码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('143', '31', '0A', 'vin', '17', '7', 'VIN', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('144', '33', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('145', '33', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('146', '33', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('147', '33', '0A', 'startResult', '1', '4', '启动结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('148', '33', '0A', 'failReason', '1', '5', '失败原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('149', '35', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('150', '35', '0A', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('151', '35', '0A', 'stopResult', '1', '3', '停止结果 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('152', '35', '0A', 'failReason', '1', '4', '失败原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('153', '3B', '0A', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('154', '3B', '0A', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('155', '3B', '0A', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('156', '3B', '0A', 'startTime', '7', '4', '开始时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('157', '3B', '0A', 'endTime', '7', '5', '结束时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('158', '3B', '0A', 't1Price', '4', '6', '尖单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('159', '3B', '0A', 't1PowerQuantity', '4', '7', '尖电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('160', '3B', '0A', 't1LossQuantity', '4', '8', '计损尖电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('161', '3B', '0A', 't1Cost', '4', '9', '尖金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('162', '3B', '0A', 't2Price', '4', '10', '峰单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('163', '3B', '0A', 't2PowerQuantity', '4', '11', '峰电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('164', '3B', '0A', 't2LossQuantity', '4', '12', '计损峰电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('165', '3B', '0A', 't2Cost', '4', '13', '峰金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('166', '3B', '0A', 't3Price', '4', '14', '平单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('167', '3B', '0A', 't3PowerQuantity', '4', '15', '平电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('168', '3B', '0A', 't3LossQuantity', '4', '16', '计损平电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('169', '3B', '0A', 't3Cost', '4', '17', '平金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('170', '3B', '0A', 't4Price', '4', '18', '谷单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('171', '3B', '0A', 't4PowerQuantity', '4', '19', '谷电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('172', '3B', '0A', 't4LossQuantity', '4', '20', '计损谷电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('173', '3B', '0A', 't4Cost', '4', '21', '谷金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('174', '3B', '0A', 'electricMeterStart', '5', '22', '电表总起值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('175', '3B', '0A', 'electricMeterEnd', '5', '23', '电表总止值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('176', '3B', '0A', 'totalPowerQuantity', '4', '24', '总电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('177', '3B', '0A', 'totalLossPowerQuantity', '4', '25', '计损总电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('178', '3B', '0A', 'cost', '4', '26', '消费金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('179', '3B', '0A', 'vinNormal', '17', '27', 'VIN 码，此处 VIN 码和充电时 VIN码不同，正序直接上传，无需补0和反序', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('180', '3B', '0A', 'transactionFlag', '1', '28', '交易标识', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('181', '3B', '0A', 'transactionDatetime', '7', '29', '交易日期、时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('182', '3B', '0A', 'stopReason', '1', '30', '停止原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('183', '3B', '0A', 'cardNo', '8', '31', '物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('184', '41', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('185', '41', '0A', 'cardNo', '8', '2', '物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('186', '41', '0A', 'modifyResult', '1', '3', '修改结果 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('187', '43', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('188', '43', '0A', 'writeResult', '1', '2', '保存结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('189', '43', '0A', 'failResult', '1', '3', '失败原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('190', '51', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('191', '51', '0A', 'configResult', '1', '2', '设置结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('192', '55', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('193', '55', '0A', 'setTime', '7', '2', '当前时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('194', '57', '0A', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('195', '57', '0A', 'configResult', '1', '2', '设置结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('196', '01', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('197', '01', '0B', 'termType', '1', '2', '终端类型', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('198', '01', '0B', 'gunNum', '1', '3', '枪数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('199', '01', '0B', 'version', '1', '4', '协议版本', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('200', '03', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('201', '03', '0B', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('202', '03', '0B', 'gunStatus', '1', '3', '枪状态', 'int', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('203', '05', '0B', 'pileNo', '7', '1', '桩号', 'bin', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('204', '05', '0B', 'rateModelId', '1', '2', '计费模型编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('205', '09', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('206', '13', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('207', '13', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('208', '13', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('209', '13', '0B', 'status', '1', '4', '状态', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('210', '13', '0B', 'pileGunStatus', '1', '5', '枪是否归位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('211', '13', '0B', 'vehicleGunStatus', '1', '6', '是否插枪', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('212', '13', '0B', 'workingVoltage', '2', '7', '输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('213', '13', '0B', 'workingCurrent', '2', '8', '输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('214', '13', '0B', 'gunLineTemperature', '1', '9', '枪线温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('215', '13', '0B', 'gunLineNumber', '8', '10', '枪线编码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('216', '13', '0B', 'soc', '1', '11', 'SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('217', '13', '0B', 'maxTemperature', '1', '12', '电池组最高温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('218', '13', '0B', 'chargingTime', '2', '13', '累计充电时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('219', '13', '0B', 'remainingTime', '2', '14', '剩余时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('220', '13', '0B', 'chargingDegree', '4', '15', '充电度数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('221', '13', '0B', 'lossChargingDegree', '4', '16', '记损充电度数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('222', '13', '0B', 'amountCharged', '4', '17', '已充金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('223', '13', '0B', 'hardwareFault', '2', '18', '硬件故障', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('224', '15', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('225', '15', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('226', '15', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('227', '15', '0B', 'bmsProtocolVersion', '3', '4', 'BMS协议版本', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('228', '15', '0B', 'bmsBatteryType', '1', '5', 'BMS电池类型', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('229', '15', '0B', 'bmsBatteryNominalTotalCapacity', '2', '6', 'BMS整车额定容量Ah', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('230', '15', '0B', 'bmsBatteryNominalTotalVoltage', '2', '7', 'BMS整车额定电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('231', '15', '0B', 'bmsBatteryFactory', '4', '8', 'BMS电池厂商', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('232', '15', '0B', 'bmsBatteryPackSn', '4', '9', 'BMS电池组序号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('233', '15', '0B', 'bmsBatteryPackProdYear', '1', '10', 'BMS电池组生产年偏移量(+1985年)', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('234', '15', '0B', 'bmsBatteryPackProdMonth', '1', '11', 'BMS电池组生产月', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('235', '15', '0B', 'bmsBatteryPackProdDate', '1', '12', 'BMS电池组生产日', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('236', '15', '0B', 'bmsBatteryRecycleTime', '3', '13', 'BMS电池组充电次数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('237', '15', '0B', 'bmsBatteryOwnership', '1', '14', 'BMS电池组产权标识', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('238', '15', '0B', 'reserved', '1', '15', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('239', '15', '0B', 'vin', '17', '16', 'vin码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('240', '15', '0B', 'bmsSoftwareVersion', '8', '17', 'BMS软件版本号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('241', '17', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('242', '17', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('243', '17', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('244', '17', '0B', 'bmsBatteryMonoMaximumVoltage', '2', '4', 'BMS单体电池最高允许充电电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('245', '17', '0B', 'bmsBatteryMaximumCurrent', '2', '5', 'BMS最高允许充电电流A', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('246', '17', '0B', 'bmsBatteryNominalEnergy', '2', '6', 'BMS动力蓄电池标称总能量kWh', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('247', '17', '0B', 'bmsBatteryMaximumTotalVoltage', '2', '7', 'BMS最高允许充电总电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('248', '17', '0B', 'bmsBatteryMaximumTemperature', '1', '8', 'BMS最高允许温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('249', '17', '0B', 'soc', '2', '9', 'SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('250', '17', '0B', 'bmsBatteryViechleVoltage', '2', '10', 'BMS整车动力蓄电池当前电池电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('251', '17', '0B', 'pileMaximumVoltage', '2', '11', '电桩最高输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('252', '17', '0B', 'pileMinimumVoltage', '2', '12', '电桩最低输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('253', '17', '0B', 'pileMaximumCurrent', '2', '13', '电桩最大输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('254', '17', '0B', 'pileMinimumCurrent', '2', '14', '电桩最小输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('255', '19', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('256', '19', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('257', '19', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('258', '19', '0B', 'soc', '1', '4', '结束SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('259', '19', '0B', 'bmsBatteryMonoMinimumVoltage', '2', '5', 'BMS单体电池最低电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('260', '19', '0B', 'bmsBatteryMonoMaximumVoltage', '2', '6', 'BMS单体电池最高电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('261', '19', '0B', 'bmsBatteryMinimumTemperature', '1', '7', 'BMS电池最低温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('262', '19', '0B', 'bmsBatteryMaximumTemperature', '1', '8', 'BMS电池最高温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('263', '19', '0B', 'totalChargingTime', '2', '9', '累计充电时间min', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('264', '19', '0B', 'outputEnergy', '2', '10', '电桩输出能量kWh', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('265', '19', '0B', 'chargerSn', '4', '11', '电桩充电机编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('266', '1B', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('267', '1B', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('268', '1B', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('269', '1B', '0B', 'SPN25600x00', '2', '4', '接收 SPN2560=0x00 的充电机辨识报文超时 <00>：=正常；<01>：=超时；<10>：=不可信状态', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('270', '1B', '0B', 'SPN25600xAA', '2', '5', '接收 SPN2560=0xAA 的充电机辨识报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('271', '1B', '0B', 'reserved', '4', '6', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('272', '1B', '0B', 'timeSyncAndMaxOutputMsgOt', '2', '7', '接收充电机的时间同步和充电机最大输出能力报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('273', '1B', '0B', 'chargeCompleteMsgOt', '2', '8', '接收充电机完成充电准备报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('274', '1B', '0B', 'reserved', '4', '9', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('275', '1B', '0B', 'chargeStatusMsgOt', '2', '10', '接收充电机充电状态报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('276', '1B', '0B', 'chargeStopMsgOt', '2', '11', '接收充电机中止充电报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('277', '1B', '0B', 'reserved', '2', '12', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('278', '1B', '0B', 'chargerSummaryMsgOt', '2', '13', '接收充电机充电统计报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('279', '1B', '0B', 'bmsOther', '6', '14', '其他', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('280', '1B', '0B', 'bmsAndVehicleIdentMsgOt', '2', '15', '接收 BMS 和车辆的辨识报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('281', '1B', '0B', 'reserved', '6', '16', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('282', '1B', '0B', 'batteryChargeParamMsgOt', '2', '17', '接收电池充电参数报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('283', '1B', '0B', 'bmsChargingPreparedMsgOt', '2', '18', '接收 BMS 完成充电准备报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('284', '1B', '0B', 'reserved', '4', '19', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('285', '1B', '0B', 'batteryChargeStatusSummaryMsgOt', '2', '20', '接收电池充电总状态报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('286', '1B', '0B', 'batteryChargingRequestMsgOt', '2', '21', '接收电池充电要求报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('287', '1B', '0B', 'bmsStopMsgOt', '2', '22', '接收 BMS 中止充电报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('288', '1B', '0B', 'reserved', '2', '23', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('289', '1B', '0B', 'bmsChargingSummaryMsgOt', '2', '24', '接收 BMS 充电统计报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('290', '1B', '0B', 'chargerOther', '2', '25', '充电机其他 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('291', '1D', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('292', '1D', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('293', '1D', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('294', '1D', '0B', 'bmsStopReason', '1', '4', 'BMS 中止充电原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('295', '1D', '0B', 'bmsStopFaultReason', '2', '5', 'BMS 中止充电故障原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('296', '1D', '0B', 'bmsStopErrorReason', '1', '6', 'BMS 中止充电错误原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('297', '21', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('298', '21', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('299', '21', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('300', '21', '0B', 'chargerStopReason', '1', '4', '充电机 中止充电原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('301', '21', '0B', 'chargerStopFaultReason', '2', '5', '充电机 中止充电故障原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('302', '21', '0B', 'chargerStopErrorReason', '1', '6', '充电机 中止充电错误原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('303', '23', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('304', '23', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('305', '23', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('306', '23', '0B', 'bmsVoltageRequest', '2', '4', 'BMS 电压需求', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('307', '23', '0B', 'bmsCurrentRequest', '2', '5', 'BMS 电流需求', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('308', '23', '0B', 'bmsChargingMod', '1', '6', 'BMS 充电模式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('309', '23', '0B', 'bmsChargingVolt', '2', '7', 'BMS 充电电压测量值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('310', '23', '0B', 'bmsChargingCurrent', '2', '8', 'BMS 充电电流测量值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('311', '23', '0B', 'monoBatteryVoltGroupId', '4', '9', 'BMS 最高单体动力蓄电池电压及组号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('312', '23', '0B', 'soc', '1', '10', 'BMS 当前荷电状态 SOC（ %）', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('313', '23', '0B', 'bmsEstRemainingTime', '2', '11', 'BMS 估算剩余充电时间 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('314', '23', '0B', 'pileVoltageOutput', '2', '12', '电桩电压输出值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('315', '23', '0B', 'pileCurrentOutput', '2', '13', '电桩电流输出值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('316', '23', '0B', 'chargingTimeSummary', '2', '14', '累计充电时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('317', '25', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('318', '25', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('319', '25', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('320', '25', '0B', 'maxMonoBatVoltId', '1', '4', 'BMS 最高单体动力蓄电池电压所在编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('321', '25', '0B', 'maxBatTemperature', '1', '5', 'BMS 最高动力蓄电池温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('322', '25', '0B', 'maxTempCheckPntId', '1', '6', 'BMS 最高温度检测点编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('323', '25', '0B', 'miniBatTemperature', '1', '7', '最低动力蓄电池温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('324', '25', '0B', 'miniBatTempCheckPntId', '1', '8', '最低动力蓄电池温度检测点编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('325', '25', '0B', 'biBitWiseInfo', '2', '9', 'GBT-27930 充电桩与 BMS 充电过程 BMS 信息', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('326', '31', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('327', '31', '0B', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('328', '31', '0B', 'startType', '1', '3', '启动方式 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('329', '31', '0B', 'passwordRequired', '1', '4', '是否需要密码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('330', '31', '0B', 'accountOrCardNo', '8', '5', '账号或者物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('331', '31', '0B', 'password', '16', '6', '密码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('332', '31', '0B', 'vin', '17', '7', 'VIN', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('333', '33', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('334', '33', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('335', '33', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('336', '33', '0B', 'startResult', '1', '4', '启动结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('337', '33', '0B', 'failReason', '1', '5', '失败原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('338', '35', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('339', '35', '0B', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('340', '35', '0B', 'stopResult', '1', '3', '停止结果 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('341', '35', '0B', 'failReason', '1', '4', '失败原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('342', '3B', '0B', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('343', '3B', '0B', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('344', '3B', '0B', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('345', '3B', '0B', 'startTime', '7', '4', '开始时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('346', '3B', '0B', 'endTime', '7', '5', '结束时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('347', '3B', '0B', 't1Price', '4', '6', '尖单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('348', '3B', '0B', 't1PowerQuantity', '4', '7', '尖电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('349', '3B', '0B', 't1LossQuantity', '4', '8', '计损尖电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('350', '3B', '0B', 't1Cost', '4', '9', '尖金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('351', '3B', '0B', 't2Price', '4', '10', '峰单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('352', '3B', '0B', 't2PowerQuantity', '4', '11', '峰电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('353', '3B', '0B', 't2LossQuantity', '4', '12', '计损峰电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('354', '3B', '0B', 't2Cost', '4', '13', '峰金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('355', '3B', '0B', 't3Price', '4', '14', '平单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('356', '3B', '0B', 't3PowerQuantity', '4', '15', '平电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('357', '3B', '0B', 't3LossQuantity', '4', '16', '计损平电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('358', '3B', '0B', 't3Cost', '4', '17', '平金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('359', '3B', '0B', 't4Price', '4', '18', '谷单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('360', '3B', '0B', 't4PowerQuantity', '4', '19', '谷电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('361', '3B', '0B', 't4LossQuantity', '4', '20', '计损谷电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('362', '3B', '0B', 't4Cost', '4', '21', '谷金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('363', '3B', '0B', 'electricMeterStart', '5', '22', '电表总起值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('364', '3B', '0B', 'electricMeterEnd', '5', '23', '电表总止值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('365', '3B', '0B', 'totalPowerQuantity', '4', '24', '总电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('366', '3B', '0B', 'totalLossPowerQuantity', '4', '25', '计损总电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('367', '3B', '0B', 'cost', '4', '26', '消费金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('368', '3B', '0B', 'vinNormal', '17', '27', 'VIN 码，此处 VIN 码和充电时 VIN码不同，正序直接上传，无需补0和反序', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('369', '3B', '0B', 'transactionFlag', '1', '28', '交易标识', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('370', '3B', '0B', 'transactionDatetime', '7', '29', '交易日期、时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('371', '3B', '0B', 'stopReason', '1', '30', '停止原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('372', '3B', '0B', 'cardNo', '8', '31', '物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('373', '41', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('374', '41', '0B', 'cardNo', '8', '2', '物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('375', '41', '0B', 'modifyResult', '1', '3', '修改结果 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('376', '43', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('377', '43', '0B', 'writeResult', '1', '2', '保存结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('378', '43', '0B', 'failResult', '1', '3', '失败原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('379', '51', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('380', '51', '0B', 'configResult', '1', '2', '设置结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('381', '55', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('382', '55', '0B', 'setTime', '7', '2', '当前时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('383', '57', '0B', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('384', '57', '0B', 'configResult', '1', '2', '设置结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('385', '01', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('386', '01', '0C', 'termType', '1', '2', '终端类型', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('387', '01', '0C', 'gunNum', '1', '3', '枪数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('388', '01', '0C', 'version', '1', '4', '协议版本', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('389', '03', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('390', '03', '0C', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('391', '03', '0C', 'gunStatus', '1', '3', '枪状态', 'int', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('392', '05', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('393', '05', '0C', 'rateModelId', '4', '2', '计费模型编号', 'int', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('394', '09', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('395', '13', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('396', '13', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('397', '13', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('398', '13', '0C', 'status', '1', '4', '状态', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('399', '13', '0C', 'pileGunStatus', '1', '5', '枪是否归位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('400', '13', '0C', 'vehicleGunStatus', '1', '6', '是否插枪', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('401', '13', '0C', 'workingVoltage', '2', '7', '输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('402', '13', '0C', 'workingCurrent', '2', '8', '输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('403', '13', '0C', 'gunLineTemperature', '1', '9', '枪线温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('404', '13', '0C', 'gunLineNumber', '8', '10', '枪线编码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('405', '13', '0C', 'soc', '1', '11', 'SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('406', '13', '0C', 'maxTemperature', '1', '12', '电池组最高温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('407', '13', '0C', 'chargingTime', '2', '13', '累计充电时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('408', '13', '0C', 'remainingTime', '2', '14', '剩余时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('409', '13', '0C', 'chargingDegree', '4', '15', '充电度数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('410', '13', '0C', 'lossChargingDegree', '4', '16', '记损充电度数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('411', '13', '0C', 'amountCharged', '4', '17', '已充金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('412', '13', '0C', 'hardwareFault', '2', '18', '硬件故障', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('413', '15', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('414', '15', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('415', '15', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('416', '15', '0C', 'bmsProtocolVersion', '3', '4', 'BMS协议版本', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('417', '15', '0C', 'bmsBatteryType', '1', '5', 'BMS电池类型', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('418', '15', '0C', 'bmsBatteryNominalTotalCapacity', '2', '6', 'BMS整车额定容量Ah', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('419', '15', '0C', 'bmsBatteryNominalTotalVoltage', '2', '7', 'BMS整车额定电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('420', '15', '0C', 'bmsBatteryFactory', '4', '8', 'BMS电池厂商', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('421', '15', '0C', 'bmsBatteryPackSn', '4', '9', 'BMS电池组序号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('422', '15', '0C', 'bmsBatteryPackProdYear', '1', '10', 'BMS电池组生产年偏移量(+1985年)', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('423', '15', '0C', 'bmsBatteryPackProdMonth', '1', '11', 'BMS电池组生产月', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('424', '15', '0C', 'bmsBatteryPackProdDate', '1', '12', 'BMS电池组生产日', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('425', '15', '0C', 'bmsBatteryRecycleTime', '3', '13', 'BMS电池组充电次数', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('426', '15', '0C', 'bmsBatteryOwnership', '1', '14', 'BMS电池组产权标识', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('427', '15', '0C', 'reserved', '1', '15', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('428', '15', '0C', 'vin', '17', '16', 'vin码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('429', '15', '0C', 'bmsSoftwareVersion', '8', '17', 'BMS软件版本号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('430', '17', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('431', '17', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('432', '17', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('433', '17', '0C', 'bmsBatteryMonoMaximumVoltage', '2', '4', 'BMS单体电池最高允许充电电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('434', '17', '0C', 'bmsBatteryMaximumCurrent', '2', '5', 'BMS最高允许充电电流A', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('435', '17', '0C', 'bmsBatteryNominalEnergy', '2', '6', 'BMS动力蓄电池标称总能量kWh', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('436', '17', '0C', 'bmsBatteryMaximumTotalVoltage', '2', '7', 'BMS最高允许充电总电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('437', '17', '0C', 'bmsBatteryMaximumTemperature', '1', '8', 'BMS最高允许温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('438', '17', '0C', 'soc', '2', '9', 'SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('439', '17', '0C', 'bmsBatteryViechleVoltage', '2', '10', 'BMS整车动力蓄电池当前电池电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('440', '17', '0C', 'pileMaximumVoltage', '2', '11', '电桩最高输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('441', '17', '0C', 'pileMinimumVoltage', '2', '12', '电桩最低输出电压', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('442', '17', '0C', 'pileMaximumCurrent', '2', '13', '电桩最大输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('443', '17', '0C', 'pileMinimumCurrent', '2', '14', '电桩最小输出电流', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('444', '19', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('445', '19', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('446', '19', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('447', '19', '0C', 'soc', '1', '4', '结束SOC', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('448', '19', '0C', 'bmsBatteryMonoMinimumVoltage', '2', '5', 'BMS单体电池最低电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('449', '19', '0C', 'bmsBatteryMonoMaximumVoltage', '2', '6', 'BMS单体电池最高电压V', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('450', '19', '0C', 'bmsBatteryMinimumTemperature', '1', '7', 'BMS电池最低温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('451', '19', '0C', 'bmsBatteryMaximumTemperature', '1', '8', 'BMS电池最高温度°', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('452', '19', '0C', 'totalChargingTime', '2', '9', '累计充电时间min', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('453', '19', '0C', 'outputEnergy', '2', '10', '电桩输出能量kWh', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('454', '19', '0C', 'chargerSn', '4', '11', '电桩充电机编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('455', '1B', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('456', '1B', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('457', '1B', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('458', '1B', '0C', 'SPN25600x00', '2', '4', '接收 SPN2560=0x00 的充电机辨识报文超时 <00>：=正常；<01>：=超时；<10>：=不可信状态', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('459', '1B', '0C', 'SPN25600xAA', '2', '5', '接收 SPN2560=0xAA 的充电机辨识报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('460', '1B', '0C', 'reserved', '4', '6', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('461', '1B', '0C', 'timeSyncAndMaxOutputMsgOt', '2', '7', '接收充电机的时间同步和充电机最大输出能力报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('462', '1B', '0C', 'chargeCompleteMsgOt', '2', '8', '接收充电机完成充电准备报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('463', '1B', '0C', 'reserved', '4', '9', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('464', '1B', '0C', 'chargeStatusMsgOt', '2', '10', '接收充电机充电状态报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('465', '1B', '0C', 'chargeStopMsgOt', '2', '11', '接收充电机中止充电报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('466', '1B', '0C', 'reserved', '2', '12', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('467', '1B', '0C', 'chargerSummaryMsgOt', '2', '13', '接收充电机充电统计报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('468', '1B', '0C', 'bmsOther', '6', '14', '其他', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('469', '1B', '0C', 'bmsAndVehicleIdentMsgOt', '2', '15', '接收 BMS 和车辆的辨识报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('470', '1B', '0C', 'reserved', '6', '16', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('471', '1B', '0C', 'batteryChargeParamMsgOt', '2', '17', '接收电池充电参数报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('472', '1B', '0C', 'bmsChargingPreparedMsgOt', '2', '18', '接收 BMS 完成充电准备报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('473', '1B', '0C', 'reserved', '4', '19', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('474', '1B', '0C', 'batteryChargeStatusSummaryMsgOt', '2', '20', '接收电池充电总状态报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('475', '1B', '0C', 'batteryChargingRequestMsgOt', '2', '21', '接收电池充电要求报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('476', '1B', '0C', 'bmsStopMsgOt', '2', '22', '接收 BMS 中止充电报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('477', '1B', '0C', 'reserved', '2', '23', '预留位', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('478', '1B', '0C', 'bmsChargingSummaryMsgOt', '2', '24', '接收 BMS 充电统计报文超时', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('479', '1B', '0C', 'chargerOther', '2', '25', '充电机其他 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('480', '1D', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('481', '1D', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('482', '1D', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('483', '1D', '0C', 'bmsStopReason', '1', '4', 'BMS 中止充电原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('484', '1D', '0C', 'bmsStopFaultReason', '2', '5', 'BMS 中止充电故障原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('485', '1D', '0C', 'bmsStopErrorReason', '1', '6', 'BMS 中止充电错误原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('486', '21', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('487', '21', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('488', '21', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('489', '21', '0C', 'chargerStopReason', '1', '4', '充电机 中止充电原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('490', '21', '0C', 'chargerStopFaultReason', '2', '5', '充电机 中止充电故障原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('491', '21', '0C', 'chargerStopErrorReason', '1', '6', '充电机 中止充电错误原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('492', '23', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('493', '23', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('494', '23', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('495', '23', '0C', 'bmsVoltageRequest', '2', '4', 'BMS 电压需求', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('496', '23', '0C', 'bmsCurrentRequest', '2', '5', 'BMS 电流需求', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('497', '23', '0C', 'bmsChargingMod', '1', '6', 'BMS 充电模式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('498', '23', '0C', 'bmsChargingVolt', '2', '7', 'BMS 充电电压测量值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('499', '23', '0C', 'bmsChargingCurrent', '2', '8', 'BMS 充电电流测量值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('500', '23', '0C', 'monoBatteryVoltGroupId', '4', '9', 'BMS 最高单体动力蓄电池电压及组号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('501', '23', '0C', 'soc', '1', '10', 'BMS 当前荷电状态 SOC（ %）', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('502', '23', '0C', 'bmsEstRemainingTime', '2', '11', 'BMS 估算剩余充电时间 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('503', '23', '0C', 'pileVoltageOutput', '2', '12', '电桩电压输出值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('504', '23', '0C', 'pileCurrentOutput', '2', '13', '电桩电流输出值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('505', '23', '0C', 'chargingTimeSummary', '2', '14', '累计充电时间', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('506', '25', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('507', '25', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('508', '25', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('509', '25', '0C', 'maxMonoBatVoltId', '1', '4', 'BMS 最高单体动力蓄电池电压所在编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('510', '25', '0C', 'maxBatTemperature', '1', '5', 'BMS 最高动力蓄电池温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('511', '25', '0C', 'maxTempCheckPntId', '1', '6', 'BMS 最高温度检测点编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('512', '25', '0C', 'miniBatTemperature', '1', '7', '最低动力蓄电池温度', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('513', '25', '0C', 'miniBatTempCheckPntId', '1', '8', '最低动力蓄电池温度检测点编号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('514', '25', '0C', 'biBitWiseInfo', '2', '9', 'GBT-27930 充电桩与 BMS 充电过程 BMS 信息', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('515', '31', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('516', '31', '0C', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('517', '31', '0C', 'startType', '1', '3', '启动方式 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('518', '31', '0C', 'passwordRequired', '1', '4', '是否需要密码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('519', '31', '0C', 'accountOrCardNo', '8', '5', '账号或者物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('520', '31', '0C', 'password', '16', '6', '密码', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('521', '31', '0C', 'vin', '17', '7', 'VIN', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('522', '31', '0C', 'rateModelId', '4', '8', '费率模型id', 'int', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('523', '33', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('524', '33', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('525', '33', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('526', '33', '0C', 'startResult', '1', '4', '启动结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('527', '33', '0C', 'failReason', '1', '5', '失败原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('528', '35', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('529', '35', '0C', 'gunId', '1', '2', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('530', '35', '0C', 'stopResult', '1', '3', '停止结果 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('531', '35', '0C', 'failReason', '1', '4', '失败原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('532', '3B', '0C', 'orderNo', '16', '1', '交易流水号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('533', '3B', '0C', 'pileNo', '7', '2', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('534', '3B', '0C', 'gunId', '1', '3', '枪号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('535', '3B', '0C', 'startTime', '7', '4', '开始时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('536', '3B', '0C', 'endTime', '7', '5', '结束时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('537', '3B', '0C', 't1Price', '4', '6', '尖单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('538', '3B', '0C', 't1PowerQuantity', '4', '7', '尖电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('539', '3B', '0C', 't1LossQuantity', '4', '8', '计损尖电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('540', '3B', '0C', 't1Cost', '4', '9', '尖金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('541', '3B', '0C', 't2Price', '4', '10', '峰单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('542', '3B', '0C', 't2PowerQuantity', '4', '11', '峰电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('543', '3B', '0C', 't2LossQuantity', '4', '12', '计损峰电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('544', '3B', '0C', 't2Cost', '4', '13', '峰金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('545', '3B', '0C', 't3Price', '4', '14', '平单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('546', '3B', '0C', 't3PowerQuantity', '4', '15', '平电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('547', '3B', '0C', 't3LossQuantity', '4', '16', '计损平电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('548', '3B', '0C', 't3Cost', '4', '17', '平金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('549', '3B', '0C', 't4Price', '4', '18', '谷单价', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('550', '3B', '0C', 't4PowerQuantity', '4', '19', '谷电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('551', '3B', '0C', 't4LossQuantity', '4', '20', '计损谷电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('552', '3B', '0C', 't4Cost', '4', '21', '谷金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('553', '3B', '0C', 'electricMeterStart', '5', '22', '电表总起值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('554', '3B', '0C', 'electricMeterEnd', '5', '23', '电表总止值', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('555', '3B', '0C', 'totalPowerQuantity', '4', '24', '总电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('556', '3B', '0C', 'totalLossPowerQuantity', '4', '25', '计损总电量', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('557', '3B', '0C', 'cost', '4', '26', '消费金额', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('558', '3B', '0C', 'vinNormal', '17', '27', 'VIN 码，此处 VIN 码和充电时 VIN码不同，正序直接上传，无需补0和反序', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('559', '3B', '0C', 'transactionFlag', '1', '28', '交易标识', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('560', '3B', '0C', 'transactionDatetime', '7', '29', '交易日期、时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('561', '3B', '0C', 'stopReason', '1', '30', '停止原因', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('562', '3B', '0C', 'cardNo', '8', '31', '物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('563', '41', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('564', '41', '0C', 'cardNo', '8', '2', '物理卡号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('565', '41', '0C', 'modifyResult', '1', '3', '修改结果 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('566', '43', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('567', '43', '0C', 'writeResult', '1', '2', '保存结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('568', '43', '0C', 'failResult', '1', '3', '失败原因 ', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('569', '51', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('570', '51', '0C', 'configResult', '1', '2', '设置结果', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('571', '55', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('572', '55', '0C', 'setTime', '7', '2', '当前时间CP56Time2a格式', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('573', '57', '0C', 'pileNo', '7', '1', '桩号', 'hex', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('574', '57', '0C', 'rateModelId', '4', '2', '费率模型id', 'int', '000000');
INSERT INTO `service_field` (`id`, `service_name`, `version`, `code`, `len`, `seq`, `remark`, `data_type`, `tenant_id`) VALUES ('575', '57', '0C', 'configResult', '1', '3', '设置结果', 'hex', '000000');

SET FOREIGN_KEY_CHECKS=1;












