@@ -139,7 +142,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -139,7 +142,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
StringopenIdStrs=String.join("\',\'",openIds);
StringopenIdStrs=String.join("\',\'",openIds);
openIdStrs="\'"+openIdStrs+"\'";
openIdStrs="\'"+openIdStrs+"\'";
// 添加公众号数据
// 添加公众号数据
Stringsql=String.format("INSERT INTO wechat_info_relation(`user_id`, `open_id`, `union_id`, `type`, `period`) SELECT `user_id`, `open_id`, `union_id`, '%s', %s from wechat_userinfo where app_name='%s' and `open_id` IN (%s)",WECHAT_ACCOUNT,period,WECHAT_XYQB,openIdStrs);
Stringsql=String.format("INSERT INTO wechat_info_relation(`user_id`, `open_id`, `union_id`, `type`, `task_period`) SELECT `user_id`, `open_id`, `union_id`, '%s', %s from wechat_userinfo where app_name='%s' and `open_id` IN (%s)",WECHAT_ACCOUNT,period,WECHAT_XYQB,openIdStrs);
jdbcTemplate.update(sql);
jdbcTemplate.update(sql);
}
}
if(nextOpenId!=""){
if(nextOpenId!=""){
...
@@ -164,14 +167,15 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -164,14 +167,15 @@ public class WechatFollowServiceImpl implements IWechatFollowService {