Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[포털 사이트][QnA관리] 롬복 생성자 기반 종속성 주입 #29

Open
wants to merge 3 commits into
base: contribution
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,185 +2,193 @@

import java.util.List;

import egovframework.let.uss.olh.qna.service.EgovQnaManageService;
import egovframework.let.uss.olh.qna.service.QnaManageDefaultVO;
import egovframework.let.uss.olh.qna.service.QnaManageVO;

import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import egovframework.let.uss.olh.qna.service.EgovQnaManageService;
import egovframework.let.uss.olh.qna.service.QnaManageDefaultVO;
import egovframework.let.uss.olh.qna.service.QnaManageVO;
import lombok.RequiredArgsConstructor;

/**
*
* Q&A정보를 처리하는 비즈니스 구현 클래스
*
* @author 공통서비스 개발팀 박정규
* @since 2009.04.01
* @version 1.0
* @see
*
* <pre>
* <pre>
* << 개정이력(Modification Information) >>
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2009.04.01 박정규 최초 생성
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
*
* </pre>
* 2009.04.01 박정규 최초 생성
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
* 2024.10.07 안단희 롬복 생성자 기반 종속성 주입
*
* </pre>
*/
@Service("QnaManageService")
public class EgovQnaManageServiceImpl extends EgovAbstractServiceImpl implements
EgovQnaManageService {

@Resource(name="QnaManageDAO")
private QnaManageDAO qnaManageDAO;
@Service
@RequiredArgsConstructor
public class EgovQnaManageServiceImpl extends EgovAbstractServiceImpl implements EgovQnaManageService {

/** ID Generation */
@Resource(name="egovQnaManageIdGnrService")
private EgovIdGnrService idgenService;
private final QnaManageDAO qnaManageDAO;

/** ID Generation */
private final EgovIdGnrService egovQnaManageIdGnrService;

/**
/**
* Q&A 글을 조회한다.
*
* @param vo
* @return 조회한 글
* @exception Exception
*/
@Override
@Override
public QnaManageVO selectQnaListDetail(QnaManageVO vo) throws Exception {
QnaManageVO resultVO = qnaManageDAO.selectQnaListDetail(vo);
if (resultVO == null)
throw processException("info.nodata.msg");
return resultVO;
}
QnaManageVO resultVO = qnaManageDAO.selectQnaListDetail(vo);
if (resultVO == null)
throw processException("info.nodata.msg");
return resultVO;
}

/**
* Q&A 글을 수정한다.(조회수를 수정)
*
* @param vo
* @exception Exception
*/
@Override
@Override
public void updateQnaInqireCo(QnaManageVO vo) throws Exception {

qnaManageDAO.updateQnaInqireCo(vo);
}
qnaManageDAO.updateQnaInqireCo(vo);
}

/**
/**
* Q&A 글 목록을 조회한다.
*
* @param searchVO
* @return 글 목록
* @exception Exception
*/
@Override
public List<?> selectQnaList(QnaManageDefaultVO searchVO) throws Exception {
return qnaManageDAO.selectQnaList(searchVO);
}
return qnaManageDAO.selectQnaList(searchVO);
}

/**
/**
* Q&A 글 총 갯수를 조회한다.
*
* @param searchVO
* @return 글 총 갯수
*/
@Override
@Override
public int selectQnaListTotCnt(QnaManageDefaultVO searchVO) {
return qnaManageDAO.selectQnaListTotCnt(searchVO);
}

/**
* Q&A 글을 등록한다.
*
* @param vo
* @exception Exception
*/
@Override
@Override
public void insertQnaCn(QnaManageVO vo) throws Exception {

String qaId = idgenService.getNextStringId();
String qaId = egovQnaManageIdGnrService.getNextStringId();

vo.setQaId(qaId);

qnaManageDAO.insertQnaCn(vo);
}
qnaManageDAO.insertQnaCn(vo);
}

/**
/**
* 작성비밀번호를 확인한다.
*
* @param vo
* @return 글 총 갯수
*/
@Override
@Override
public int selectQnaPasswordConfirmCnt(QnaManageVO vo) {
return qnaManageDAO.selectQnaPasswordConfirmCnt(vo);
}

/**
* Q&A 글을 수정한다.
*
* @param vo
* @exception Exception
*/
@Override
@Override
public void updateQnaCn(QnaManageVO vo) throws Exception {

qnaManageDAO.updateQnaCn(vo);
}
qnaManageDAO.updateQnaCn(vo);
}

/**
* Q&A 글을 삭제한다.
*
* @param vo
* @exception Exception
*/
@Override
@Override
public void deleteQnaCn(QnaManageVO vo) throws Exception {

qnaManageDAO.deleteQnaCn(vo);
}

qnaManageDAO.deleteQnaCn(vo);
}

