csx 2 years ago
parent
commit
2d576653af
1 changed files with 4 additions and 2 deletions
  1. 4 2
      service/bl_service.go

+ 4 - 2
service/bl_service.go View File

@@ -358,10 +358,12 @@ func GetDataInsertDB(org_id int64) {
358 358
 				cms.Pno = item.HisPrescriptionProject.HisPrescription.HisOrder.MdtrtId
359 359
 				cms.Ptype = "门诊"
360 360
 				cms.Pname = item.HisPrescriptionProject.HisPrescription.HisOrder.XtHisPatient.Name
361
-				if item.HisPrescriptionProject.HisPrescription.HisOrder.XtHisPatient.Gender == 1 {
361
+				if item.Patient.Gender == 1 {
362 362
 					cms.Psex = "男"
363
-				} else if item.HisPrescriptionProject.HisPrescription.HisOrder.XtHisPatient.Gender == 2 {
363
+				} else if item.Patient.Gender == 2 {
364 364
 					cms.Psex = "女"
365
+				} else {
366
+					cms.Psex = "不详"
365 367
 				}
366 368
 				cms.Page = strconv.FormatInt(item.HisPrescriptionProject.HisPrescription.HisOrder.XtHisPatient.Age, 10)
367 369
 				cms.Pageunit = "岁"