|
@@ -591,13 +591,14 @@ func (this *XcxApiController) GetDoctorAdvice() {
|
591
|
591
|
start_time := this.GetString("start_time")
|
592
|
592
|
end_time := this.GetString("end_time")
|
593
|
593
|
patient_id, _ := this.GetInt64("patient_id")
|
|
594
|
+ fmt.Println("patient_id", patient_id)
|
594
|
595
|
timeLayout := "2006-01-02"
|
595
|
596
|
loc, _ := time.LoadLocation("Local")
|
596
|
597
|
startTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
|
597
|
598
|
endTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", end_time+" 00:00:00", loc)
|
598
|
|
- info, _ := service.GetXcxPatientInfo(patient_id)
|
|
599
|
+ info, _ := service.GetXcxPatientInfo(1)
|
599
|
600
|
config, _ := service.GetDoctorAdviceConfig(info.UserOrgId)
|
600
|
|
-
|
|
601
|
+ fmt.Println(startTime, endTime)
|
601
|
602
|
if config.IsOpenRemind == 0 || config.IsOpenRemind == 2 {
|
602
|
603
|
|
603
|
604
|
advice, _ := service.GetDoctorAdvice(patient_id, startTime.Unix(), endTime.Unix())
|