xuhy
2026-03-15 85d255d82a89351c88d001a409dfa1a1da066b22
Merge remote-tracking branch 'origin/master'
5个文件已修改
65 ■■■■■ 已修改文件
sql/增量sql/xprt_account.sql 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/增量sql/xprt_maintenance.sql 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/增量sql/xprt_operation.sql 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/service/impl/XpPricingServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/utils/XpPricingUtil.java 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/增量sql/xprt_account.sql
@@ -0,0 +1 @@
ALTER TABLE `xp_operations_user` MODIFY COLUMN `status` tinyint(1) NULL DEFAULT 1 COMMENT '状态 1=启用 0=禁用' AFTER `remarks`
sql/增量sql/xprt_maintenance.sql
@@ -0,0 +1,39 @@
ALTER TABLE `xp_task_0` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_1` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_2` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_3` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_4` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_5` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_6` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_7` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_8` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_9` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_10` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_11` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_12` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_13` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_14` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_15` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_16` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_17` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_18` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
ALTER TABLE `xp_task_19` ADD COLUMN `will_timeout_notice_sent` tinyint NOT NULL DEFAULT 0 COMMENT '事故即将超时通知是否已发送(0否1是)' AFTER `update_by`;
sql/增量sql/xprt_operation.sql
@@ -1,19 +0,0 @@
ALTER TABLE `xp_point_0` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_1` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_2` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_3` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_4` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_5` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_6` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_7` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_8` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
ALTER TABLE `xp_point_9` ADD COLUMN `fp_electronic_area_id` bigint NULL DEFAULT NULL COMMENT '分片建' AFTER `electronic_area_id`;
xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/service/impl/XpPricingServiceImpl.java
@@ -319,7 +319,7 @@
        // 9. 设置费用信息
        fareVo.setOriginalFare(xpPricingCardVo.getTotalPrice());
        fareVo.setOriginalFareStr(fareVo.getOriginalFare() + "");
        fareVo.setOriginalFareStr(new BigDecimal(fareVo.getOriginalFare()).setScale(2, RoundingMode.HALF_UP).toString());
        if (userCouponVo != null) {
            if(userCouponVo.getMoney()>fareVo.getOriginalFare()){
                fareVo.setDiscountAmount(fareVo.getOriginalFare());
xp-robotaxi-itinerary-boot/src/main/java/com/xiaopeng/itinerary/utils/XpPricingUtil.java
@@ -137,7 +137,7 @@
        xpPricingCardVo.setStartPrice(startPrice);
        xpPricingCardVo.setDistancePrice(distancePrice);
        xpPricingCardVo.setDurationPrice(durationPrice);
        xpPricingCardVo.setTotalPrice(startPrice + distancePrice + durationPrice);
        xpPricingCardVo.setTotalPrice(new BigDecimal(startPrice + distancePrice + durationPrice).setScale(2,RoundingMode.HALF_UP).doubleValue());
        // 里程
        xpPricingCardVo.setDistance(realDistance);
        xpPricingCardVo.setDuration(realTime);
@@ -504,7 +504,7 @@
        // 动态计算费用
        startPrice= new BigDecimal(startPrice).multiply(new BigDecimal(priceRate)).setScale(2, RoundingMode.HALF_UP).doubleValue();
        amount = amount+startPrice;
        xpPricingCardVo.setTotalPrice(amount);
        xpPricingCardVo.setTotalPrice(new BigDecimal(amount).setScale(2,RoundingMode.HALF_UP).doubleValue());