@RequestMapping(value = "/chartInfo",method = RequestMethod.POST)
@ResponseBody
@ApiOperation("图表信息")
public RespBody<String> chartInfo(Date startDate,Date endDate) {
ReturnT<Map<String, Object>> chartInfo = xxlJobService.chartInfo(startDate, endDate);
return new RespBody<>(JSON.toJSONString(chartInfo.getContent()));
}
@InitBinder
public void initBinder(WebDataBinder binder) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
dateFormat.setLenient(false);
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true));
}