itsm_ysm/src/main/java/nlib/col/service/impl/InterestDAO.java
2021-12-17 14:13:53 +09:00

94 lines
2.1 KiB
Java

package nlib.col.service.impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
import nlib.col.service.CollectionVO;
import nlib.col.service.DeptVO;
import nlib.restful.DataApi;
import nlib.restful.DataApiReqVO;
import nlib.restful.DataApiResVO;
/**
* <pre>
* @Class Name : InterestDAO.java
*
* @Description : 관심자료 관련 DAO
*
*
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
*
* </pre>
*
* @ ------------ -------- ---------------------------
* @ 수정일 수정자 수정내용
* @ ------------ -------- ---------------------------
* @ 2021-07-01 JSYOO 최초 생성
*
*
* @author 이씨플라자 * DIGITALSHIP JSYOO
* @since 2021-07-01
* @version 1.0
*
*/
@Repository("interestDAO")
public class InterestDAO extends EgovComAbstractDAO
{
private static final Logger log = LoggerFactory.getLogger(InterestDAO.class);
/**
* 관심 자료 목록을 조회한다.
*
* @param CollectionVO
* @return
*/
public List<CollectionVO> listInterests(CollectionVO vo) {
return selectList("InterestDAO.listInterests", vo);
}
/**
* 관심 자료 목록의 개수를 조회한다.
*
* @param CollectionVO
* @return
*/
public int countListInterests(CollectionVO vo) {
return selectOne("InterestDAO.countListInterests", vo);
}
/**
* 관심자료 목록 삭제
* @param masterIdList
*/
public void deleteInterests(CollectionVO vo) {
delete("InterestDAO.deleteInterests", vo);
}
/**
* 관심자료 추가시 중복체크용 count
* @param vo
* @return
*/
public int countInterest(CollectionVO vo) {
return selectOne("InterestDAO.countInterest",vo);
}
/**
* 관심자료 추가
* @param vo
*/
public void insertInterest(CollectionVO vo) {
insert("InterestDAO.insertInterest",vo);
}
/**
* 문화원 목록 조회
* @return
*/
public List<DeptVO> selectOrgList(CollectionVO vo) {
return selectList("InterestDAO.selectOrgList",vo);
}
}