dev-tmp1
zhanglei 2026-08-19 13:57:12 +08:00
parent 6a14912922
commit 0a352d220f
1 changed files with 1 additions and 13 deletions

View File

@ -21,7 +21,6 @@ import org.qinan.safetyeval.domain.constant.CertTypeCodeEnum;
import org.qinan.safetyeval.domain.entity.OrgPersonnelCertEntity;
import org.qinan.safetyeval.domain.entity.OrgPersonnelEntity;
import org.qinan.safetyeval.domain.entity.OrgPositionEntity;
import org.qinan.safetyeval.domain.entity.TitleCodeCo;
import org.qinan.safetyeval.domain.exception.BizException;
import org.qinan.safetyeval.domain.exception.ErrorCode;
import org.qinan.safetyeval.domain.gateway.FaceCompareGateway;
@ -168,11 +167,6 @@ public class OrgPersonnelExecutor implements OrgPersonnelApi {
public SingleResponse<OrgPersonnelCO> get(Long id) {
OrgPersonnelEntity entity = orgPersonnelDomainService.get(id);
OrgPersonnelCO co = orgPersonnelConvertor.toCO(entity);
if (co.getTitleCodeArr() != null) {
for (TitleCodeCo titleCodeCo : co.getTitleCodeArr()) {
titleCodeCo.setIndustryCode(null);
}
}
fillWorkDateAge(co);
enrich(co);
fillCerts(co, id);
@ -255,13 +249,7 @@ public class OrgPersonnelExecutor implements OrgPersonnelApi {
PageResult<OrgPersonnelEntity> pageResult = orgPersonnelDomainService.page(domainQuery);
List<OrgPersonnelCO> records = pageResult.getRecords().stream()
.map(item -> {
OrgPersonnelCO co = orgPersonnelConvertor.toCO(item);
if (co.getTitleCodeArr() != null) {
co.getTitleCodeArr().forEach(v -> v.setIndustryCode(null));
}
return co;
})
.map(item -> orgPersonnelConvertor.toCO(item))
.collect(java.util.stream.Collectors.toList());
if (orgPersonnelViewEnricher != null) {
orgPersonnelViewEnricher.enrichPersonnelBatch(records);