|
|
|
|
227
|
}
|
227
|
}
|
228
|
|
228
|
|
229
|
func (this *XcxApiController) GetScheduleInfo() {
|
229
|
func (this *XcxApiController) GetScheduleInfo() {
|
230
|
- //patient_id, _ := this.GetInt64("patient_id")
|
|
|
|
|
230
|
+ patient_id, _ := this.GetInt64("patient_id")
|
231
|
thisWeekMonday := service.GetFirstDateOfWeek()
|
231
|
thisWeekMonday := service.GetFirstDateOfWeek()
|
232
|
weekDayWeek := service.GetWeekDayOfWeek()
|
232
|
weekDayWeek := service.GetWeekDayOfWeek()
|
233
|
TimeMonday, _ := time.Parse("2006-01-02", thisWeekMonday)
|
233
|
TimeMonday, _ := time.Parse("2006-01-02", thisWeekMonday)
|
|
|
|
|
248
|
|
248
|
|
249
|
fmt.Println(startTime.Unix(), endTime.Unix())
|
249
|
fmt.Println(startTime.Unix(), endTime.Unix())
|
250
|
|
250
|
|
251
|
- schedule, err := service.GetScheduleInfo(1630252800, 1631980800, 2448)
|
|
|
|
|
251
|
+ schedule, err := service.GetScheduleInfo(1630252800, 1631980800, patient_id)
|
252
|
if err != nil {
|
252
|
if err != nil {
|
253
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
253
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
254
|
return
|
254
|
return
|