1.修改同程打车历程数和时间数小数点显示问题。

This commit is contained in:
wanglf3 2024-03-20 08:51:39 +08:00
parent 40554ae416
commit f61a8189b4
1 changed files with 2 additions and 2 deletions

View File

@ -834,11 +834,11 @@ public class LYOrderExtensionFactoryImpl implements OrderExtensionFactory {
carOrderDetail.setToCity(orderExtendInfo.getEndCityName());
String duration = orderExtendInfo.getDuration();
String durationNumbers = duration.replaceAll("\\D+", "");
String durationNumbers = duration.replaceAll("[^\\u0000-\\u007F\\p{P}]", "");
carOrderDetail.setRunTime(durationNumbers);
String mileage = orderExtendInfo.getMileage();
String mileageNumbers = mileage.replaceAll("\\D+", "");
String mileageNumbers = mileage.replaceAll("[^\\u0000-\\u007F\\p{P}]", "");
carOrderDetail.setMileage(mileageNumbers);
carOrderDetail.setCarModel(String.valueOf(orderExtendInfo.getCarTypeName()));
}