Pre Merge pull request !15 from dxfeng/feature/dxf

pull/15/MERGE
dxfeng 3 years ago committed by Gitee
commit a075533cb8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -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.po.CompPO;
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.stream.Collectors;
@ -35,8 +38,8 @@ public class CompBO {
.parentCompany(e.getParentCompany())
.parentCompName(null == poMaps.get(e.getParentCompany()) ? "" : poMaps.get(e.getParentCompany()).getCompName())
.orgCode(e.getOrgCode())
.industry(e.getIndustry())
.compPrincipal(e.getCompPrincipal())
.industry(new SectorInfoComInfo().getSectorInfoname(e.getIndustry() + ""))
.compPrincipal(getUserNameById(e.getCompPrincipal() + ""))
.forbiddenTag(e.getForbiddenTag())
.build()
).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);
}
}
}

@ -71,13 +71,13 @@ public class CompListDTO {
*
*/
@TableTitle(title = "行业", dataIndex = "industry", key = "industry")
private Integer industry;
private String industry;
/**
*
*/
@TableTitle(title = "负责人", dataIndex = "compPrincipal", key = "compPrincipal")
private Integer compPrincipal;
private String compPrincipal;
/**
*

Loading…
Cancel
Save