21301050 | f5f827d | 2025-06-09 15:09:33 +0800 | [diff] [blame] | 1 | package com.pt5.pthouduan.controller; |
| 2 | |
| 3 | import com.pt5.pthouduan.service.ExamService; |
| 4 | import com.pt5.pthouduan.service.ShopService; |
| 5 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | import org.springframework.web.bind.annotation.PostMapping; |
| 7 | import org.springframework.web.bind.annotation.RequestMapping; |
| 8 | import org.springframework.web.bind.annotation.RequestParam; |
| 9 | import org.springframework.web.bind.annotation.RestController; |
| 10 | |
| 11 | import java.time.LocalDate; |
| 12 | import java.util.Map; |
| 13 | |
| 14 | @RestController |
| 15 | @RequestMapping("/exam") |
| 16 | public 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 | } |