@@ -1981,7 +1981,7 @@ func (c *HisApiController) DeleteDoctorAdvice() {
keyOne := strconv.FormatInt(advice.UserOrgId, 10) + ":" + strconv.FormatInt(advice.PatientId, 10) + ":" + strconv.FormatInt(advice.AdviceDate, 10) + ":his_doctor_advice"
redis.Set(keyOne, "", time.Second)
- redis.Close()
+ defer redis.Close()
if err == nil {
if drugStockConfig.IsOpen == 1 {
//判断该医嘱是否执行了