package cokr.xit.fims.sprt.service.bean;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.fims.cmmn.dao.OtptStngMapper;
import cokr.xit.fims.cmmn.service.bean.StngBean;
import cokr.xit.fims.crdn.dao.CrdnListMapper;
import cokr.xit.fims.sprt.SprtQuery;
import cokr.xit.fims.sprt.dao.IntegrationSearchMapper;
import cokr.xit.fims.sprt.service.IntegrationSearchService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;

/**통합 조회 서비스 구현체.
*
* <p>상세 설명:
*
* <pre>
* ============ 변경 이력 ============
* 2023-08-18	JoJH 최초 작성
* ================================
* </pre>
*/
@Service("integrationSearchService")
public class IntegrationSearchServiceBean extends AbstractServiceBean implements IntegrationSearchService {

	/** 업무지원 Bean */
	@Resource(name="integrationSearchBean")
	protected IntegrationSearchBean integrationSearchBean;

	@Resource(name="crdnListMapper")
	protected CrdnListMapper crdnListMapper;

	@Resource(name="fileBean")
	protected FileBean fileBean;

	@Resource(name = "stngBean")
	protected StngBean stngBean;

	@Resource(name = "integrationSearchMapper")
	protected IntegrationSearchMapper integrationSearchMapper;

	@Resource(name = "otptStngMapper")
	protected OtptStngMapper otptStngMapper;

	@Resource(name="mediaBean")
	private MediaBean mediaBean;

	@Override
	public List<DataObject> getIntegrationDataList(SprtQuery query) {
		return integrationSearchBean.getIntegrationDataList(query);
	}

	@Override
	public String updateEtcCn(String etcCn, String... crdnIds) {

		boolean result = integrationSearchBean.updateEtcCn(etcCn, crdnIds);
		if(result) {
			return "[S]";
		} else {
			return "[F]";
		}
	}


}
