20 lines
386 B
Java
20 lines
386 B
Java
package co.jp.app.service;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import co.jp.app.entity.ErrorEntity;
|
|
import co.jp.app.repository.ErrRepository;
|
|
|
|
|
|
@Service
|
|
public class ErraService {
|
|
|
|
@Autowired
|
|
ErrRepository erraRepository;
|
|
|
|
public ErrorEntity getStatusById(int id) {
|
|
return erraRepository.getById(id);
|
|
}
|
|
}
|