dev-tmp1
zhanglei 2026-08-19 11:56:45 +08:00
parent 95989f88d3
commit 6a14912922
1 changed files with 7 additions and 3 deletions

View File

@ -168,8 +168,10 @@ public class OrgPersonnelExecutor implements OrgPersonnelApi {
public SingleResponse<OrgPersonnelCO> get(Long id) {
OrgPersonnelEntity entity = orgPersonnelDomainService.get(id);
OrgPersonnelCO co = orgPersonnelConvertor.toCO(entity);
for (TitleCodeCo titleCodeCo : co.getTitleCodeArr()) {
titleCodeCo.setIndustryCode(null);
if (co.getTitleCodeArr() != null) {
for (TitleCodeCo titleCodeCo : co.getTitleCodeArr()) {
titleCodeCo.setIndustryCode(null);
}
}
fillWorkDateAge(co);
enrich(co);
@ -255,7 +257,9 @@ public class OrgPersonnelExecutor implements OrgPersonnelApi {
List<OrgPersonnelCO> records = pageResult.getRecords().stream()
.map(item -> {
OrgPersonnelCO co = orgPersonnelConvertor.toCO(item);
co.getTitleCodeArr().forEach(v -> v.setIndustryCode(null));
if (co.getTitleCodeArr() != null) {
co.getTitleCodeArr().forEach(v -> v.setIndustryCode(null));
}
return co;
})
.collect(java.util.stream.Collectors.toList());