소스 검색

fix user relation

abiao 5 년 전
부모
커밋
6ddaccf26c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      go/gopath/src/fohow.com/apps/models/user_model/three_wx_user.go

+ 1 - 1
go/gopath/src/fohow.com/apps/models/user_model/three_wx_user.go

@@ -191,7 +191,7 @@ func CopyWxUsers() {
 
 	//更新invite_id丢失会员
 	sql = `
-		update wx_users set invite_id=1 where invite_id=0 and id !=1
+		update wx_users set invite_id=1 where invite_id=0 and id >1
 	`
 	o.Raw(sql).Exec()