Browse Source

Merge branch 'comein'

zwxi 11 tháng trước cách đây
mục cha
commit
fa9aec3245
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      models/comein_white_user.go

+ 2 - 2
models/comein_white_user.go

@@ -35,8 +35,8 @@ func DelComeinWhiteUserMulti(delIds []int) (err error) {
 }
 
 func GetComeinWhiteUser(mobiles,emails string) (items []*ComeinWhiteUser, err error) {
-	sql:=`SELECT * from comein_white_user WHERE mobile IN (` + mobiles + `)  `
-	if len(emails) > 0 {
+	sql:=`SELECT * from comein_white_user WHERE 1=1 AND mobile IN (` + mobiles + `)  `
+	if emails != "" {
 		sql+= ` OR email IN (` + emails + `) `
 	}
 		o:=orm.NewOrm()