报错提示:
JSON parse error: Cannot deserialize value of type `java.lang.Long` from String \"2021-12-24 15:20:45\": not a valid Long value; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.lang.Long` from String \"2021-12-24 15:20:45\": not a valid Long value\n at [Source: (PushbackInputStream); line: 1, column: 153] (through reference chain: com.sankuai.map.facade.console.model.ReportModel[\"occurTime\"])","resultList":null}
在定义的接受参数的原来model里面是这样定义的:
private Long occurTime;
private Long occurTimeEnd;
为了最小化改动代码,把原来的参数接收类型从model转化成JSONObject。