Commit 8ee1fef9e49130776bd733da1b0fa93606f51396
1 parent
e79005a0
fix:【crm 客户管理】联系人删除时,校验权限不正确的问题
Showing
1 changed file
with
3 additions
and
3 deletions
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contact/CrmContactServiceImpl.java
| @@ -159,10 +159,10 @@ public class CrmContactServiceImpl implements CrmContactService { | @@ -159,10 +159,10 @@ public class CrmContactServiceImpl implements CrmContactService { | ||
| 159 | // 2. 删除联系人 | 159 | // 2. 删除联系人 |
| 160 | contactMapper.deleteById(id); | 160 | contactMapper.deleteById(id); |
| 161 | 161 | ||
| 162 | - // 4.1 删除数据权限 | ||
| 163 | - permissionService.deletePermission(CrmBizTypeEnum.CRM_CONTACT.getType(), id); | ||
| 164 | - // 4.2 删除商机关联 | 162 | + // 4.1 删除商机关联 |
| 165 | contactBusinessService.deleteContactBusinessByContactId(id); | 163 | contactBusinessService.deleteContactBusinessByContactId(id); |
| 164 | + // 4.2 删除数据权限 | ||
| 165 | + permissionService.deletePermission(CrmBizTypeEnum.CRM_CONTACT.getType(), id); | ||
| 166 | 166 | ||
| 167 | // 记录操作日志上下文 | 167 | // 记录操作日志上下文 |
| 168 | LogRecordContext.putVariable("contactName", contact.getName()); | 168 | LogRecordContext.putVariable("contactName", contact.getName()); |