|
|
@ -4,6 +4,9 @@ import com.engine.organization.entity.comp.dto.CompListDTO;
|
|
|
|
import com.engine.organization.entity.comp.param.CompSearchParam;
|
|
|
|
import com.engine.organization.entity.comp.param.CompSearchParam;
|
|
|
|
import com.engine.organization.entity.comp.po.CompPO;
|
|
|
|
import com.engine.organization.entity.comp.po.CompPO;
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
|
|
|
import weaver.crm.Maint.SectorInfoComInfo;
|
|
|
|
|
|
|
|
import weaver.general.StringUtil;
|
|
|
|
|
|
|
|
import weaver.hrm.resource.ResourceComInfo;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
@ -35,8 +38,8 @@ public class CompBO {
|
|
|
|
.parentCompany(e.getParentCompany())
|
|
|
|
.parentCompany(e.getParentCompany())
|
|
|
|
.parentCompName(null == poMaps.get(e.getParentCompany()) ? "" : poMaps.get(e.getParentCompany()).getCompName())
|
|
|
|
.parentCompName(null == poMaps.get(e.getParentCompany()) ? "" : poMaps.get(e.getParentCompany()).getCompName())
|
|
|
|
.orgCode(e.getOrgCode())
|
|
|
|
.orgCode(e.getOrgCode())
|
|
|
|
.industry(e.getIndustry())
|
|
|
|
.industry(new SectorInfoComInfo().getSectorInfoname(e.getIndustry() + ""))
|
|
|
|
.compPrincipal(e.getCompPrincipal())
|
|
|
|
.compPrincipal(getUserNameById(e.getCompPrincipal() + ""))
|
|
|
|
.forbiddenTag(e.getForbiddenTag())
|
|
|
|
.forbiddenTag(e.getForbiddenTag())
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|
).collect(Collectors.toList());
|
|
|
|
).collect(Collectors.toList());
|
|
|
@ -87,5 +90,14 @@ public class CompBO {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static String getUserNameById(String userId) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (StringUtil.isEmpty(userId)) {
|
|
|
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ResourceComInfo().getLastname(userId);
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|