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 @Repository
public interface ActivityRepository extends JpaRepository<Activity, Integer> { 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); Optional<Activity> findByCreator(String creatorName);

View File

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