CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition
@Component
public class TaskTest {
@Reference
private ReportService reportService;
@Scheduled(cron = "0 0 3 * * ?")
public void insertDataReport(){
LocalDate localDate = LocalDate.now().minusDays(1);
String format = localDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
reportService.insertReport(format);
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |