Browse Source

提交代码

陈少旭 3 months ago
parent
commit
72a0ff5882
1 changed files with 1 additions and 3 deletions
  1. 1 3
      controllers/his_api_controller.go

+ 1 - 3
controllers/his_api_controller.go View File

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