This commit is contained in:
sxu 2023-12-08 17:27:22 +08:00
parent 40d1a80c80
commit 5a94bafff3
3 changed files with 8 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class OrderInfoVo extends OrderInfo {
@ApiModelProperty(value = "装备位置")
private String deviceLocation;
@ApiModelProperty(value = "装备月租金")
private String deviceMonthLeasePrice;
private Double deviceMonthLeasePrice;
@ApiModelProperty(value = "装备id")
private Long maId;
@ApiModelProperty(value = "联系电话")

View File

@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="maId != null "> and d.ma_id = #{maId}</if>
<if test="code != null and code != ''"> and d.code = #{code}</if>
<if test="typeId != null and level != null and level != '1'">
<if test="typeId != null and level != null and level != 1">
and d.type_id = #{typeId} or t.parent_id = #{typeId}
</if>
<if test="maStatus != null and maStatus != ''"> and d.ma_status = #{maStatus}</if>

View File

@ -118,7 +118,12 @@ public class OrderInfoController extends BaseController
orderInfo.setDeviceBrand((String) map2.get("brand"));
orderInfo.setDeviceSpecification((String) map2.get("specification"));
orderInfo.setDeviceLocation((String) map2.get("location"));
orderInfo.setDeviceMonthLeasePrice((String) map2.get("monthLeasePrice"));
try {
Double price = (Double) map2.get("monthLeasePrice");
orderInfo.setDeviceMonthLeasePrice(price);
} catch (Exception e) {
e.printStackTrace();
}
}
}
return success(orderInfo);