fix: 兼容有些21jdk getFirst 会找不到符合的错误

兼容有些21jdk getFirst 会找不到符合的错误
This commit is contained in:
e7c_corp 2024-02-26 15:00:50 +00:00 committed by Gitee
parent cb8d4e0976
commit a6e13da602
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -170,7 +170,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService {
throw exception(CRM_PERMISSION_DELETE_FAIL);
}
// 校验操作人是否为负责人
CrmPermissionDO permission = permissionMapper.selectByBizIdAndUserId(permissions.getFirst().getBizId(), userId);
CrmPermissionDO permission = permissionMapper.selectByBizIdAndUserId(permissions.get(0).getBizId(), userId);
if (permission == null) {
throw exception(CRM_PERMISSION_DELETE_DENIED);
}