liujiandao
2023-10-11 34ef7217a034599217a7fdd1e28e1ae6910e1b4b
model/saleChance.go
@@ -46,6 +46,7 @@
      Client                Client                 `json:"client" gorm:"foreignKey:ClientId;references:Id"`
      CollectionProjections []CollectionProjection `json:"collection_projections" gorm:"foreignKey:SaleChanceId"`
      SalesSources          SalesSources           `json:"sales_sources"`
      CodeStandID           string                 `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"`
      Address
      gorm.Model `json:"-"`
   }
@@ -189,3 +190,7 @@
   slf.Orm = slf.Orm.Where("id in (?)", ids)
   return slf
}
func (slf *SaleChanceSearch) UpdateByMap(data map[string]interface{}) error {
   var db = slf.build()
   return db.Updates(data).Error
}