Browse Source

Merge branch 'master' of http://git.shengws.com/csx/XT_New

XMLWAN 5 years ago
parent
commit
675711d970
1 changed files with 2 additions and 1 deletions
  1. 2 1
      service/schedule_service.go

+ 2 - 1
service/schedule_service.go View File

308
 				oldTime := scheduleDates.AddDate(0, 0, int(count)).Unix()
308
 				oldTime := scheduleDates.AddDate(0, 0, int(count)).Unix()
309
 				advices, _ := FindAllDoctorAdviceByTimeOther(now, oldTime, item.PatientId, item.UserOrgId, advice.TemplateId)
309
 				advices, _ := FindAllDoctorAdviceByTimeOther(now, oldTime, item.PatientId, item.UserOrgId, advice.TemplateId)
310
 				if len(advices) == 0 {
310
 				if len(advices) == 0 {
311
-					advice_three = append(advice_three)
311
+					advice_three = append(advice_three, advice)
312
 				}
312
 				}
313
 			}
313
 			}
314
+
314
 			item.DoctorAdvice = append(item.DoctorAdvice, advice_three...)
315
 			item.DoctorAdvice = append(item.DoctorAdvice, advice_three...)
315
 		}
316
 		}
316
 	}
317
 	}