model.go 454 B

1234567891011121314
  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. func GetSignUpCountByMobileAndBannerId(CustomMobile string, bannerId int) (count int64, err error) {
  8. err = global.DEFAULT_MYSQL.Table("yb_research_signup_statistics").Where("custom_mobile = ? and banner_id=? ", CustomMobile, bannerId).Count(&count).Error
  9. return
  10. }