XMLWAN 2 anni fa
parent
commit
5cbe5ba1a2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      service/mobile_dialysis_service.go

+ 2 - 2
service/mobile_dialysis_service.go Vedi File

@@ -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{}).