Browse Source

【工作日志】新增缺失字段

master
wangxianzhang 3 years ago
parent
commit
4497d1aba9
  1. 6
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkdiaryServiceRecordServiceImpl.java

6
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkdiaryServiceRecordServiceImpl.java

@ -127,11 +127,15 @@ public class WorkdiaryServiceRecordServiceImpl extends BaseServiceImpl<Workdiary
// orgidPath
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,
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), null, "未找到申请人信息");
entity.setCustomerId(EpmetRequestHolder.getLoginUserCustomerId());
if (applicant != null) {
entity.setApplicantName(applicant.getName());
}

Loading…
Cancel
Save