Browse Source

提交代码

陈少旭 10 months ago
parent
commit
41f50bf67a
1 changed files with 10 additions and 2 deletions
  1. 10 2
      controllers/his_api_controller.go

+ 10 - 2
controllers/his_api_controller.go View File

1411
 	//patients, _ := service.GetHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime)
1411
 	//patients, _ := service.GetHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime)
1412
 	patients, _ := service.GetNewHisPatientList(adminInfo.CurrentOrgId, recordDateTime, sch_type)
1412
 	patients, _ := service.GetNewHisPatientList(adminInfo.CurrentOrgId, recordDateTime, sch_type)
1413
 	patients_two, _ := service.GetScheduleHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
1413
 	patients_two, _ := service.GetScheduleHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
1414
-	patient_three, _ := service.GetNewHisPatientListTwo(adminInfo.CurrentOrgId, recordDateTime, sch_type)
1414
+	//patient_three, _ := service.GetNewHisPatientListTwo(adminInfo.CurrentOrgId, recordDateTime, sch_type)
1415
 
1415
 
1416
 	//patients_two, _ := service.GetScheduleHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
1416
 	//patients_two, _ := service.GetScheduleHisPatientList(adminInfo.CurrentOrgId, "", recordDateTime, sch_type)
1417
 
1417
 
1420
 	doctors, _ := service.GetHisAdminUserDoctors(adminInfo.CurrentOrgId)
1420
 	doctors, _ := service.GetHisAdminUserDoctors(adminInfo.CurrentOrgId)
1421
 	//获取所有科室信息
1421
 	//获取所有科室信息
1422
 	department, _ := service.GetAllDepartMent(adminInfo.CurrentOrgId)
1422
 	department, _ := service.GetAllDepartMent(adminInfo.CurrentOrgId)
1423
+	//var aa []service.PatientThree
1424
+
1425
+	noElementsSlice := make([]service.PatientThree, 0)
1423
 	c.ServeSuccessJSON(map[string]interface{}{
1426
 	c.ServeSuccessJSON(map[string]interface{}{
1427
+
1424
 		"list":       patients,
1428
 		"list":       patients,
1425
 		"list_two":   patients_two,
1429
 		"list_two":   patients_two,
1426
-		"list_three": patient_three,
1430
+		"list_three": noElementsSlice,
1431
+
1427
 		"info":       adminUserInfo,
1432
 		"info":       adminUserInfo,
1428
 		"doctors":    doctors,
1433
 		"doctors":    doctors,
1429
 		"department": department,
1434
 		"department": department,
9825
 	//获取所有科室信息
9830
 	//获取所有科室信息
9826
 	department, _ := service.GetAllDepartMent(admin.CurrentOrgId)
9831
 	department, _ := service.GetAllDepartMent(admin.CurrentOrgId)
9827
 
9832
 
9833
+	sch, _ := service.GetScheduleByDate(c.GetAdminUserInfo().CurrentOrgId, recordDateTime, patient_id)
9834
+
9828
 	c.ServeSuccessJSON(map[string]interface{}{
9835
 	c.ServeSuccessJSON(map[string]interface{}{
9829
 		"his_info":     his_patient_info,
9836
 		"his_info":     his_patient_info,
9830
 		"xt_info":      xt_patient_info,
9837
 		"xt_info":      xt_patient_info,
9835
 		"order":        order,
9842
 		"order":        order,
9836
 		"doctors":      doctors,
9843
 		"doctors":      doctors,
9837
 		"department":   department,
9844
 		"department":   department,
9845
+		"sch":          sch,
9838
 	})
9846
 	})
9839
 	return
9847
 	return
9840
 }
9848
 }