1.修改同程打车历程数和时间数小数点显示问题。
This commit is contained in:
parent
40554ae416
commit
f61a8189b4
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue