DB 컬럼 변경 처리 : CONTENT (TEXT) -> CONTENT_LBL (LONGBLOB) 외
This commit is contained in:
parent
eee6c9caaf
commit
421176d703
@ -137,7 +137,7 @@ public class InterestController extends NlibCommonController
|
||||
totalCount = interestService.countListInterests(searchCollectionVO);
|
||||
|
||||
String mbInfoId = getMbInfoId(request);
|
||||
operList = collectionService.setDetailInfoForList(interestList, getMbInfoId(request), NlibProperty.getString("thumbnail.image.url.small"));
|
||||
operList = collectionService.setDetailInfoForList(interestList, getMbInfoId(request));
|
||||
//-------------------------------
|
||||
// JSON변환 응답 처리
|
||||
//-------------------------------
|
||||
|
||||
@ -352,7 +352,7 @@ public class UserInfoController extends NlibCommonController {
|
||||
List<CollectionVO> interestList = interestService.listInterests(searchCollectionVO);
|
||||
int interestTotalCount = interestService.countListInterests(searchCollectionVO);
|
||||
|
||||
interestList = collectionService.setDetailInfoForList(interestList, searchCollectionVO.getMbInfoId(), NlibProperty.getString("thumbnail.image.url.small"));
|
||||
interestList = collectionService.setDetailInfoForList(interestList, searchCollectionVO.getMbInfoId());
|
||||
|
||||
model.addAttribute("interestList", interestList);
|
||||
model.addAttribute("interestTotalCount", interestTotalCount);
|
||||
@ -361,14 +361,14 @@ public class UserInfoController extends NlibCommonController {
|
||||
// 조회
|
||||
// 대출상태구분코드("": 전체, A:신청, B:대출준비완료, C:취소, W:대출중, R0:정상반납, R1:연체반납, P:연체)
|
||||
DataApiResVO resRentVO = rentService.listRentItems(searchCollectionVO);
|
||||
List<CollectionVO> rentList = collectionService.setDetailInfoForHashList(resRentVO.getRecordList(), searchCollectionVO.getMbInfoId(), NlibProperty.getString("thumbnail.image.url.small"));
|
||||
List<CollectionVO> rentList = collectionService.setDetailInfoForHashList(resRentVO.getRecordList(), searchCollectionVO.getMbInfoId());
|
||||
model.addAttribute("rentList", rentList);
|
||||
model.addAttribute("rentTotalCount", resRentVO.getRecordTotCount());
|
||||
|
||||
// 방문열람내역 (최근 5개)
|
||||
searchCollectionVO.setReqStatusDivCd(null);
|
||||
DataApiResVO resReadVO = readService.listReadItems(searchCollectionVO);
|
||||
List<CollectionVO> readList = collectionService.setDetailInfoForHashList(resReadVO.getRecordList(), searchCollectionVO.getMbInfoId(), NlibProperty.getString("thumbnail.image.url.small"));
|
||||
List<CollectionVO> readList = collectionService.setDetailInfoForHashList(resReadVO.getRecordList(), searchCollectionVO.getMbInfoId());
|
||||
model.addAttribute("readList", readList);
|
||||
model.addAttribute("readTotalCount", resReadVO.getRecordTotCount());
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
</if>
|
||||
<if test='searchType != null and searchType.equals("C")'>
|
||||
<if test="searchKeyword != null and !searchKeyword.equals('')">
|
||||
AND IFNULL(S.CONTENT,'') LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||
AND IFNULL(CONVERT(S.CONTENT_LBL USING UTF8),'') LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||
</if>
|
||||
</if>
|
||||
AND IFNULL(S.DELETE_YN, 'N') = 'N'
|
||||
@ -71,7 +71,7 @@
|
||||
, A.MNG_ORG_CD
|
||||
, B.DEPT_NM AS MNG_ORG_NM
|
||||
, A.TITLE
|
||||
, A.CONTENT
|
||||
, CONVERT(A.CONTENT_LBL USING UTF8) AS CONTENT
|
||||
, IF(IFNULL(A.NOTI_YN, 'N') = '', 'N', A.NOTI_YN) AS NOTI_YN
|
||||
, A.OPEN_YN
|
||||
, A.POST_START_DATE
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
</if>
|
||||
<if test='searchType != null and searchType.equals("C")'>
|
||||
<if test="searchKeyword != null and !searchKeyword.equals('')">
|
||||
AND CONCAT(IFNULL(S.CONTENT,''), IFNULL(S.ANSWER,'')) LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||
AND CONCAT(IFNULL(CONVERT(S.CONTENT_LBL USING UTF8),''), IFNULL(CONVERT(S.ANSWER_LBL USING UTF8),'')) LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||
</if>
|
||||
</if>
|
||||
<if test='searchQuestionType != null and !searchQuestionType.equals("")'>
|
||||
@ -80,9 +80,9 @@
|
||||
, A.QUESTION_TYPE
|
||||
, D.S_CODE_NM AS QUESTION_TYPE_NAME
|
||||
, A.TITLE
|
||||
, A.CONTENT
|
||||
, CONVERT(A.CONTENT_LBL USING UTF8) AS CONTENT
|
||||
, IFNULL(A.ANSWER_YN, 'N') AS ANSWER_YN
|
||||
, A.ANSWER
|
||||
, CONVERT(A.ANSWER_LBL USING UTF8) AS ANSWER
|
||||
, IFNULL(A.USE_YN, 'Y') AS USE_YN
|
||||
, A.VIEW_CNT
|
||||
, A.BD_ATTACH_FILE_ID
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
</if>
|
||||
<if test='searchType != null and searchType.equals("C")'>
|
||||
<if test="searchKeyword != null and !searchKeyword.equals('')">
|
||||
AND CONCAT(IFNULL(S.CONTENT,''), IFNULL(S.ANSWER,'')) LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||
AND CONCAT(IFNULL(CONVERT(S.CONTENT_LBL USING UTF8),''), IFNULL(CONVERT(S.ANSWER_LBL USING UTF8),'')) LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||
</if>
|
||||
</if>
|
||||
<if test='searchMbInfoId != null and !searchMbInfoId.equals("")'>
|
||||
@ -86,10 +86,10 @@
|
||||
, B.DEPT_NM AS MNG_ORG_NM
|
||||
, A.QUESTION_TYPE
|
||||
, A.TITLE
|
||||
, A.CONTENT
|
||||
, CONVERT(A.CONTENT_LBL USING UTF8) AS CONTENT
|
||||
, IFNULL(A.ANSWER_YN, 'N') AS ANSWER_YN
|
||||
, IFNULL(A.EMAIL_RECV_YN, 'N') AS EMAIL_RECV_YN
|
||||
, A.ANSWER
|
||||
, CONVERT(A.ANSWER_LBL USING UTF8) AS ANSWER
|
||||
, IFNULL(A.USE_YN, 'Y') AS USE_YN
|
||||
, IFNULL(A.SECRET_YN, 'N') AS SECRET_YN
|
||||
, A.VIEW_CNT
|
||||
@ -138,9 +138,9 @@
|
||||
, BD_TYPE
|
||||
, QUESTION_TYPE
|
||||
, TITLE
|
||||
, CONTENT
|
||||
, CONTENT_LBL
|
||||
, ANSWER_YN
|
||||
, ANSWER
|
||||
, ANSWER_LBL
|
||||
, EMAIL_RECV_YN
|
||||
, SECRET_YN
|
||||
, USE_YN
|
||||
@ -174,7 +174,7 @@
|
||||
/* QNA : updateArticle : 삭제되지 않은 건 중 답변이 아직 없는 건에 한하여 수정 가능 */
|
||||
UPDATE BD_NLIB_QNA
|
||||
SET TITLE = #{title}
|
||||
, CONTENT = #{content}
|
||||
, CONTENT_LBL = #{content}
|
||||
, EMAIL_RECV_YN = #{emailRecvYn}
|
||||
, SECRET_YN = #{secretYn}
|
||||
, BD_ATTACH_FILE_ID = #{bdAttachFileId}
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
, MNG_ORG_CD
|
||||
, TITLE
|
||||
, CONTENT
|
||||
, BD_ATTACH_FILE_ATTACH_FILE_ID
|
||||
FROM BD_NLIB_CONTENT_PAGE A
|
||||
WHERE A.CONTENT_TYPE = #{contentType}
|
||||
AND A.MNG_ORG_CD = #{mngOrgCd}
|
||||
|
||||
@ -303,7 +303,6 @@ $(document).ready(function() {
|
||||
<div class="img">${cart.interestYn }
|
||||
<a href="javascript:void(0)"><img src="${cart.rprsThumbUrlWithDefaultSmall }" alt="썸네일" width="60" height="91" title="상세보기" onclick="gfn_getDetail('${cart.masterId }')"></a>
|
||||
<sec:authorize access="isAuthenticated()">
|
||||
|
||||
<c:if test='${cart.MUseYn == "Y"}'>
|
||||
<span id="favorites_${cart.masterId }" class="favorites" onclick="fn_changeInterestBtn('${cart.masterId }', 'off')" title="관심자료에서 삭제합니다.">
|
||||
<img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
|
||||
@ -319,15 +318,15 @@ $(document).ready(function() {
|
||||
</sec:authorize>
|
||||
</div>
|
||||
<div class="type">
|
||||
<c:if test="${cart.openDivCd != '3' }">
|
||||
<c:if test="${cart.ableOnline}">
|
||||
<span class="online">온라인열람</span>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${cart.operOutRangeCd == '01' }">
|
||||
<c:if test="${cart.ableRent}">
|
||||
<span class="loan">대출</span>
|
||||
</c:if>
|
||||
|
||||
<c:if test="${cart.operReadRangeCd != '03' }">
|
||||
<c:if test="${cart.ableRead}">
|
||||
<span class="visit">방문열람</span>
|
||||
</c:if>
|
||||
|
||||
|
||||
@ -139,7 +139,7 @@ function fn_listCartItems() {
|
||||
</c:if>
|
||||
|
||||
<c:if test='${fromCart != "Y" }'>
|
||||
history.back();
|
||||
location.href = "/";
|
||||
</c:if>
|
||||
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ function fn_listCartItems() {
|
||||
</c:if>
|
||||
|
||||
<c:if test='${fromCart != "Y" }'>
|
||||
history.back();
|
||||
location.href = "/";
|
||||
</c:if>
|
||||
}
|
||||
|
||||
@ -258,7 +258,7 @@ $(document).ready(function() {
|
||||
</c:if>
|
||||
</div>
|
||||
<div class="type">
|
||||
<c:if test="${rent.openDivCd != '3' }">
|
||||
<c:if test="${rent.ableOnline }">
|
||||
<span class="online">온라인열람</span>
|
||||
</c:if>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user