fix
This commit is contained in:
parent
40d1a80c80
commit
5a94bafff3
|
|
@ -30,7 +30,7 @@ public class OrderInfoVo extends OrderInfo {
|
||||||
@ApiModelProperty(value = "装备位置")
|
@ApiModelProperty(value = "装备位置")
|
||||||
private String deviceLocation;
|
private String deviceLocation;
|
||||||
@ApiModelProperty(value = "装备月租金")
|
@ApiModelProperty(value = "装备月租金")
|
||||||
private String deviceMonthLeasePrice;
|
private Double deviceMonthLeasePrice;
|
||||||
@ApiModelProperty(value = "装备id")
|
@ApiModelProperty(value = "装备id")
|
||||||
private Long maId;
|
private Long maId;
|
||||||
@ApiModelProperty(value = "联系电话")
|
@ApiModelProperty(value = "联系电话")
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and d.ma_id = #{maId}</if>
|
<if test="maId != null "> and d.ma_id = #{maId}</if>
|
||||||
<if test="code != null and code != ''"> and d.code = #{code}</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}
|
and d.type_id = #{typeId} or t.parent_id = #{typeId}
|
||||||
</if>
|
</if>
|
||||||
<if test="maStatus != null and maStatus != ''"> and d.ma_status = #{maStatus}</if>
|
<if test="maStatus != null and maStatus != ''"> and d.ma_status = #{maStatus}</if>
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,12 @@ public class OrderInfoController extends BaseController
|
||||||
orderInfo.setDeviceBrand((String) map2.get("brand"));
|
orderInfo.setDeviceBrand((String) map2.get("brand"));
|
||||||
orderInfo.setDeviceSpecification((String) map2.get("specification"));
|
orderInfo.setDeviceSpecification((String) map2.get("specification"));
|
||||||
orderInfo.setDeviceLocation((String) map2.get("location"));
|
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);
|
return success(orderInfo);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue