wangpengfei
2023-08-11 493ad64a1f17ceeb70ec834162a0ad3572d28d69
model/serviceContract.go
@@ -18,6 +18,7 @@
      Number                  string                `json:"number" gorm:"column:number;type:varchar(255);comment:合同编号"`
      MemberId                int                   `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`
      ContactId               int                   `json:"contactId" gorm:"column:contact_id;type:int;comment:联系人id"`
      Contact                 Contact               `json:"contact" gorm:"foreignKey:ContactId"`
      SaleChanceId            int                   `json:"saleChanceId" gorm:"column:sale_chance_id;type:int;comment:销售机会id"`
      SaleChance              SaleChance            `json:"SaleChance" gorm:"foreignKey:SaleChanceId"`
      SalesDetailsId          int                   `json:"salesDetailsId" gorm:"column:sales_details_id;type:int;comment:合同订单id"`
@@ -115,7 +116,8 @@
         Preload("Products").
         Preload("Client").
         Preload("ServiceContractType").
         Preload("ServiceContractStatus")
         Preload("ServiceContractStatus").
         Preload("Contact")
   }
   return db