From a6e13da602456254f06a2ef3694e0c0077a612e3 Mon Sep 17 00:00:00 2001 From: e7c_corp <527455294@qq.com> Date: Mon, 26 Feb 2024 15:00:50 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E6=9C=89=E4=BA=9B21jd?= =?UTF-8?q?k=20getFirst=20=E4=BC=9A=E6=89=BE=E4=B8=8D=E5=88=B0=E7=AC=A6?= =?UTF-8?q?=E5=90=88=E7=9A=84=E9=94=99=E8=AF=AF=20=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=9C=89=E4=BA=9B21jdk=20getFirst=20=E4=BC=9A=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E7=AC=A6=E5=90=88=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/crm/service/permission/CrmPermissionServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/permission/CrmPermissionServiceImpl.java b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/permission/CrmPermissionServiceImpl.java index 7191df880..6fa90746b 100644 --- a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/permission/CrmPermissionServiceImpl.java +++ b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/permission/CrmPermissionServiceImpl.java @@ -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); }