陈少旭 2 miesięcy temu
rodzic
commit
72a0ff5882
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      controllers/his_api_controller.go

+ 1 - 3
controllers/his_api_controller.go Wyświetl plik

@@ -72,9 +72,7 @@ func HisManagerApiRegistRouters() {
72 72
 	beego.Router("/api/postprojectinformation", &HisApiController{}, "post:PostProjectInformation")
73 73
 	//beego.Router("/api/editprojectinformation", &HisApiController{}, "post:EditProjectInformation")
74 74
 	beego.Router("/api/hisprescriptiontemplate/create", &HisApiController{}, "post:CreateHisPrescriptionTemplate")
75
-
76 75
 	beego.Router("/api/privateexpenses/get", &HisApiController{}, "get:GetPrivateExpensesInfo")
77
-
78 76
 	beego.Router("/api/changemedtype/post", &HisApiController{}, "post:ChangeMedType")
79 77
 
80 78
 	beego.Router("/api/refunddetail/post", &HisApiController{}, "post:RefudDetail")
@@ -127,7 +125,7 @@ func (c *HisApiController) CheckHisPatient() {
127 125
 	patients, _ := service.GetHisPatientInfoTwo(adminInfo.CurrentOrgId, patient_id, recordDateTime)
128 126
 	if len(patients) > 1 {
129 127
 		ps, _ := service.GetHisPrescriptionByHisPatientID(recordDateTime, adminInfo.CurrentOrgId, patient_id)
130
-		if len(ps) > 0 {
128
+		if len(ps) > 0 && len(ps[0].VMHisPrescription) > 0 {
131 129
 			c.ServeSuccessJSON(map[string]interface{}{
132 130
 				"status":         1,
133 131
 				"msg":            "关联",