From 589191bfe2263228e20ae6de9f74badb7207b912 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 13 七月 2023 14:31:36 +0800
Subject: [PATCH] fix

---
 model/salesDetails.go         |    1 +
 model/plan.go                 |    1 +
 model/contract.go             |    1 +
 model/salesRefund.go          |    1 +
 model/customerServiceSheet.go |   20 ++++++++++++++++++++
 model/serviceContracts.go     |    1 +
 model/orderManage.go          |    1 +
 model/serviceFollowup.go      |    1 +
 8 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/model/contract.go b/model/contract.go
index dbedb90..31b639b 100644
--- a/model/contract.go
+++ b/model/contract.go
@@ -15,6 +15,7 @@
 		Quotation   Quotation `json:"quotation" gorm:"foreignKey:QuotationId;references:Id"`
 		StatusId    int       `json:"statusId" gorm:"column:status_id;type:int;comment:鍚堝悓鐘舵��"`
 		File        string    `json:"file" gorm:"column:file;type:varchar(255);comment:鍚堝悓鏂囦欢"`
+		gorm.Model  `json:"-"`
 	}
 
 	ContractSearch struct {
diff --git a/model/customerServiceSheet.go b/model/customerServiceSheet.go
new file mode 100644
index 0000000..1fb8026
--- /dev/null
+++ b/model/customerServiceSheet.go
@@ -0,0 +1,20 @@
+package model
+
+import "gorm.io/gorm"
+
+type (
+	CustomerServiceSheet struct {
+		Id           int    `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
+		MemberId     int    `json:"memberId" gorm:"column:member_id;type:int;comment:鏈嶅姟浜哄憳id"`
+		Number       string `json:"number" gorm:"column:number;type:varchar(255);comment:鏈嶅姟鍗曞彿"`
+		ServiceMode  int    `json:"serviceMode" gorm:"column:service_mode;type:int;comment:鏈嶅姟鏂瑰紡"`
+		Priority     int    `json:"priority" gorm:"column:priority;type:int;comment:浼樺厛绾�"`
+		HandleStatus int    `json:"handleStatus" gorm:"column:handle_status;type:int;comment:澶勭悊鐘舵��"`
+		gorm.Model   `json:"-"`
+	}
+
+	CustomerServiceSheetSearch struct {
+		CustomerServiceSheet
+		Orm *gorm.DB
+	}
+)
diff --git a/model/orderManage.go b/model/orderManage.go
index 8dde20b..fd9626f 100644
--- a/model/orderManage.go
+++ b/model/orderManage.go
@@ -17,6 +17,7 @@
 		SourceSheet        int    `json:"sourceSheet" gorm:"column:source_sheet;type:int;comment:鏉ユ簮鍗曟嵁"`
 		ProblemDescription string `json:"problemDescription" gorm:"column:problem_description;type:text;comment:闂鎻忚堪"`
 		File               string `json:"file" gorm:"column:file;type:varchar(255);comment:闄勪欢"`
+		gorm.Model         `json:"-"`
 	}
 
 	OrderManageSearch struct {
diff --git a/model/plan.go b/model/plan.go
index 3046ef9..d6d0ae5 100644
--- a/model/plan.go
+++ b/model/plan.go
@@ -20,6 +20,7 @@
 		EndTime        time.Time    `json:"endTime" gorm:"column:end_time;type:datetime;comment:缁撴潫鏃堕棿"`
 		Content        string       `json:"content" gorm:"column:content;type:varchar(255);comment:璁″垝鍐呭"`
 		File           string       `json:"file" gorm:"column:file;type:varchar(255);comment:闄勪欢"`
+		gorm.Model     `json:"-"`
 	}
 
 	PlanSearch struct {
diff --git a/model/salesDetails.go b/model/salesDetails.go
index ee8b04b..57ebed0 100644
--- a/model/salesDetails.go
+++ b/model/salesDetails.go
@@ -23,6 +23,7 @@
 		Conditions        string    `json:"conditions" gorm:"column:conditions;type:text;comment:鏉′欢"`
 		Remark            string    `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"`
 		Products          []Product `json:"products" gorm:"many2many:salesDetails_product;"`
+		gorm.Model        `json:"-"`
 	}
 
 	SalesDetailsSearch struct {
diff --git a/model/salesRefund.go b/model/salesRefund.go
index e2540c4..8cf92ad 100644
--- a/model/salesRefund.go
+++ b/model/salesRefund.go
@@ -18,6 +18,7 @@
 		IsInvoice    int       `json:"isInvoice" gorm:"column:is_invoice;type:int;comment:鏄惁寮�绁�"`
 		Reason       string    `json:"reason" gorm:"column:reason;type:varchar(255);comment:閫�娆惧師鍥�"`
 		Products     []Product `json:"products" gorm:"many2many:salesRefund_product;"`
+		gorm.Model   `json:"-"`
 	}
 
 	SalesRefundSearch struct {
diff --git a/model/serviceContracts.go b/model/serviceContracts.go
index 68d1ecd..38a24e9 100644
--- a/model/serviceContracts.go
+++ b/model/serviceContracts.go
@@ -25,6 +25,7 @@
 		Terms        string    `json:"terms" gorm:"column:terms;type:text;comment:鏉℃"`
 		Remark       string    `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"`
 		Products     []Product `json:"products" gorm:"many2many:serviceContract_product;"`
+		gorm.Model   `json:"-"`
 	}
 
 	ServiceContractSearch struct {
diff --git a/model/serviceFollowup.go b/model/serviceFollowup.go
index f4bc52c..c44beea 100644
--- a/model/serviceFollowup.go
+++ b/model/serviceFollowup.go
@@ -21,6 +21,7 @@
 		OldMemberId  int    `json:"oldMemberId" gorm:"column:old_member_id;type:int;comment:鍘熸湇鍔′汉鍛�"`
 		Remark       string `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"`
 		File         string `json:"file" gorm:"column:file;type:varchar(255);comment:闄勪欢"`
+		gorm.Model   `json:"-"`
 	}
 
 	ServiceFollowupSearch struct {

--
Gitblit v1.8.0