From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 18 十一月 2023 17:25:25 +0800
Subject: [PATCH] crm获取aps项目模块信息

---
 model/request/salesDetails.go |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/model/request/salesDetails.go b/model/request/salesDetails.go
index 4915b69..ed2b4b6 100644
--- a/model/request/salesDetails.go
+++ b/model/request/salesDetails.go
@@ -11,11 +11,13 @@
 
 type SalesDetails struct {
 	ClientId            int                         `json:"clientId" gorm:"column:client_id;type:int;comment:瀹㈡埛id"`
+	Client              model.Client                `json:"client" gorm:"foreignKey:ClientId"`
 	Number              string                      `json:"number" gorm:"column:number;type:varchar(255);comment:閿�鍞槑缁嗗崟鍙�"`
 	SaleChanceId        int                         `json:"saleChanceId" gorm:"column:sale_chance_id;type:int;comment:閿�鍞満浼歩d"`
 	SaleType            int                         `json:"saleType" gorm:"column:sale_type;type:int;comment:閿�鍞被鍨�"`
 	SignTime            string                      `json:"signTime" gorm:"column:sign_time;type:datetime;comment:绛惧崟鏃堕棿"`
 	MemberId            int                         `json:"memberId" gorm:"column:member_id;type:int;comment:璐熻矗浜篿d"`
+	Member              model.User                  `json:"Member"  gorm:"foreignKey:MemberId"`
 	DeliveryDate        string                      `json:"deliveryDate" gorm:"column:delivery_date;type:datetime;comment:浜よ揣鏃ユ湡"`
 	WechatOrderStatusId int                         `json:"wechatOrderStatusId" gorm:"column:wechat_order_status_id;type:int;comment:寰俊璁㈠崟鐘舵�乮d"`
 	Address             string                      `json:"address" gorm:"column:address;type:varchar(255);comment:鍦板潃"`
@@ -32,6 +34,7 @@
 	QuotationId         int                         `json:"quotationId" gorm:"column:quotation_id;type:int;comment:鎶ヤ环鍗昳d"`
 	Status              constvar.SalesDetailsStatus `json:"status" gorm:"column:status;type:int;comment:鐘舵��"`
 	Source              string                      `json:"source" gorm:"column:source;type:varchar(255);comment:璁㈠崟鏉ユ簮"`
+	ProjectId           string                      `json:"projectId" gorm:"column:project_id;type:varchar(255);comment:aps椤圭洰id"`
 }
 
 type UpdateSalesDetails struct {

--
Gitblit v1.8.0