陈少旭 1 год назад
Родитель
Сommit
9a246af2d4
2 измененных файлов: 3 добавлений и 0 удалений
  1. 2 0
      controllers/his_summary_controller.go
  2. 1 0
      service/his_summary_service.go

+ 2 - 0
controllers/his_summary_controller.go Просмотреть файл

@@ -643,6 +643,8 @@ func (this *HisSummaryApiController) GetHisOrderList() {
643 643
 	patient_id, _ := this.GetInt64("patient_id")
644 644
 	start_time := this.GetString("start_time")
645 645
 	end_time := this.GetString("end_time")
646
+	//med_type := this.GetString("med_type")
647
+
646 648
 	timeLayout := "2006-01-02"
647 649
 	loc, _ := time.LoadLocation("Local")
648 650
 	startTime, err := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)

+ 1 - 0
service/his_summary_service.go Просмотреть файл

@@ -382,6 +382,7 @@ func GetOrderInfoList(patient_id int64, startime int64, endtime int64, orgid int
382 382
 	if startime > 0 {
383 383
 		db = db.Where("upload_date >= ?", startime)
384 384
 	}
385
+
385 386
 	if endtime > 0 {
386 387
 		db = db.Where("upload_date<=?", endtime)
387 388
 	}