|
|
|
@ -45,6 +45,8 @@ import org.springframework.cache.annotation.CacheConfig;
|
|
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
|
import org.springframework.security.crypto.password.PasswordEncoder;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
@ -135,6 +137,13 @@ public class UserServiceImpl implements UserService {
|
|
|
|
|
userRepository.updateStatusByCompanyId(Boolean.TRUE, id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void deleteCompany(Long companyId) {
|
|
|
|
|
userRepository.deleteByCompanyId(companyId);
|
|
|
|
|
companyService.deleteCompanyByCompanyId(companyId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Object queryAll(UserQueryCriteria criteria, Pageable pageable) {
|
|
|
|
@ -315,6 +324,7 @@ public class UserServiceImpl implements UserService {
|
|
|
|
|
convert.setIsOperator(Boolean.TRUE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return convert;
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|