LocalDate reportOfDate = this.reportDate.getValue();
reportOfDate的日期格式是"YYYY-MM-DD",只需要用toString()就可以转化成字符串类型
String reportDateStr = reportOfDate.toString()
如果需要的日期格式是"YYYYMMDD",用replace()就可以
reportDateStr = reportDateStr.replace("-", "");
LocalDate reportOfDate = this.reportDate.getValue();
reportOfDate的日期格式是"YYYY-MM-DD",只需要用toString()就可以转化成字符串类型
String reportDateStr = reportOfDate.toString()
如果需要的日期格式是"YYYYMMDD",用replace()就可以
reportDateStr = reportDateStr.replace("-", "");