Commit 3013a20e authored by 李健华's avatar 李健华

增加企业微信相关数据

parent ec33e1f3
...@@ -231,7 +231,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService { ...@@ -231,7 +231,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
String unionIdStrs = String.join("\',\'", unionIds); String unionIdStrs = String.join("\',\'", unionIds);
unionIdStrs = "\'" + unionIdStrs + "\'"; unionIdStrs = "\'" + unionIdStrs + "\'";
// String sql = String.format("INSERT INTO wechat_enterprise(`unionid`) values ('%s')", String.join(",", unionIdAll)); // String sql = String.format("INSERT INTO wechat_enterprise(`unionid`) values ('%s')", String.join(",", unionIdAll));
String sql = 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); String sql = 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 not null and `union_id` IN (%s)", ENTERPRISE_WECHAT, period, unionIdStrs);
jdbcTemplate.update(sql); jdbcTemplate.update(sql);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment