update 优化 部门更新接口 清理缓存

This commit is contained in:
疯狂的狮子li
2023-02-05 13:20:05 +08:00
parent bc06550918
commit b9b76539ac
2 changed files with 10 additions and 0 deletions

View File

@ -236,6 +236,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
* @param dept 部门信息
* @return 结果
*/
@CacheEvict(cacheNames = CacheNames.SYS_DEPT, key = "#dept.deptId")
@Override
public int updateDept(SysDept dept) {
SysDept newParentDept = baseMapper.selectById(dept.getParentId());