From 7bd3fd2cc7131e63a54a6801a2ea9b9f0b2ca321 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 16 Nov 2023 16:00:54 +0800 Subject: [PATCH] 1 --- api/service/export.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/service/export.go b/api/service/export.go index 2c3e577..1ed9c10 100644 --- a/api/service/export.go +++ b/api/service/export.go @@ -1241,7 +1241,6 @@ func (r *ExportService) PatientFamily(d []*model.PatientFamily) (string, error) for _, v := range d { data := PatientFamilyData{ CardName: v.CardName, - Relation: utils.RelationToString(*v.Relation), Status: utils.PatientFamilyStatusToString(v.Status), IsDefault: utils.IsDefaultToString(v.IsDefault), Type: utils.CardTypeToString(v.Type), @@ -1258,6 +1257,10 @@ func (r *ExportService) PatientFamily(d []*model.PatientFamily) (string, error) JobName: v.JobName, } + if v.Relation != nil { + data.Relation = utils.RelationToString(*v.Relation) + } + if v.UserPatient != nil { data.UserName = v.UserPatient.UserName if v.UserPatient.User != nil {