删除单批次查询缓存

This commit is contained in:
Cool 2024-05-31 16:31:33 +08:00
parent a562efe488
commit 6b390b6788
1 changed files with 2 additions and 1 deletions

View File

@ -87,10 +87,11 @@ public class CenterController {
}
@GetMapping("/getRateByAllBatch")
@Cacheable(value = "getRateByAllBatch", key = "'getRateByAllBatch' + #college+#major+#level")
// @Cacheable(value = "getRateByAllBatch", key = "'getRateByAllBatch' + #college+#major+#level")
public Result<JSONObject> getRateByAllBatch(@RequestParam("college") String college,@RequestParam("major") String major, @RequestParam("level") String level) {
// System.out.println(college + " " + level);
if (level.equals("cet4")) {
return cet4Service.getRateByAllBatch(college,major);
} else if (level.equals("cet6")) {
Cet_6 cet = new Cet_6();