Merge remote-tracking branch 'refs/remotes/upstream/dev' into dev

This commit is contained in:
Qi 2025-04-25 19:08:29 +08:00
commit c25fa2a9f0
1 changed files with 4 additions and 4 deletions

View File

@ -209,10 +209,10 @@ public class CenterServiceImpl extends ServiceImpl<Cet_4Mapper, Cet_4> implement
public Result<JSONObject> getData(String college, String major, String entryDate) {
//判断是否存在缓存
String key = "getData:" + college + major + entryDate;
// if (Boolean.TRUE.equals(redisTemplate.hasKey(key))) {
// System.out.println((JSONObject) redisTemplate.opsForValue().get(key));
// return Result.ok((JSONObject) redisTemplate.opsForValue().get(key));
// }
if (Boolean.TRUE.equals(redisTemplate.hasKey(key))) {
System.out.println((JSONObject) redisTemplate.opsForValue().get(key));
return Result.ok((JSONObject) redisTemplate.opsForValue().get(key));
}
//获取所有batch
JSONObject batch = getBatch();
JSONArray batchsArray = batch.getJSONArray("batches");