Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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
}