Commit 8c7217eb authored by Elune's avatar Elune
Browse files

代码优化

parent 7d22178f
...@@ -138,9 +138,11 @@ public class UserServiceImpl implements UserService { ...@@ -138,9 +138,11 @@ public class UserServiceImpl implements UserService {
@Override @Override
@CacheEvict(allEntries = true) @CacheEvict(allEntries = true)
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void delete(Long id) { public void delete(Set<Long> ids) {
for (Long id : ids) {
userRepository.deleteById(id); userRepository.deleteById(id);
} }
}
@Override @Override
@Cacheable(key = "'loadUserByUsername:'+#p0") @Cacheable(key = "'loadUserByUsername:'+#p0")
......
Supports Markdown
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