|
@@ -497,8 +497,10 @@ public class SampleServiceImpl extends ServiceImpl<SampleMapper, Sample> impleme
|
|
|
//赋值创建人名称
|
|
|
Map<Long, SysUser> nickNameMapByIds = UserUtil.getMapByIds(Arrays.asList(sample.getCreateUser()));
|
|
|
SysUser sysUser = nickNameMapByIds.get(sample.getCreateUser());
|
|
|
- contractPdfInfoVo.setCreateUserName(sysUser.getNickName());//中文名
|
|
|
- contractPdfInfoVo.setCreateUserNameEn(sysUser.getNickNameEn());//英文名
|
|
|
+ if (ObjectUtil.isNotEmpty(sysUser)) {
|
|
|
+ contractPdfInfoVo.setCreateUserName(sysUser.getNickName());//中文名
|
|
|
+ contractPdfInfoVo.setCreateUserNameEn(sysUser.getNickNameEn());//英文名
|
|
|
+ }
|
|
|
//赋值创建人邮箱地址
|
|
|
List<EnterpriseMailbox> enterpriseMailboxList = enterpriseMailboxService.list(q -> q.eq(EnterpriseMailbox::getUserId, sample.getCreateUser()));
|
|
|
String eMailAddress = "";
|