From f27c160e2e09ef4b807240a245cb53fe9e4b97a0 Mon Sep 17 00:00:00 2001 From: BLRTTX <2232721325@qq.com> Date: Wed, 25 Dec 2024 23:09:25 +0800 Subject: [PATCH] 12.25 --- .../src/main/java/com/atjy/common/constant/RedisConstant.java | 2 -- .../com/atjy/web/admin/service/impl/DoctorInfoServiceImpl.java | 2 +- .../atjy/web/admin/service/impl/HospitalInfoServiceImpl.java | 2 +- .../java/com/atjy/web/app/service/impl/ConsultServiceImpl.java | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/atjy/common/constant/RedisConstant.java b/common/src/main/java/com/atjy/common/constant/RedisConstant.java index cb2af7f..e3ffb16 100644 --- a/common/src/main/java/com/atjy/common/constant/RedisConstant.java +++ b/common/src/main/java/com/atjy/common/constant/RedisConstant.java @@ -9,6 +9,4 @@ public class RedisConstant { public static final String APP_DOCTOR_INFO = "app:doctorInfo:"; public static final String APP_HOSPITAL_INFO = "app:hospitalInfo:"; public static final String APP_CONSULT = "app:consult:"; - public static final String ADMIN_DOCTOR_INFO = "admin:doctorInfo:"; - public static final String ADMIN_HOSPITAL_INFO = "admin:hospitalInfo:"; } \ No newline at end of file diff --git a/web/web-admin/src/main/java/com/atjy/web/admin/service/impl/DoctorInfoServiceImpl.java b/web/web-admin/src/main/java/com/atjy/web/admin/service/impl/DoctorInfoServiceImpl.java index 34fb8e4..f201d4a 100644 --- a/web/web-admin/src/main/java/com/atjy/web/admin/service/impl/DoctorInfoServiceImpl.java +++ b/web/web-admin/src/main/java/com/atjy/web/admin/service/impl/DoctorInfoServiceImpl.java @@ -98,7 +98,7 @@ public class DoctorInfoServiceImpl extends ServiceImpl public List getConsultByNumber(Long userId, Integer number) { String key = RedisConstant.APP_CONSULT + userId + "-" + number; List consultInfoVoList = (List) redisTemplate.opsForValue().get(key); - if (consultInfoVoList != null) { + if (consultInfoVoList == null) { consultInfoVoList = consultMapper.getConsultByNumber(userId, number); redisTemplate.opsForValue().set(key, consultInfoVoList); }