fix
wangpengfei
2023-07-06 a6c23dcfedf8b655253ab1cdc4c6135a4e3c4cc9
model/saleChance.go
@@ -37,6 +37,9 @@
      Disadvantages      string                `json:"disadvantages" gorm:"column:disadvantages;type:text;comment:竞争劣势"`
      Opportunities      string                `json:"opportunities" gorm:"column:opportunities;type:text;comment:竞争机会"`
      Threats            string                `json:"threats" gorm:"column:threats;type:text;comment:竞争威胁"`
      Contact            Contact               `json:"contact" gorm:"foreignKey:ContactId;references:Id"`
      Client             Client                `json:"client" gorm:"foreignKey:ClientId;references:Id"`
      SalesSources       SalesSources
      Address
      gorm.Model `json:"-"`
   }
@@ -93,7 +96,7 @@
func (slf *SaleChangeSearch) FindAll() (record []*SaleChance, err error) {
   var db = slf.build()
   err = db.Find(&record).Error
   err = db.Preload("Client").Preload("Contact").Find(&record).Error
   return
}