This commit is contained in:
xiaofajia 2024-12-17 14:29:40 +08:00
parent 8f92fd463f
commit 8c68f0b7c0

View File

@ -597,7 +597,7 @@ public class InspectionInfoServiceImpl extends ServiceImpl<InspectionInfoMapper,
wrapper.eq(InspectionWorkNode::getStatus, status); wrapper.eq(InspectionWorkNode::getStatus, status);
} }
InspectionInfo inspectionInfo = baseMapper.selectById(id); InspectionInfo inspectionInfo = baseMapper.selectById(id);
if (!inspectionInfo.getLeadManId().equals(userId)) { if (ObjectUtil.isEmpty(inspectionInfo.getLeadManId()) || !inspectionInfo.getLeadManId().equals(userId)) {
wrapper.in(InspectionWorkNode::getRoleId, roleIds); wrapper.in(InspectionWorkNode::getRoleId, roleIds);
} }
List<InspectionWorkNode> workNodes = workNodeService.list(wrapper); List<InspectionWorkNode> workNodes = workNodeService.list(wrapper);