This commit is contained in:
Saturneric 2020-09-01 15:02:23 +08:00
parent dc768cb920
commit 40375ace72
2 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,9 @@ import java.util.Optional;
@Repository
public interface ActivityRepository extends JpaRepository<Activity, Integer> {
Optional<Activity> findByTitle(String Title);
Optional<Activity> findActivityByTitleAndType(String title,String type);
Optional<Activity> findActivityByTitle(String title);
Optional<Activity> findByCreator(String creatorName);

View File

@ -20,16 +20,16 @@ import java.util.*;
@Service
public class UserService implements IUserService {
@Resource
UserFunctionsListGenerator userFunctionsListGenerator;
private UserFunctionsListGenerator userFunctionsListGenerator;
@Resource
UserRepository userRepository;
private UserRepository userRepository;
@Resource
ASEPasswordEncoder passwordEncoder;
private ASEPasswordEncoder passwordEncoder;
@Resource
ASEUsernameEncoder usernameEncoder;
private ASEUsernameEncoder usernameEncoder;
@Override
public List<User> findAll() {