feat:续费增加关联订单号显示

This commit is contained in:
yangqingyuan
2024-09-15 17:35:08 +08:00
parent e524cbe58f
commit 12b5caf481

View File

@@ -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;
}
} }