浏览代码

提交代码

陈少旭 7 个月前
父节点
当前提交
41f50bf67a
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      controllers/his_api_controller.go

+ 10 - 2
controllers/his_api_controller.go 查看文件

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