记得上下班打卡 | git大法好,push需谨慎

Commit a58869da authored by 姜秀龙's avatar 姜秀龙

LostFoundAdmin 手机号不变 bug

parent 448ea260
...@@ -131,9 +131,9 @@ public class SweetLostFoundAdminServiceImpl extends ServiceImpl<SweetLostFoundAd ...@@ -131,9 +131,9 @@ public class SweetLostFoundAdminServiceImpl extends ServiceImpl<SweetLostFoundAd
// 缓存 // 缓存
SweetLostFoundAdminVo vo = new SweetLostFoundAdminVo(); SweetLostFoundAdminVo vo = new SweetLostFoundAdminVo();
BeanUtils.copyProperties(foundAdmin, vo); BeanUtils.copyProperties(foundAdmin, vo);
lostFoundRedisUtils.setAdminCache(phone, performanceId, vo);
// 因为可能会更改权限范围 写入有范围的判断 所以直接删除老的 // 因为可能会更改权限范围 写入有范围的判断 所以直接删除老的
lostFoundRedisUtils.deleteAdminCache(existingAdmin.getPhone(), existingAdmin.getPerformanceId(), existingAdmin.getAuthScope()); lostFoundRedisUtils.deleteAdminCache(existingAdmin.getPhone(), existingAdmin.getPerformanceId(), existingAdmin.getAuthScope());
lostFoundRedisUtils.setAdminCache(phone, performanceId, vo);
return ResponseDto.success(baseMapper.updateById(foundAdmin) > 0); return ResponseDto.success(baseMapper.updateById(foundAdmin) > 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment