You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
537 B

package upcrm
import "go-common/app/admin/main/up/model/upcrmmodel"
//QueryPlayInfo query db
func (d *Dao) QueryPlayInfo(mid int64, busiType []int) (result []upcrmmodel.UpPlayInfo, err error) {
err = d.crmdb.Where("mid=? and business_type in (?)", mid, busiType).Find(&result).Error
return
}
// QueryPlayInfoBatch query db
func (d *Dao) QueryPlayInfoBatch(mid []int64, busiType int) (result []*upcrmmodel.UpPlayInfo, err error) {
err = d.crmdb.Where("mid in (?) and business_type = ?", mid, busiType).Find(&result).Error
return
}