feat:续费增加关联订单号显示
This commit is contained in:
@@ -116,6 +116,10 @@ public class OrderPay implements Serializable {
|
|||||||
@ApiModelProperty(value = "续租订单的关联单号")
|
@ApiModelProperty(value = "续租订单的关联单号")
|
||||||
private Integer rentOrderId;
|
private Integer rentOrderId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "关联订单号")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String rentOrderNo;
|
||||||
|
|
||||||
@ApiModelProperty(value = "电池租金")
|
@ApiModelProperty(value = "电池租金")
|
||||||
private BigDecimal batteryRent;
|
private BigDecimal batteryRent;
|
||||||
|
|
||||||
@@ -236,4 +240,13 @@ public class OrderPay implements Serializable {
|
|||||||
}
|
}
|
||||||
return expirationDay;
|
return expirationDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getRentOrderNo(){
|
||||||
|
if (null != comments){
|
||||||
|
if (comments.contains("续租订单:")){//FIXME 还有更好的做法?
|
||||||
|
return comments.replace("续租订单:","");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user