Ver código fonte

医保对接

csx 3 anos atrás
pai
commit
a49ef7c175

+ 3 - 0
controllers/his_project_api_controller.go Ver arquivo

@@ -1234,6 +1234,8 @@ func (this *HisProjectApiController) GetDoctorAdvicePrint() {
1234 1234
 	//hisPatient, _ := service.GetHisPatientById(patient_id)
1235 1235
 	hisHospitalRecord, _ := service.GetLastHospitalRecordTwo(patient_id, adminUserInfo.CurrentOrgId)
1236 1236
 
1237
+	eles, _ := service.GetNewAdminUserES(adminUserInfo.CurrentOrgId)
1238
+
1237 1239
 	if err != nil {
1238 1240
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeUpdateConfig)
1239 1241
 		return
@@ -1245,6 +1247,7 @@ func (this *HisProjectApiController) GetDoctorAdvicePrint() {
1245 1247
 		"his":               his,
1246 1248
 		"hisHospitalRecord": hisHospitalRecord,
1247 1249
 		"info":              prescriptionInfo,
1250
+		"eles":              eles,
1248 1251
 	})
1249 1252
 }
1250 1253
 

+ 5 - 0
service/his_project_service.go Ver arquivo

@@ -747,3 +747,8 @@ func GetLastHisPatient(patient_id int64, org_id int64) (his models.HisPatient, e
747 747
 	err = XTReadDB().Model(&models.HisPatient{}).Where("user_org_id = ? AND patient_id = ? and status = 1 AND patient_info <> ''", org_id, patient_id).First(&his).Error
748 748
 	return
749 749
 }
750
+
751
+func GetNewAdminUserES(orgID int64) (es []*models.AdminUserElectronicSignature, err error) {
752
+	err = readUserDb.Model(&models.AdminUserElectronicSignature{}).Where("org_id=?  and status=1", orgID).Find(&es).Error
753
+	return
754
+}