/**
/**
* Q&A 답변 글을 조회한다.
*
* @param vo
* @return 조회한 글
* @exception Exception
*/
@Override
@Override
public QnaManageVO selectQnaAnswerListDetail(QnaManageVO vo) throws Exception {
QnaManageVO resultVO = qnaManageDAO.selectQnaAnswerListDetail(vo);
if (resultVO == null)
throw processException("info.nodata.msg");
return resultVO;
}
QnaManageVO resultVO = qnaManageDAO.selectQnaAnswerListDetail(vo);
if (resultVO == null)
throw processException("info.nodata.msg");
return resultVO;
}

/**
/**
* Q&A 답변 글 목록을 조회한다.
*
* @param searchVO
* @return 글 목록
* @exception Exception
*/
@Override
public List<?> selectQnaAnswerList(QnaManageDefaultVO searchVO) throws Exception {
return qnaManageDAO.selectQnaAnswerList(searchVO);
}
return qnaManageDAO.selectQnaAnswerList(searchVO);
}

/**
/**
* Q&A 답변 글 총 갯수를 조회한다.
*
* @param searchVO
* @return 글 총 갯수
*/
@Override
@Override
public int selectQnaAnswerListTotCnt(QnaManageDefaultVO searchVO) {
return qnaManageDAO.selectQnaListTotCnt(searchVO);
}

/**
* Q&A 답변 글을 수정한다.
*
* @param vo
* @exception Exception
*/
@Override
@Override
public void updateQnaCnAnswer(QnaManageVO vo) throws Exception {

qnaManageDAO.updateQnaCnAnswer(vo);
}
qnaManageDAO.updateQnaCnAnswer(vo);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
*
* Q&A정보를 처리하는 DAO 클래스
*
*
* @author 공통서비스 개발팀 박정규
* @since 2009.04.01
* @version 1.0
Expand All @@ -22,18 +22,19 @@
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2009.04.01 박정규 최초 생성
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
* 2024.08.10 이백행 이클립스 문제(Problems) 제거
* 2009.04.01 박정규 최초 생성
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
* 2024.08.10 이백행 이클립스 문제(Problems) 제거
* 2024.10.07 안단희 불필요한 네이밍 제거
*
* </pre>
*/
@Repository("QnaManageDAO")
@Repository
public class QnaManageDAO extends EgovAbstractMapper {

/**
* Q&A 글 목록에 대한 상세내용을 조회한다.
*
*
* @param vo
* @return 조회한 글
* @exception Exception
Expand All @@ -46,7 +47,7 @@ public QnaManageVO selectQnaListDetail(QnaManageVO vo) throws Exception {

/**
* Q&A 글을 수정한다.(조회수를 수정)
*
*
* @param vo
* @exception Exception
*/
Expand All @@ -58,7 +59,7 @@ public void updateQnaInqireCo(QnaManageVO vo) throws Exception {

/**
* Q&A 글 목록을 조회한다.
*
*
* @param searchVO
* @return 글 목록
* @exception Exception
Expand All @@ -71,7 +72,7 @@ public List<?> selectQnaList(QnaManageDefaultVO searchVO) throws Exception {

/**
* Q&A 글 총 갯수를 조회한다.
*
*
* @param searchVO
* @return 글 총 갯수
*/
Expand All @@ -83,7 +84,7 @@ public int selectQnaListTotCnt(QnaManageDefaultVO searchVO) {

/**
* Q&A 글을 등록한다.
*
*
* @param vo
* @exception Exception
*/
Expand All @@ -95,7 +96,7 @@ public void insertQnaCn(QnaManageVO vo) throws Exception {

/**
* 작성비밀번호를 확인한다.
*
*
* @param vo
* @return 글 총 갯수
*/
Expand All @@ -107,7 +108,7 @@ public int selectQnaPasswordConfirmCnt(QnaManageVO vo) {

/**
* Q&A 글을 수정한다.
*
*
* @param vo
* @exception Exception
*/
Expand All @@ -119,7 +120,7 @@ public void updateQnaCn(QnaManageVO vo) throws Exception {

/**
* Q&A 글을 삭제한다.
*
*
* @param vo
* @exception Exception
*/
Expand All @@ -131,7 +132,7 @@ public void deleteQnaCn(QnaManageVO vo) throws Exception {

/**
* Q&A 답변 글 목록에 대한 상세내용을 조회한다.
*
*
* @param vo
* @return 조회한 글
* @exception Exception
Expand All @@ -144,7 +145,7 @@ public QnaManageVO selectQnaAnswerListDetail(QnaManageVO vo) throws Exception {

/**
* Q&A 답변 글 목록을 조회한다.
*
*
* @param searchVO
* @return 글 목록
* @exception Exception
Expand All @@ -157,7 +158,7 @@ public List<?> selectQnaAnswerList(QnaManageDefaultVO searchVO) throws Exception

/**
* Q&A 답변 글 총 갯수를 조회한다.
*
*
* @param searchVO
* @return 글 총 갯수
*/
Expand All @@ -169,7 +170,7 @@ public int selectQnaAnswerListTotCnt(QnaManageDefaultVO searchVO) {

/**
* Q&A 답변 글을 수정한다.
*
*
* @param vo
* @exception Exception
*/
Expand Down
Loading