diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyEmergencyServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyEmergencyServiceImpl.java index 8067b69..7e836e0 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyEmergencyServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyEmergencyServiceImpl.java @@ -80,9 +80,13 @@ public class ImsDutyEmergencyServiceImpl extends BaseServiceImpl { R user = userClient.userInfoById(sig.getRegistrant()); - sig.setRegistrantName(user.getData().getName()); + if (user.isSuccess()&&ObjectUtils.isNotEmpty(user.getData())){ + sig.setRegistrantName(user.getData().getName()); + } R userR = userClient.userInfoById(sig.getChargePerson()); - sig.setChargePersonName(userR.getData().getName()); + if (userR.isSuccess()&&ObjectUtils.isNotEmpty(userR.getData())){ + sig.setChargePersonName(userR.getData().getName()); + } ImsDutyClassEntity classEntity = imsDutyClassService.getById(sig.getDutyClass()); sig.setDutyClassName(classEntity.getClassName()); return sig;