|
|
@@ -600,4 +600,23 @@ public class WeComThirdPartyServiceImpl implements WeComThirdPartyService {
|
|
|
return thirdPartWeComRoomMapper.selectByPrimaryKey(roomId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void automaticLogin(UuidRequest request) {
|
|
|
+ if (Objects.nonNull(request) && StringUtils.isNotEmpty(request.getUuid())) {
|
|
|
+ apiClient.automaticLogin(request);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ThirdPartWeComStaffExample example = new ThirdPartWeComStaffExample();
|
|
|
+ example.createCriteria().andStatusIn(Arrays.asList(ThirdPartWeComStaffStatusEnum.NORMAL.getVal(),
|
|
|
+ ThirdPartWeComStaffStatusEnum.OFFLINE.getVal()));
|
|
|
+ List<ThirdPartWeComStaff> staffList = thirdPartWeComStaffMapper.selectByExample(example);
|
|
|
+ if (CollectionUtils.isNotEmpty(staffList)) {
|
|
|
+ for (ThirdPartWeComStaff staff : staffList) {
|
|
|
+ UuidRequest uuidRequest = new UuidRequest();
|
|
|
+ uuidRequest.setUuid(staff.getThirdUuid());
|
|
|
+ apiClient.automaticLogin(uuidRequest);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|