修改查询接口

This commit is contained in:
Cool 2024-03-27 16:17:11 +08:00
parent 2a961b8196
commit 2403940d08
1 changed files with 4 additions and 4 deletions

View File

@ -63,8 +63,8 @@ public class CenterController {
return centerService.getData(college,entrydate);
}
@GetMapping("/getRate/{batch}/{level}")
public Result<JSONObject> getRateByBatch(@PathVariable("batch") Date batch, @PathVariable("level") String level) {
@PostMapping("/getRateByBatch")
public Result<JSONObject> getRateByBatch(@RequestParam("batch") Date batch, @RequestParam("level") String level) {
//四六级分开查询
if (level.equals("cet4")) {
Cet_4 cet = new Cet_4();
@ -80,8 +80,8 @@ public class CenterController {
}
//根据batch/college是否为空判断两种查询方式
@GetMapping("getRate/{college}/{level}")
public Result<JSONObject> getRateByCollege(@PathVariable("college") String college, @PathVariable("level") String level) {
@GetMapping("/getRateByCollege")
public Result<JSONObject> getRateByCollege(@RequestParam("college") String college, @RequestParam("level") String level) {
if (level.equals("cet4")) {
Cet_4 cet = new Cet_4();
cet.setCollege(college);