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

代码优化

parent 7d22178f
......@@ -138,8 +138,10 @@ public class UserServiceImpl implements UserService {
@Override
@CacheEvict(allEntries = true)
@Transactional(rollbackFor = Exception.class)
public void delete(Long id) {
userRepository.deleteById(id);
public void delete(Set<Long> ids) {
for (Long id : ids) {
userRepository.deleteById(id);
}
}
@Override
......
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