자료 상세정보를 조회 : 기본 썸네일이 정보 추가
This commit is contained in:
parent
d0f8f387ab
commit
cb441a3257
@ -63,6 +63,20 @@ public class CollectionServiceImpl implements CollectionService {
|
|||||||
*/
|
*/
|
||||||
public CollectionVO getItemInfo(CollectionVO searchVO) throws Exception {
|
public CollectionVO getItemInfo(CollectionVO searchVO) throws Exception {
|
||||||
|
|
||||||
|
return getItemInfo(searchVO, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 자료 상세정보를 조회한다.
|
||||||
|
* 썸네일이 정보가 없는 경우, defaultThumnailUrl로 설정한다.
|
||||||
|
*
|
||||||
|
* @param searchVO
|
||||||
|
* @param defaultThumnailUrl
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public CollectionVO getItemInfo(CollectionVO searchVO, String defaultThumnailUrl) throws Exception {
|
||||||
|
|
||||||
String message = null;
|
String message = null;
|
||||||
|
|
||||||
// 입력값 확인
|
// 입력값 확인
|
||||||
@ -84,6 +98,12 @@ public class CollectionServiceImpl implements CollectionService {
|
|||||||
|
|
||||||
// 결과값 전달
|
// 결과값 전달
|
||||||
CollectionVO retVO = (CollectionVO)XmlConverter.convertMapToObject(resVO.getInfo(), CollectionVO.class);
|
CollectionVO retVO = (CollectionVO)XmlConverter.convertMapToObject(resVO.getInfo(), CollectionVO.class);
|
||||||
|
if(retVO == null) {
|
||||||
|
log.error("getItemInfo > 조회된 자료 정보가 없습니다.");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(StringUtil.isEmpty(retVO.getRprsThumbUrl())) retVO.setRprsThumbUrl(defaultThumnailUrl);
|
||||||
retVO.setResultCode(resVO.getResultCode());
|
retVO.setResultCode(resVO.getResultCode());
|
||||||
retVO.setResultMessage(resVO.getResultMessage());
|
retVO.setResultMessage(resVO.getResultMessage());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user