文件名更正
This commit is contained in:
@ -7,9 +7,10 @@ import org.springframework.data.repository.query.Param;
|
||||
import co.jp.app.entity.ErrorEntity;
|
||||
|
||||
|
||||
public interface ErraRepository extends JpaRepository<ErrorEntity, Integer>{
|
||||
public interface ErrRepository extends JpaRepository<ErrorEntity, Integer>{
|
||||
|
||||
public default ErrorEntity getById(@Param("id") int id) {
|
||||
|
||||
return getById(id);
|
||||
}
|
||||
}
|
@ -4,14 +4,14 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import co.jp.app.entity.ErrorEntity;
|
||||
import co.jp.app.repository.ErraRepository;
|
||||
import co.jp.app.repository.ErrRepository;
|
||||
|
||||
|
||||
@Service
|
||||
public class ErraService {
|
||||
|
||||
@Autowired
|
||||
ErraRepository erraRepository;
|
||||
ErrRepository erraRepository;
|
||||
|
||||
public ErrorEntity getStatusById(int id) {
|
||||
return erraRepository.getById(id);
|
||||
|
Reference in New Issue
Block a user