liujie
2026-03-18 76b265d3e34336dba6404b5c634e4170412d5601
Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/Robotaxi
8个文件已修改
213 ■■■■■ 已修改文件
sql/增量sql/xprt_maintenance.sql 120 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/增量sql/xprt_order.sql 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/controller/OrderMissionController.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/service/impl/XpPricingServiceImpl.java 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpPricingServiceImpl.java 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/service/impl/XpOrderServiceImpl.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-push-message-boot/src/main/java/com/xiaopeng/pushMessage/controller/PushOrderRouteController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/增量sql/xprt_maintenance.sql
@@ -1,99 +1,119 @@
ALTER TABLE `xp_clock_in_0` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_0` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_0` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_0` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_0` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_0` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_0` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_0` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_0` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_0` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_1` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_0` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_1` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_1` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_1` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_1` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_1` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_1` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_1` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_1` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_2` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_1` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_2` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_1` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_2` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_2` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_2` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_2` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_2` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_2` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_3` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_2` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_3` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_2` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_3` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_2` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_3` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_3` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_3` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_3` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_4` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_3` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_4` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_3` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_4` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_3` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_4` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_3` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_4` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_4` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_5` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_4` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_5` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_4` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_5` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_4` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_5` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_4` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_5` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_4` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_6` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_5` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_6` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_5` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_6` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_5` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_6` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_5` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_6` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_5` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_7` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_5` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_7` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_6` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_7` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_6` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_7` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_6` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_7` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_6` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_8` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_6` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_8` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_6` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_8` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_7` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_8` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_7` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_clock_in_8` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_7` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_clock_in_9` MODIFY COLUMN `clock_in_result` int NULL DEFAULT NULL COMMENT '上班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `shift_id`;
ALTER TABLE `xp_vehicle_detection_7` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_clock_in_9` MODIFY COLUMN `clock_in_lon` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡经度' AFTER `clock_in_result`;
ALTER TABLE `xp_vehicle_detection_7` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_clock_in_9` MODIFY COLUMN `clock_in_lat` double(20, 10) NULL DEFAULT NULL COMMENT '上班打卡纬度' AFTER `clock_in_lon`;
ALTER TABLE `xp_vehicle_detection_7` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_clock_in_9` MODIFY COLUMN `clock_out_result` int NULL DEFAULT NULL COMMENT '下班打卡结果 1=正常 2=迟到 3=缺卡' AFTER `update_by`;
ALTER TABLE `xp_vehicle_detection_8` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_clock_in_9` MODIFY COLUMN `clock_in_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上班打卡地址' AFTER `clock_out_lat`;
ALTER TABLE `xp_vehicle_detection_8` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_vehicle_detection_8` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_vehicle_detection_8` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_vehicle_detection_8` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_vehicle_detection_8` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
ALTER TABLE `xp_vehicle_detection_9` MODIFY COLUMN `network_detection` int NULL DEFAULT NULL COMMENT '网络检测' AFTER `vehicle_id`;
ALTER TABLE `xp_vehicle_detection_9` MODIFY COLUMN `version_verification` int NULL DEFAULT NULL COMMENT '版本核对' AFTER `network_detection`;
ALTER TABLE `xp_vehicle_detection_9` MODIFY COLUMN `communication_self_check` int NULL DEFAULT NULL COMMENT '通讯自检' AFTER `version_verification`;
ALTER TABLE `xp_vehicle_detection_9` MODIFY COLUMN `remote_self_check` int NULL DEFAULT NULL COMMENT '远程自检' AFTER `communication_self_check`;
ALTER TABLE `xp_vehicle_detection_9` MODIFY COLUMN `collision_prevention` int NULL DEFAULT NULL COMMENT '防撞激活' AFTER `remote_self_check`;
ALTER TABLE `xp_vehicle_detection_9` MODIFY COLUMN `sensor_self_check` int NULL DEFAULT NULL COMMENT '传感器自检' AFTER `collision_prevention`;
sql/增量sql/xprt_order.sql
@@ -1,39 +0,0 @@
ALTER TABLE `xp_order_0` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_1` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_2` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_3` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_4` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_5` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_6` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_7` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_8` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_9` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_10` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_11` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_12` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_13` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_14` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_15` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_16` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_17` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_18` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
ALTER TABLE `xp_order_19` ADD COLUMN `change_money_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否改价标识 0-否 1-是' AFTER `city_code`;
xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/controller/OrderMissionController.java
@@ -526,6 +526,7 @@
        Long appUserId = xpOrder.getAppUserId();
        Object cacheObject = redisService.getCacheObject("ORDER_NAVIGATION_END_DATA:" + xpOrder.getAppUserId());
        RouteVo routeVo = JSON.parseObject(cacheObject.toString(), RouteVo.class);
        log.info("开始实施推送车辆位置和剩余导航线路 {} {}", xpOrder.getOrderNumber(), JSON.toJSONString(routeVo));
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(1000));
        Long finalOrderId = orderId;
