@@ -149,7 +149,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
StringopenIdStrs=String.join("\',\'",openIds);
openIdStrs="\'"+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);
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 user_id is not null and `open_id` IN (%s)",WECHAT_ACCOUNT,period,WECHAT_XYQB,openIdStrs);
jdbcTemplate.update(sql);
}
if(nextOpenId!=""){
...
...
@@ -231,7 +231,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
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 `union_id` IN (%s)",ENTERPRISE_WECHAT,period,unionIdStrs);
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 user_id is no null and `union_id` IN (%s)",ENTERPRISE_WECHAT,period,unionIdStrs);