|
@@ -10,6 +10,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
+import java.util.Set;
|
|
|
|
|
|
/**
|
|
|
* @Description: 系统机构服务类测试
|
|
@@ -25,7 +26,7 @@ public class SysOrgServiceTest {
|
|
|
@Test
|
|
|
public void testFindDeepOrgIdListByUserId(){
|
|
|
Long userId = 198146821464260608L;
|
|
|
- List<Long> orgIdList = sysOrgService.findDeepOrgIdListByUserId(userId);
|
|
|
+ Set<Long> orgIdList = sysOrgService.findDeepOrgIdListByUserId(userId);
|
|
|
System.out.println(JSON.toJSONString(orgIdList));
|
|
|
}
|
|
|
|
|
@@ -34,7 +35,7 @@ public class SysOrgServiceTest {
|
|
|
List<Long> orgIdList = new ArrayList<>();
|
|
|
orgIdList.add(167590127315451904L);
|
|
|
orgIdList.add(198040177245945856L);
|
|
|
- List<Long> result = sysOrgService.findDeepOrgIdListByOrgIdList(orgIdList);
|
|
|
+ Set<Long> result = sysOrgService.findDeepOrgIdListByOrgIdList(orgIdList);
|
|
|
System.out.println(JSON.toJSONString(result));
|
|
|
}
|
|
|
}
|