@@ -598,7 +599,7 @@
                //5秒钟循环一次
                try {
                    Thread.sleep(500);
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
xp-robotaxi-automatic-pilot-boot/src/main/java/com/xiaopeng/automaticPilot/service/KafkaConsumerService.java
@@ -567,7 +567,7 @@
                RouteVo routeVo = routeVoR.getData();
                routeID = routeVo.getRouteID();
                //缓存导航数据,用于后面的逻辑中给乘客端推送导航数据
                redisService.setCacheObject("ORDER_NAVIGATION_END_DATA:" + xpOrder.getAppUserId(), com.alibaba.fastjson.JSON.toJSONString(routeVo), 24L, TimeUnit.HOURS);
                redisService.setCacheObject("ORDER_NAVIGATION_END_DATA:" + xpOrder.getAppUserId(), JSON.toJSONString(routeVo), 24L, TimeUnit.HOURS);
            }
            vehicleId = xpOrder.getVehicleId();
        }
@@ -685,7 +685,7 @@
                    RouteVo routeVo = routeVoR.getData();
                    routeID = routeVo.getRouteID();
                    //缓存导航数据,用于后面的逻辑中给乘客端推送导航数据
                    redisService.setCacheObject("ORDER_NAVIGATION_END_DATA:" + xpOrder.getAppUserId(), com.alibaba.fastjson.JSON.toJSONString(routeVo), 24L, TimeUnit.HOURS);
                    redisService.setCacheObject("ORDER_NAVIGATION_END_DATA:" + xpOrder.getAppUserId(), JSON.toJSONString(routeVo), 24L, TimeUnit.HOURS);
                }else{
                    RouteVo routeVo = JSON.parseObject(cacheObject.toString(), RouteVo.class);
                    routeID = routeVo.getRouteID();
xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/service/impl/XpPricingServiceImpl.java
@@ -183,16 +183,16 @@
    @Override
    public RouteAndFareVo getRouteAndFare(RouteAndFareDto routeAndFareDto, String userId) {
        // 判断是否5分钟内进行了查询 相同站点的起始点  并且是同时段
        String key = "xp-map-query-" + routeAndFareDto.getOpenCityId()
                + "-" + routeAndFareDto.getOrigin().getLongitude() + "-" + routeAndFareDto.getOrigin().getLatitude()
                + "-" + routeAndFareDto.getDestination().getLongitude() + "-" + routeAndFareDto.getDestination().getLatitude() + "-" + getCurrentTimeSlot() + "-" + userId+routeAndFareDto.getUserCouponId();
        if (redisService.hasKey(key)) {
            String jsonStr = Objects.requireNonNull(redisService.getCacheObject(key)).toString();
            RouteAndFareVo RouteAndFareVo = JSONObject.parseObject(jsonStr, RouteAndFareVo.class);
            return (RouteAndFareVo);
        }
//        // 判断是否5分钟内进行了查询 相同站点的起始点  并且是同时段
//        String key = "xp-map-query-" + routeAndFareDto.getOpenCityId()
//                + "-" + routeAndFareDto.getOrigin().getLongitude() + "-" + routeAndFareDto.getOrigin().getLatitude()
//                + "-" + routeAndFareDto.getDestination().getLongitude() + "-" + routeAndFareDto.getDestination().getLatitude() + "-" + getCurrentTimeSlot() + "-" + userId+routeAndFareDto.getUserCouponId();
//
//        if (redisService.hasKey(key)) {
//            String jsonStr = Objects.requireNonNull(redisService.getCacheObject(key)).toString();
//            RouteAndFareVo RouteAndFareVo = JSONObject.parseObject(jsonStr, RouteAndFareVo.class);
//            return (RouteAndFareVo);
//        }
        // 1. 基础数据查询
        Map<String, String> geocode = gdMapGeocodingUtil.geocode(routeAndFareDto.getOrigin().getLongitude().toString(), routeAndFareDto.getOrigin().getLatitude().toString());
@@ -387,9 +387,9 @@
        routeAndFareVo.getXpPricingCard().setFinalFareStr(fareVo.getFinalFareStr());
        String voJsonStr = JSONObject.toJSONString(routeAndFareVo);
        // 进行缓存
        redisService.setCacheObject(key, voJsonStr, 5l, TimeUnit.MINUTES);
//        String voJsonStr = JSONObject.toJSONString(routeAndFareVo);
//         进行缓存
//        redisService.setCacheObject(key, voJsonStr, 5l, TimeUnit.MINUTES);
        //缓存导航数据,用于下单后推送导航给车端和乘客端
        redisService.setCacheObject("ORDER_NAVIGATION_END_DATA:" + userId, JSON.toJSONString(routeVo), 24L, TimeUnit.HOURS);
        return routeAndFareVo;
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpPricingServiceImpl.java
@@ -173,6 +173,7 @@
    @Override
    @Deprecated
    public RouteAndFareVo getRouteAndFare(RouteAndFareDto routeAndFareDto, String userId) {
xp-robotaxi-order-boot/src/main/java/com/xiaopeng/order/service/impl/XpOrderServiceImpl.java
@@ -1487,7 +1487,6 @@
        List<FareBreakdownDetailVo> longDistance = new ArrayList<>();
        XpOrder order = this.getById(orderId);
        Long orderAppUserId = order.getAppUserId();
        if (order == null) {
            throw new RuntimeException("订单不存在");
        }
@@ -1542,7 +1541,7 @@
            com.alibaba.fastjson.JSONObject basicPricingJson = com.alibaba.fastjson.JSONObject.parseObject(pricing.getBasicPricingJson());
            XpPricingCardVo xpPricingCardVo = xpPricingUtil.calculationFixedPrice(orderAppUserId.toString(), basicPricingJson, null, mileageKilometers, duration1, 0, 0.0, pricing.getIsDynamicPrice(), order.getCityId(), pricing.getDynamicPricingJson());
            XpPricingCardVo xpPricingCardVo = xpPricingUtil.calculationFixedPrice(uid, basicPricingJson, null, mileageKilometers, duration1, 0, 0.0, pricing.getIsDynamicPrice(), order.getCityId(), pricing.getDynamicPricingJson());
            XpOrderDetail xpOrderDetail = new XpOrderDetail();
            xpOrderDetail.setDetailType(1);
            xpOrderDetail.setOrderId(orderId);
@@ -2363,13 +2362,9 @@
            order.setTripEnd(tripEnd);
            this.updateById(order);
        }
        // 计算行程时间 单位分钟
        // 计算时间差
        Duration durationBetween = Duration.between(createTime, tripEnd);
        // 转换为秒并保留一位小数
        BigDecimal minutes = BigDecimal.valueOf(durationBetween.getSeconds());
        res.setTime(minutes);
        double exactMinutes = Duration.between(order.getBoardingTime(), order.getTripEnd()).toMillis() / (1000.0 * 60);
        res.setTime(new BigDecimal(exactMinutes).setScale(2, RoundingMode.HALF_UP));
        return R.ok(res);
    }
@@ -2517,8 +2512,8 @@
        } else {
            orderDetailVo.setOrderTime(0.0);
        }
        orderDetailVo.setTotalMileage(order.getMileageKilometers() != null ? new BigDecimal(order.getMileageKilometers()).setScale(2, RoundingMode.HALF_UP).doubleValue() : 0D);
        orderDetailVo.setTotalMileage(order.getMileageKilometers() != null ? new BigDecimal(order.getMileageKilometers() * 1000).setScale(2, RoundingMode.HALF_UP).doubleValue() : 0D);
        orderDetailVo.setOrderTime(new BigDecimal(null == order.getDuration() ? 0 : order.getDuration()).multiply(new BigDecimal(60)).setScale(0, RoundingMode.HALF_EVEN).doubleValue());
        return orderDetailVo;
    }
