소스 검색

sql修改

WH01243 1 년 전
부모
커밋
0057e446ee
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      clueSync/jobutil.go

+ 2 - 2
clueSync/jobutil.go

@@ -735,8 +735,8 @@ func userbase() {
 						if time.Now().Unix()-registedates.Unix() > int64(db.RegTimes)*86400 {
 							if count == 0 {
 								clueId := int64(0)
-								sql := fmt.Sprintf(`select * from freeClubSign where mogUserId="%s" and sub_again_date > "%s" `, selectTimeEnd, userId)
-								data := BiService.SelectBySql(sql, "")
+								sql := fmt.Sprintf(`select * from freeClubSign where mogUserId="%s" and sub_again_date > "%s" `, userId, selectTimeEnd)
+								data := BiService.SelectBySql(sql)
 								if len(*data) > 0 && userId != "" {
 									clueId = TiDb.Insert("dwd_f_crm_clue_info", map[string]interface{}{
 										"userid":            userId,