“mitao”
2026-03-20 9c410a36e3a85a104cfee9b79ce68d282200a2d2
fix:系统配置新增问题
1个文件已修改
17 ■■■■■ 已修改文件
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpSystemSettingServiceImpl.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpSystemSettingServiceImpl.java
@@ -57,9 +57,20 @@
    @Override
    public void saveSystemSetting(XpSystemSetting xpSystemSetting) {
        if (Objects.nonNull(xpSystemSetting.getId())) {
            update(xpSystemSetting, new LambdaQueryWrapper<XpSystemSetting>().eq(XpSystemSetting::getId, xpSystemSetting.getId()));
        } else {
        XpSystemSetting existSetting = lambdaQuery().last("limit 1").one();
        if (Objects.nonNull(existSetting)) {
            lambdaUpdate().eq(XpSystemSetting::getId, existSetting.getId())
                    .set(XpSystemSetting::getCustomerServicePhone, xpSystemSetting.getCustomerServicePhone())
                    .set(XpSystemSetting::getOrderDistance, xpSystemSetting.getOrderDistance())
                    .set(XpSystemSetting::getMinOrderDistance, xpSystemSetting.getMinOrderDistance())
                    .set(XpSystemSetting::getArriveTime, xpSystemSetting.getArriveTime())
                    .set(XpSystemSetting::getHeadShowCount, xpSystemSetting.getHeadShowCount())
                    .set(XpSystemSetting::getNearPointDistance, xpSystemSetting.getNearPointDistance())
                    .set(XpSystemSetting::getAdsorptionDistance, xpSystemSetting.getAdsorptionDistance())
                    .set(XpSystemSetting::getHotfixStatus, xpSystemSetting.getHotfixStatus())
                    .set(XpSystemSetting::getHotfixStartTime, xpSystemSetting.getHotfixStartTime())
                    .set(XpSystemSetting::getHotfixEndTime, xpSystemSetting.getHotfixEndTime()).update();
        }else {
            save(xpSystemSetting);
        }
        //保存热修复信息到redis