|
@ -127,11 +127,15 @@ public class WorkdiaryServiceRecordServiceImpl extends BaseServiceImpl<Workdiary |
|
|
|
|
|
|
|
|
// orgidPath
|
|
|
// orgidPath
|
|
|
Optional.ofNullable(CustomerOrgRedis.getGridInfo(dto.getGridId())) |
|
|
Optional.ofNullable(CustomerOrgRedis.getGridInfo(dto.getGridId())) |
|
|
.ifPresent(gi -> entity.setOrgIdPath(gi.getPids().concat(":").concat(gi.getId()))); |
|
|
.ifPresent(gi -> { |
|
|
|
|
|
entity.setOrgIdPath(gi.getPids().concat(":").concat(gi.getId())); |
|
|
|
|
|
entity.setAgencyId(gi.getPid()); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
IcResiUserDTO applicant = getResultDataOrThrowsException(userOpenFeignClient.getIcResiUserDTO(dto.getApplicantId()), ServiceConstant.EPMET_USER_SERVER, |
|
|
IcResiUserDTO applicant = getResultDataOrThrowsException(userOpenFeignClient.getIcResiUserDTO(dto.getApplicantId()), ServiceConstant.EPMET_USER_SERVER, |
|
|
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), null, "未找到申请人信息"); |
|
|
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), null, "未找到申请人信息"); |
|
|
|
|
|
|
|
|
|
|
|
entity.setCustomerId(EpmetRequestHolder.getLoginUserCustomerId()); |
|
|
if (applicant != null) { |
|
|
if (applicant != null) { |
|
|
entity.setApplicantName(applicant.getName()); |
|
|
entity.setApplicantName(applicant.getName()); |
|
|
} |
|
|
} |
|
|