model.go 487 B

123456789101112131415
  1. package yb_research_signup_statistics
  2. import "hongze/hongze_yb/global"
  3. func (m *YbResearchSignupStatistics) Create() (err error) {
  4. err = global.DEFAULT_MYSQL.Create(m).Error
  5. return
  6. }
  7. // GetBySandboxId 根据沙盘ID查询详情
  8. func GetSignUpCountByMobileAndBannerId(mobile string, bannerId int) (count int64, err error) {
  9. err = global.DEFAULT_MYSQL.Table("yb_research_signup_statistics").Where("custom_mobile = ? and banner_id=? ", mobile, bannerId).Count(&count).Error
  10. return
  11. }