|
@@ -145,6 +145,9 @@ public class WeComUserDataJob1 {
|
|
|
public ReturnT<String> setExternalUserId(String param) {
|
|
|
try {
|
|
|
UserExample example = new UserExample();
|
|
|
+ if(StringUtils.isNotEmpty(param)){
|
|
|
+ example.createCriteria().andIdGreaterThanOrEqualTo(Long.parseLong(param));
|
|
|
+ }
|
|
|
long count = userMapper.countByExample(example);
|
|
|
int page = 1;
|
|
|
int pageSize = 1000;
|
|
@@ -174,7 +177,7 @@ public class WeComUserDataJob1 {
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|
|
|
|
|
|
- private String getExternalUserId(String externalUserId3rdParty) throws IOException {
|
|
|
+ public String getExternalUserId(String externalUserId3rdParty) throws IOException {
|
|
|
String weComAccessToken = accessTokenService.getWeComAccessToken();
|
|
|
String url = String.format("https://qyapi.weixin.qq.com/cgi-bin/externalcontact/from_service_external_userid?access_token=%s", weComAccessToken);
|
|
|
JSONObject param = new JSONObject();
|