controller 注解 @DateTimeFormat 会自动完成字符串到LocalDate的转换 /*** 报表的接口*/ @RestController @RequestMapping("/admin/report") @Api(tags = "报表的接口") @Slf4j @RequiredArgsConstructor(onConstructor = @__(@Autowired)) public class ReportController {// 日期列表 2020-01-01,2020-01-02,2020-01-03private String dateList ;// 交易额列表 100,200,300private String turnoverList ;// 服务类private final ReportService reportService;/*** 交易额统计* @param begin 开始时间* @param end 结束时间* @return 交易额统计*/@GetMapping("/turnoverStatistics")@ApiOperation("交易额统计")public Result<TurnoverReportVO> turnoverStatistics(@DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate begin,@DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate end) {log.info("交易额统计, begin={}, end={}", b