xp-robotaxi-push-message-boot/src/main/java/com/xiaopeng/pushMessage/controller/PushOrderRouteController.java
@@ -15,6 +15,7 @@
import com.xiaopeng.common.redis.service.RedisService;
import com.xiaopeng.pushMessage.utils.MapMatchingUtil;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.powermock.core.ListMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
@@ -26,6 +27,7 @@
import java.util.*;
import java.util.concurrent.TimeUnit;
@Slf4j
@Api(tags = "订单推送轨迹接口")
@RestController
@RequestMapping("")
@@ -74,8 +76,6 @@
            routeVo.setPolyline(lonLatDtos);
            // 存储最新路线偏离缓存,后续进行轨迹截取
//            redisService.setCacheObject(CacheConstants.ORDER_ROUTE_CAPTURE + "_" + dto.getOrderId() + "_" +routeType, routeVo);
            redisService.setCacheObject(key, JSON.toJSONString(routeVo), 24L, TimeUnit.HOURS);
            // 封装轨迹点位集合
@@ -109,6 +109,7 @@
            sendMessageDTO.setAppUserId(String.valueOf(xpOrder.getAppUserId()));
            sendMessageDTO.setMessage(JSONObject.toJSONString(params));
            xpPushMessageClient.sendRoute(sendMessageDTO);
            log.info("推送剩余导航数据成功 {} {}", xpOrder.getOrderNumber(), JSON.toJSONString(routeVo));
        }
        return R.ok();
    }