Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
4267ca8a00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/zh/zh_his_api_controller.go

+ 2 - 2
controllers/zh/zh_his_api_controller.go View File

865
 	chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(record.PatientId, 10)
865
 	chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(record.PatientId, 10)
866
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
866
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
867
 	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, id, recordDateTime)
867
 	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, id, recordDateTime)
868
-	department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
868
+	department, _ := service.GetDepartMentDetail(record.Departments)
869
 	strconv.FormatInt(record.PatientId, 10)
869
 	strconv.FormatInt(record.PatientId, 10)
870
 
870
 
871
 	client := &http.Client{}
871
 	client := &http.Client{}
875
 	data["org_name"] = miConfig.OrgName
875
 	data["org_name"] = miConfig.OrgName
876
 	data["doctor"] = roles.UserName
876
 	data["doctor"] = roles.UserName
877
 	data["doctor_id"] = strconv.FormatInt(roles.AdminUserId, 10)
877
 	data["doctor_id"] = strconv.FormatInt(roles.AdminUserId, 10)
878
-	data["dept"] = strconv.FormatInt(patientPrescription.Departments, 10)
878
+	data["dept"] = strconv.FormatInt(department.ID, 10)
879
 	data["fixmedins_code"] = miConfig.Code
879
 	data["fixmedins_code"] = miConfig.Code
880
 	if (department.ID == 0 && adminUser.CurrentOrgId == 9919) || (department.ID == 0 && adminUser.CurrentOrgId == 10106) {
880
 	if (department.ID == 0 && adminUser.CurrentOrgId == 9919) || (department.ID == 0 && adminUser.CurrentOrgId == 10106) {
881
 		data["dept_code"] = "15"
881
 		data["dept_code"] = "15"