|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.hnac.hzims.safeproduct.risk.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
@ -104,14 +105,14 @@ public class HazardWorkServiceImpl extends ServiceImpl<HazardWorkMapper, HazardW
|
|
|
|
|
Long headId = record.getHead(); |
|
|
|
|
if (headId != null) { |
|
|
|
|
R<User> header = userClient.userInfoById(headId); |
|
|
|
|
if (header.isSuccess()) { |
|
|
|
|
if (header.isSuccess() && ObjectUtils.isNotEmpty(header.getData())) { |
|
|
|
|
hazardWorkVO.setHeadName(header.getData().getRealName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Long manageId = record.getManage(); |
|
|
|
|
if (manageId != null) { |
|
|
|
|
R<User> manager = userClient.userInfoById(manageId); |
|
|
|
|
if (manager.isSuccess()) { |
|
|
|
|
if (manager.isSuccess() && ObjectUtils.isNotEmpty(manager.getData())) { |
|
|
|
|
hazardWorkVO.setManagerName(manager.getData().getRealName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|