|
|
|
@ -8,7 +8,12 @@ import com.hxgk.lowcode.model.entity.OrgContType; |
|
|
|
import com.hxgk.lowcode.service.HrService; |
|
|
|
import com.hxgk.lowcode.service.UserService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.data.redis.RedisConnectionFailureException; |
|
|
|
import org.springframework.data.redis.RedisSystemException; |
|
|
|
import org.springframework.data.redis.core.StringRedisTemplate; |
|
|
|
import org.springframework.retry.annotation.Backoff; |
|
|
|
import org.springframework.retry.annotation.Recover; |
|
|
|
import org.springframework.retry.annotation.Retryable; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
@ -96,6 +101,11 @@ public class HrServiceImpl implements HrService { |
|
|
|
return gGWsIdList; |
|
|
|
} |
|
|
|
//低代码穿梭框组织人员树
|
|
|
|
@Retryable( |
|
|
|
value = {RedisConnectionFailureException.class, RedisSystemException.class}, |
|
|
|
maxAttempts = 3, |
|
|
|
backoff = @Backoff(delay = 100, multiplier = 2) |
|
|
|
) |
|
|
|
@Override |
|
|
|
public Tree getOrgAndManTree() { |
|
|
|
|
|
|
|
|