|
|
@@ -9,6 +9,7 @@ import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.core.util.bean.BeanUtil;
|
|
|
import com.github.microservice.core.util.os.SystemUtil;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import com.zhongshu.card.client.model.base.ProjectOidParam;
|
|
|
import com.zhongshu.card.client.model.org.*;
|
|
|
import com.zhongshu.card.client.model.orgModel.OrgBindUserAllParam;
|
|
|
@@ -513,6 +514,23 @@ public class OrganizationUserServiceImpl extends SuperService {
|
|
|
return organizationUserDao.findByUserIdAndProjectOidAndIsOrg(userId, projectOid, Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 用户所在项目下 所有机构oid
|
|
|
+ *
|
|
|
+ * @param userId
|
|
|
+ * @param projectOid
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<String> getUserOrgListOids(String userId, String projectOid) {
|
|
|
+ if (StringUtils.isNotEmpty(projectOid) && StringUtils.isNotEmpty(userId)) {
|
|
|
+ List<OrganizationUser> _list = getUserOrgList(userId, projectOid);
|
|
|
+ if (ObjectUtils.isNotEmpty(_list)) {
|
|
|
+ return _list.stream().map(OrganizationUser::getOid).collect(Collectors.toList());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return Lists.newArrayList();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 导入 学校用户excel
|
|
|
*
|