Commit e4182bb4 authored by hanfeng's avatar hanfeng

Merge branch 'master-modify-background-bug-hf' into base-modify

parents 40f33ec8 85d7a2a5
......@@ -12,6 +12,7 @@ import lombok.Data;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Data
public class OrderListVo extends BaseOrder {
......@@ -75,5 +76,5 @@ public class OrderListVo extends BaseOrder {
/**
* 费用明细
*/
private List<DetailsOfExpenses> detailsOfExpenses;
private List<Map<String,String>> detailsOfExpenses;
}
......@@ -198,15 +198,13 @@ public class BackStageOrderController extends CommonBaseController implements Us
String costDetail = orderPageVO.getOrderRentVehicleDetail().getCostDetail();
ObjectMapper objectMapper = new ObjectMapper();
try {
Map<String,String> map = objectMapper.readValue(costDetail, Map.class);
String paramJson = map.get("paramJson");
Map<String,Object> map = objectMapper.readValue(costDetail, Map.class);
String paramJson = (String) map.get("paramJson");
if (StringUtil.isNotBlank(paramJson)){
RentVehiclePriceVO rentVehiclePriceVO = objectMapper.readValue(paramJson, RentVehiclePriceVO.class);
orderPageVO.setRentVehiclePriceVO(rentVehiclePriceVO);
}
String childrenStr= map.get("children");
List<DetailsOfExpenses> children = JSONObject.parseArray(childrenStr, DetailsOfExpenses.class);
List<Map<String,String>> children= (List<Map<String, String>>) map.get("children");
orderPageVO.setDetailsOfExpenses(children);
} catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment