fix:行程变更的时候预估价格不变更的问题
This commit is contained in:
parent
61dbc769c8
commit
3b0b18fbeb
|
@ -209,8 +209,7 @@ public class Leg implements Serializable, EventManageable {
|
||||||
this.destinationId = legData.getOriginId();
|
this.destinationId = legData.getOriginId();
|
||||||
}
|
}
|
||||||
// 更新扩展字段
|
// 更新扩展字段
|
||||||
if ((LEG_TYPE_OTHER == (this.legType) || LEG_TYPE_TAXI == (this.legType)) &&
|
if (legData.getLegExtensionFieldData() != null) {
|
||||||
legData.getLegExtensionFieldData() != null) {
|
|
||||||
updateLegExtensionFields(legData.getLegExtensionFieldData());
|
updateLegExtensionFields(legData.getLegExtensionFieldData());
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
@ -220,11 +219,21 @@ public class Leg implements Serializable, EventManageable {
|
||||||
if (this.legExtensionField == null) {
|
if (this.legExtensionField == null) {
|
||||||
this.legExtensionField = new LegExtensionField();
|
this.legExtensionField = new LegExtensionField();
|
||||||
}
|
}
|
||||||
|
if (legExtensionFieldData.getAmountType() != null) {
|
||||||
this.legExtensionField.setAmountType(legExtensionFieldData.getAmountType());
|
this.legExtensionField.setAmountType(legExtensionFieldData.getAmountType());
|
||||||
|
}
|
||||||
|
if (legExtensionFieldData.getExpenseExplanation() != null) {
|
||||||
this.legExtensionField.setExpenseExplanation(legExtensionFieldData.getExpenseExplanation());
|
this.legExtensionField.setExpenseExplanation(legExtensionFieldData.getExpenseExplanation());
|
||||||
|
}
|
||||||
|
if (legExtensionFieldData.getOriginDescription() != null) {
|
||||||
this.legExtensionField.setOriginDescription(legExtensionFieldData.getOriginDescription());
|
this.legExtensionField.setOriginDescription(legExtensionFieldData.getOriginDescription());
|
||||||
|
}
|
||||||
|
if (legExtensionFieldData.getDestinationDescription() != null) {
|
||||||
this.legExtensionField.setDestinationDescription(legExtensionFieldData.getDestinationDescription());
|
this.legExtensionField.setDestinationDescription(legExtensionFieldData.getDestinationDescription());
|
||||||
|
}
|
||||||
|
if (legExtensionFieldData.getEstimatedAmount() != null) {
|
||||||
this.legExtensionField.setEstimatedAmount(legExtensionFieldData.getEstimatedAmount());
|
this.legExtensionField.setEstimatedAmount(legExtensionFieldData.getEstimatedAmount());
|
||||||
|
}
|
||||||
if (legExtensionFieldData.getLocationIds() != null) {
|
if (legExtensionFieldData.getLocationIds() != null) {
|
||||||
this.legExtensionField.addLocationIdsAsString(legExtensionFieldData.getLocationIds());
|
this.legExtensionField.addLocationIdsAsString(legExtensionFieldData.getLocationIds());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue