package com.eactive.eai.custom.stderrorcode.loader;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eactive.eai.common.util.DatetimeUtil;
import com.eactive.eai.data.entity.custom.stderrorcode.ChannelErrorCode;
import com.eactive.eai.data.jpa.AbstractDataService;

@Service
@Transactional
public class ChannelErrorCodeLoader extends AbstractDataService<ChannelErrorCode, String, ChannelErrorCodeLoaderRepository> {

	   @Transactional(readOnly = true)
	   public List<ChannelErrorCode> findAllByNow() {
	      return repository.selectAll(DatetimeUtil.getFormattedDate("yyyy-MM-dd"));
	   }

}