소스 검색

同步优化

xingzai 3 년 전
부모
커밋
bae0fed8ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/wx_user.go

+ 1 - 1
models/wx_user.go

@@ -223,7 +223,7 @@ func ModifyWxUserIsMsgOutboundMobile(userId int) (err error) {
 //列表
 func GetUserListAll() (items []*WxUserItem, err error) {
 	o := orm.NewOrm()
-	sql := `SELECT * FROM wx_user  WHERE mobile <>'' `
+	sql := `SELECT * FROM wx_user  WHERE mobile <>'' AND outbound_mobile = ''`
 	_, err = o.Raw(sql).QueryRows(&items)
 	return
 }