This commit is contained in:
sxu 2023-12-10 02:41:46 +08:00
parent 7b7cca7b7c
commit 54e167de3f
2 changed files with 6 additions and 2 deletions

View File

@ -31,6 +31,8 @@ public class OrderInfoVo extends OrderInfo {
private String deviceLocation; private String deviceLocation;
@ApiModelProperty(value = "装备月租金") @ApiModelProperty(value = "装备月租金")
private Double deviceMonthLeasePrice; private Double deviceMonthLeasePrice;
@ApiModelProperty(value = "装备日租金")
private Double deviceDayLeasePrice;
@ApiModelProperty(value = "装备id") @ApiModelProperty(value = "装备id")
private Long maId; private Long maId;
@ApiModelProperty(value = "联系电话") @ApiModelProperty(value = "联系电话")

View File

@ -119,8 +119,10 @@ public class OrderInfoController extends BaseController
orderInfo.setDeviceSpecification((String) map2.get("specification")); orderInfo.setDeviceSpecification((String) map2.get("specification"));
orderInfo.setDeviceLocation((String) map2.get("location")); orderInfo.setDeviceLocation((String) map2.get("location"));
try { try {
Double price = (Double) map2.get("monthLeasePrice"); Double monthPrice = (Double) map2.get("monthLeasePrice");
orderInfo.setDeviceMonthLeasePrice(price); orderInfo.setDeviceMonthLeasePrice(monthPrice);
Double dayPrice = (Double) map2.get("dayLeasePrice");
orderInfo.setDeviceDayLeasePrice(dayPrice);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }