|
@@ -761,9 +761,9 @@ func MobileGetDoctorAdvicesByGroups(orgID int64, patientID int64, recordDate int
|
761
|
761
|
|
762
|
762
|
// cur_date := time.Now().Format("2006-01-02")
|
763
|
763
|
key := strconv.FormatInt(orgID, 10) + ":" + strconv.FormatInt(patientID, 10) + ":" + strconv.FormatInt(recordDate, 10) + ":doctor_advices"
|
764
|
|
-
|
|
764
|
+ fmt.Println("key23233232323323wi", key)
|
765
|
765
|
doctor_advices_str, _ := redis.Get(key).Result()
|
766
|
|
-
|
|
766
|
+ redis.Set(doctor_advices_str, "", time.Second)
|
767
|
767
|
if len(doctor_advices_str) == 0 { //没有到缓存数据,从数据库中获取数据,进行缓存到redis
|
768
|
768
|
|
769
|
769
|
err := readDb.Model(&models.DoctorAdvice{}).
|