function total(startTime,endTime){
if(){
}
if(){
}
$.ajax({
type: "POST",
url: "${ctx}/trade/all_total",
data:{"startTime":startTime,"endTime":endTime},
success: function(data){
var obj = eval('(' + data + ')');//
obj.属性;
}
});
}
@RequestMapping(value="/all_total")
@ResponseBody
public String getAllTotal() throws ParseException {
double tradeTotal = orderInfoService.getTradeTotal(orderInfo);
JSONObject jsonObject = new JSONObject();
jsonObject.put("tradeTotal", tradeTotal);
return JSON.toJSONString(jsonObject);
}