| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.CacheEvict; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | @CacheEvict(value = "sysUser:peerList",allEntries = true) |
| | | public int insertUser(SysUser user) |
| | | { |
| | | // 新增用户信息 |
| | |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | @CacheEvict(value = "sysUser:peerList",allEntries = true) |
| | | public int updateUser(SysUser user) |
| | | { |
| | | Long userId = user.getUserId(); |
| | |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | @CacheEvict(value = "sysUser:peerList",allEntries = true) |
| | | public int deleteUserById(Long userId) |
| | | { |
| | | // 删除用户与角色关联 |
| | |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | @CacheEvict(value = "sysUser:peerList",allEntries = true) |
| | | public int deleteUserByIds(Long[] userIds) |
| | | { |
| | | for (Long userId : userIds) |