|
@@ -110,7 +110,9 @@ public class WxMPUserController {
|
110
|
110
|
}
|
111
|
111
|
//返回查询的金额
|
112
|
112
|
JSONObject jsonParam = carNoJson.getJSONObject("data").getJSONObject("JsonParam");
|
113
|
|
- responseBean.addSuccess(jsonParam.get("ActualAmount"));
|
|
113
|
+ Map<String,Object> resultMap = Maps.newHashMap();
|
|
114
|
+ resultMap.put("ActualAmount",jsonParam.get("ActualAmount"));
|
|
115
|
+ responseBean.addSuccess(resultMap);
|
114
|
116
|
}
|
115
|
117
|
return responseBean;
|
116
|
118
|
}
|
|
@@ -128,11 +130,12 @@ public class WxMPUserController {
|
128
|
130
|
ResponseBean responseBean = new ResponseBean();
|
129
|
131
|
Map<String, String> resp = Maps.newHashMap();
|
130
|
132
|
try {
|
131
|
|
- String parkInfoByCarNo = fuShiServer.getParkInfoByCarNo(carNo);
|
132
|
|
- JSONObject carNoJson = JSONObject.parseObject(parkInfoByCarNo);
|
133
|
|
- String actualAmount = String.valueOf(Double.valueOf(((BigDecimal) carNoJson.getJSONObject("JsonParam").get("ActualAmount")).toString()) * 100);
|
134
|
|
- actualAmount = actualAmount.substring(0, actualAmount.lastIndexOf("."));
|
135
|
|
- resp = wxMPUserService.wxTmpOrder(carNo,actualAmount,communityId,openid,(BigDecimal) carNoJson.getJSONObject("JsonParam").get("ActualAmount"));
|
|
133
|
+ //String parkInfoByCarNo = fuShiServer.getParkInfoByCarNo(carNo);
|
|
134
|
+ //JSONObject carNoJson = JSONObject.parseObject(parkInfoByCarNo);
|
|
135
|
+ //String actualAmount = String.valueOf(Double.valueOf(((BigDecimal) carNoJson.getJSONObject("JsonParam").get("ActualAmount")).toString()) * 100);
|
|
136
|
+ //actualAmount = actualAmount.substring(0, actualAmount.lastIndexOf("."));
|
|
137
|
+ //resp = wxMPUserService.wxTmpOrder(carNo,actualAmount,communityId,openid,(BigDecimal) carNoJson.getJSONObject("JsonParam").get("ActualAmount"));
|
|
138
|
+ resp = wxMPUserService.wxTmpOrder(carNo,"1",communityId,openid,new BigDecimal("0.1"));
|
136
|
139
|
} catch (Exception e) {
|
137
|
140
|
e.printStackTrace();
|
138
|
141
|
responseBean.addError(e.getMessage());
|