liujiandao
2023-10-21 4b2c52b17abef8521f9211b4865e1cad0288b12a
model/saleChance.go
@@ -30,6 +30,7 @@
      Currency              int                    `json:"currency" gorm:"column:currency;type:int(11);comment:币种"`
      ExpectedTime          *CustomTime            `json:"expected_time" gorm:"column:expected_time;type:datetime;comment:预计成交时间"`
      StatusId              int                    `json:"status_id" gorm:"column:status_id;type:int(11);comment:状态ID"`
      Status                Status                 `json:"status"` //状态
      PainPoints            string                 `json:"pain_points" gorm:"column:pain_points;type:text;comment:痛点"`
      WhetherEstablished    string                 `json:"whether_established" gorm:"column:whether_established;type:text;comment:是否成立"`
      CapitalBudget         string                 `json:"capital_budget" gorm:"column:capital_budget;type:text;comment:资金预算"`
@@ -164,7 +165,7 @@
   err := db.Preload("SaleType").Preload("RegularCustomers").Preload("SalesSources").Preload("Products").
      Preload("Member").Preload("SaleStage").Preload("Possibility").
      Preload("CollectionProjections").Preload("Client").
      Preload("Province").Preload("City").Preload("Contact").Order("id desc").Find(&records).Error
      Preload("Province").Preload("City").Preload("Contact").Preload("Status").Order("id desc").Find(&records).Error
   return records, total, err
}