This commit is contained in:
许允枞 2024-11-14 10:08:11 +08:00
parent fc12805d24
commit e95320be7f

View File

@ -248,7 +248,9 @@ public class InspectionInfoServiceImpl extends ServiceImpl<InspectionInfoMapper,
//根据角色id获取所有用户
List<UserDTO> listByUserId = roleService.getListByUserId(roleId);
List<Long> ids = listByUserId.stream().map(UserDTO::getId).collect(Collectors.toList());
if (ObjectUtil.isNull(inspectionInfo.getLeadManId())) {
ids.add(inspectionInfo.getLeadManId());
}
// 获取当前共单引车员的id
if (CollUtil.isNotEmpty(ids)) {
for (Long id : ids) {