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); }