From a18a2c98ed758d08cbbe102bf5225c5a4cd001c7 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 10 八月 2023 19:32:02 +0800
Subject: [PATCH] fix

---
 model/serviceFollowup.go |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/model/serviceFollowup.go b/model/serviceFollowup.go
index 917d2a5..29e80f6 100644
--- a/model/serviceFollowup.go
+++ b/model/serviceFollowup.go
@@ -18,12 +18,18 @@
 		ServiceOrder         ServiceOrder         `gorm:"foreignKey:ServiceId"`
 		CustomerServiceSheet CustomerServiceSheet `json:"customerServiceSheet" gorm:"foreignKey:ServiceId"`
 		MemberId             int                  `json:"memberId" gorm:"column:member_id;type:int;comment:鏈嶅姟浜哄憳id"`
+		Member               User                 `json:"Member" gorm:"foreignKey:MemberId"`
 		PlanId               int                  `json:"planId" gorm:"column:plan_id;type:int;comment:鏈嶅姟璁″垝id"`
 		SatisfactionId       int                  `json:"satisfactionId" gorm:"column:satisfaction_id;type:int;comment:婊℃剰搴d"`
+		Satisfaction         Satisfaction         `json:"satisfaction" gorm:"foreignKey:SatisfactionId"`
 		TimelyRateId         int                  `json:"timelyRateId" gorm:"column:timely_rate_id;type:int;comment:鍙婃椂鐜噄d"`
+		TimelyRate           TimelyRate           `json:"timelyRate" gorm:"foreignKey:TimelyRateId"`
 		SolveRateId          int                  `json:"solveRateId" gorm:"column:solve_rate_id;type:int;comment:瑙e喅鐜噄d"`
+		SolveRate            SolveRate            `json:"solveRate" gorm:"foreignKey:SolveRateId"`
 		IsVisitId            int                  `json:"isVisitId" gorm:"column:is_visit_id;type:int;comment:鏈嶅姟浜哄憳鏄惁鏉ヨ繃id"`
+		IsVisit              IsVisit              `json:"isVisit"  gorm:"foreignKey:IsVisitId"`
 		OldMemberId          int                  `json:"oldMemberId" gorm:"column:old_member_id;type:int;comment:鍘熸湇鍔′汉鍛�"`
+		OldMember            User                 `json:"oldMember" gorm:"foreignKey:OldMemberId"`
 		Remark               string               `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"`
 		File                 string               `json:"file" gorm:"column:file;type:varchar(255);comment:闄勪欢"`
 
@@ -78,7 +84,13 @@
 		db = db.Preload("CustomerServiceSheet").
 			Preload("ServiceOrder").
 			Preload("Client").
-			Preload("Contact")
+			Preload("Contact").
+			Preload("Satisfaction").
+			Preload("TimelyRate").
+			Preload("SolveRate").
+			Preload("IsVisit").
+			Preload("OldMember").
+			Preload("Member")
 	}
 
 	return db

--
Gitblit v1.8.0