blob: a5941be45d70f01e40a69b185b6113edfcb422b0 [file] [log] [blame]
21301050f5f827d2025-06-09 15:09:33 +08001package com.pt5.pthouduan.controller;
2
3import com.pt5.pthouduan.service.ExamService;
4import com.pt5.pthouduan.service.ShopService;
5import org.springframework.beans.factory.annotation.Autowired;
6import org.springframework.web.bind.annotation.PostMapping;
7import org.springframework.web.bind.annotation.RequestMapping;
8import org.springframework.web.bind.annotation.RequestParam;
9import org.springframework.web.bind.annotation.RestController;
10
11import java.time.LocalDate;
12import java.util.Map;
13
14@RestController
15@RequestMapping("/exam")
16public class ExamController {
17 @Autowired
18 private ExamService examService;
19 @PostMapping("/MonthDownload")
20 public Map<String, Object> MonthDownload(@RequestParam LocalDate startDate, @RequestParam LocalDate endDate) {
21 return examService.MonthDownload(startDate, endDate);
22 }
23 @PostMapping("/QuarterUpload")
24 public Map<String, Object> QuarterUpload(@RequestParam LocalDate startDate, @RequestParam LocalDate endDate) {
25 return examService.QuarterUpload(startDate, endDate);
26 }
27}