blob: a5941be45d70f01e40a69b185b6113edfcb422b0 [file] [log] [blame]
package com.pt5.pthouduan.controller;
import com.pt5.pthouduan.service.ExamService;
import com.pt5.pthouduan.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.time.LocalDate;
import java.util.Map;
@RestController
@RequestMapping("/exam")
public class ExamController {
@Autowired
private ExamService examService;
@PostMapping("/MonthDownload")
public Map<String, Object> MonthDownload(@RequestParam LocalDate startDate, @RequestParam LocalDate endDate) {
return examService.MonthDownload(startDate, endDate);
}
@PostMapping("/QuarterUpload")
public Map<String, Object> QuarterUpload(@RequestParam LocalDate startDate, @RequestParam LocalDate endDate) {
return examService.QuarterUpload(startDate, endDate);
}
}