DB 컬럼 변경 처리 : CONTENT (TEXT) -> CONTENT_LBL (LONGBLOB) 외

This commit is contained in:
KNKIM 2021-11-22 10:42:42 +09:00
parent eee6c9caaf
commit 421176d703
10 changed files with 22 additions and 24 deletions

View File

@ -196,7 +196,7 @@ public class CollectionServiceImpl implements CollectionService {
vo.setReqPsblYn (StringUtil.getString(cVO.getReqPsblYn() , vo.getReqPsblYn())); vo.setReqPsblYn (StringUtil.getString(cVO.getReqPsblYn() , vo.getReqPsblYn()));
vo.setInterestYn (StringUtil.getString(cVO.getInterestYn() , vo.getInterestYn())); vo.setInterestYn (StringUtil.getString(cVO.getInterestYn() , vo.getInterestYn()));
vo.setMUseYn (StringUtil.getString(cVO.getMUseYn() , vo.getMUseYn())); vo.setMUseYn (StringUtil.getString(cVO.getMUseYn() , vo.getMUseYn()));
vo.setDigitalReadYn (StringUtil.getString(cVO.getDigitalReadYn() , vo.getDigitalReadYn())); vo.setDigitalReadYn (StringUtil.getString(cVO.getDigitalReadYn() , vo.getDigitalReadYn()));
vo.setMngOrgCd (StringUtil.getString(cVO.getMngOrgCd() , vo.getMngOrgCd())); vo.setMngOrgCd (StringUtil.getString(cVO.getMngOrgCd() , vo.getMngOrgCd()));
vo.setMngOrgNm (StringUtil.getString(cVO.getMngOrgNm() , vo.getMngOrgNm())); vo.setMngOrgNm (StringUtil.getString(cVO.getMngOrgNm() , vo.getMngOrgNm()));

View File

@ -137,7 +137,7 @@ public class InterestController extends NlibCommonController
totalCount = interestService.countListInterests(searchCollectionVO); totalCount = interestService.countListInterests(searchCollectionVO);
String mbInfoId = getMbInfoId(request); String mbInfoId = getMbInfoId(request);
operList = collectionService.setDetailInfoForList(interestList, getMbInfoId(request), NlibProperty.getString("thumbnail.image.url.small")); operList = collectionService.setDetailInfoForList(interestList, getMbInfoId(request));
//------------------------------- //-------------------------------
// JSON변환 응답 처리 // JSON변환 응답 처리
//------------------------------- //-------------------------------

View File

@ -352,7 +352,7 @@ public class UserInfoController extends NlibCommonController {
List<CollectionVO> interestList = interestService.listInterests(searchCollectionVO); List<CollectionVO> interestList = interestService.listInterests(searchCollectionVO);
int interestTotalCount = interestService.countListInterests(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("interestList", interestList);
model.addAttribute("interestTotalCount", interestTotalCount); model.addAttribute("interestTotalCount", interestTotalCount);
@ -361,14 +361,14 @@ public class UserInfoController extends NlibCommonController {
// 조회 // 조회
// 대출상태구분코드("": 전체, A:신청, B:대출준비완료, C:취소, W:대출중, R0:정상반납, R1:연체반납, P:연체) // 대출상태구분코드("": 전체, A:신청, B:대출준비완료, C:취소, W:대출중, R0:정상반납, R1:연체반납, P:연체)
DataApiResVO resRentVO = rentService.listRentItems(searchCollectionVO); 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("rentList", rentList);
model.addAttribute("rentTotalCount", resRentVO.getRecordTotCount()); model.addAttribute("rentTotalCount", resRentVO.getRecordTotCount());
// 방문열람내역 (최근 5개) // 방문열람내역 (최근 5개)
searchCollectionVO.setReqStatusDivCd(null); searchCollectionVO.setReqStatusDivCd(null);
DataApiResVO resReadVO = readService.listReadItems(searchCollectionVO); 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("readList", readList);
model.addAttribute("readTotalCount", resReadVO.getRecordTotCount()); model.addAttribute("readTotalCount", resReadVO.getRecordTotCount());

View File

@ -18,7 +18,7 @@
</if> </if>
<if test='searchType != null and searchType.equals("C")'> <if test='searchType != null and searchType.equals("C")'>
<if test="searchKeyword != null and !searchKeyword.equals('')"> <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>
</if> </if>
AND IFNULL(S.DELETE_YN, 'N') = 'N' AND IFNULL(S.DELETE_YN, 'N') = 'N'
@ -71,7 +71,7 @@
, A.MNG_ORG_CD , A.MNG_ORG_CD
, B.DEPT_NM AS MNG_ORG_NM , B.DEPT_NM AS MNG_ORG_NM
, A.TITLE , 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 , IF(IFNULL(A.NOTI_YN, 'N') = '', 'N', A.NOTI_YN) AS NOTI_YN
, A.OPEN_YN , A.OPEN_YN
, A.POST_START_DATE , A.POST_START_DATE

View File

@ -19,7 +19,7 @@
</if> </if>
<if test='searchType != null and searchType.equals("C")'> <if test='searchType != null and searchType.equals("C")'>
<if test="searchKeyword != null and !searchKeyword.equals('')"> <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> </if>
<if test='searchQuestionType != null and !searchQuestionType.equals("")'> <if test='searchQuestionType != null and !searchQuestionType.equals("")'>
@ -80,9 +80,9 @@
, A.QUESTION_TYPE , A.QUESTION_TYPE
, D.S_CODE_NM AS QUESTION_TYPE_NAME , D.S_CODE_NM AS QUESTION_TYPE_NAME
, A.TITLE , A.TITLE
, A.CONTENT , CONVERT(A.CONTENT_LBL USING UTF8) AS CONTENT
, IFNULL(A.ANSWER_YN, 'N') AS ANSWER_YN , 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 , IFNULL(A.USE_YN, 'Y') AS USE_YN
, A.VIEW_CNT , A.VIEW_CNT
, A.BD_ATTACH_FILE_ID , A.BD_ATTACH_FILE_ID

View File

@ -18,7 +18,7 @@
</if> </if>
<if test='searchType != null and searchType.equals("C")'> <if test='searchType != null and searchType.equals("C")'>
<if test="searchKeyword != null and !searchKeyword.equals('')"> <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> </if>
<if test='searchMbInfoId != null and !searchMbInfoId.equals("")'> <if test='searchMbInfoId != null and !searchMbInfoId.equals("")'>
@ -86,10 +86,10 @@
, B.DEPT_NM AS MNG_ORG_NM , B.DEPT_NM AS MNG_ORG_NM
, A.QUESTION_TYPE , A.QUESTION_TYPE
, A.TITLE , A.TITLE
, A.CONTENT , CONVERT(A.CONTENT_LBL USING UTF8) AS CONTENT
, IFNULL(A.ANSWER_YN, 'N') AS ANSWER_YN , IFNULL(A.ANSWER_YN, 'N') AS ANSWER_YN
, IFNULL(A.EMAIL_RECV_YN, 'N') AS EMAIL_RECV_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.USE_YN, 'Y') AS USE_YN
, IFNULL(A.SECRET_YN, 'N') AS SECRET_YN , IFNULL(A.SECRET_YN, 'N') AS SECRET_YN
, A.VIEW_CNT , A.VIEW_CNT
@ -138,9 +138,9 @@
, BD_TYPE , BD_TYPE
, QUESTION_TYPE , QUESTION_TYPE
, TITLE , TITLE
, CONTENT , CONTENT_LBL
, ANSWER_YN , ANSWER_YN
, ANSWER , ANSWER_LBL
, EMAIL_RECV_YN , EMAIL_RECV_YN
, SECRET_YN , SECRET_YN
, USE_YN , USE_YN
@ -174,7 +174,7 @@
/* QNA : updateArticle : 삭제되지 않은 건 중 답변이 아직 없는 건에 한하여 수정 가능 */ /* QNA : updateArticle : 삭제되지 않은 건 중 답변이 아직 없는 건에 한하여 수정 가능 */
UPDATE BD_NLIB_QNA UPDATE BD_NLIB_QNA
SET TITLE = #{title} SET TITLE = #{title}
, CONTENT = #{content} , CONTENT_LBL = #{content}
, EMAIL_RECV_YN = #{emailRecvYn} , EMAIL_RECV_YN = #{emailRecvYn}
, SECRET_YN = #{secretYn} , SECRET_YN = #{secretYn}
, BD_ATTACH_FILE_ID = #{bdAttachFileId} , BD_ATTACH_FILE_ID = #{bdAttachFileId}

View File

@ -10,7 +10,6 @@
, MNG_ORG_CD , MNG_ORG_CD
, TITLE , TITLE
, CONTENT , CONTENT
, BD_ATTACH_FILE_ATTACH_FILE_ID
FROM BD_NLIB_CONTENT_PAGE A FROM BD_NLIB_CONTENT_PAGE A
WHERE A.CONTENT_TYPE = #{contentType} WHERE A.CONTENT_TYPE = #{contentType}
AND A.MNG_ORG_CD = #{mngOrgCd} AND A.MNG_ORG_CD = #{mngOrgCd}

View File

@ -303,7 +303,6 @@ $(document).ready(function() {
<div class="img">${cart.interestYn } <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> <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()"> <sec:authorize access="isAuthenticated()">
<c:if test='${cart.MUseYn == "Y"}'> <c:if test='${cart.MUseYn == "Y"}'>
<span id="favorites_${cart.masterId }" class="favorites" onclick="fn_changeInterestBtn('${cart.masterId }', 'off')" title="관심자료에서 삭제합니다."> <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="즐겨찾기 아이콘"> <img src="/images/icon/icon-cart-Favorites-on.png" class="off" alt="즐겨찾기 아이콘">
@ -319,15 +318,15 @@ $(document).ready(function() {
</sec:authorize> </sec:authorize>
</div> </div>
<div class="type"> <div class="type">
<c:if test="${cart.openDivCd != '3' }"> <c:if test="${cart.ableOnline}">
<span class="online">온라인열람</span> <span class="online">온라인열람</span>
</c:if> </c:if>
<c:if test="${cart.operOutRangeCd == '01' }"> <c:if test="${cart.ableRent}">
<span class="loan">대출</span> <span class="loan">대출</span>
</c:if> </c:if>
<c:if test="${cart.operReadRangeCd != '03' }"> <c:if test="${cart.ableRead}">
<span class="visit">방문열람</span> <span class="visit">방문열람</span>
</c:if> </c:if>

View File

@ -139,7 +139,7 @@ function fn_listCartItems() {
</c:if> </c:if>
<c:if test='${fromCart != "Y" }'> <c:if test='${fromCart != "Y" }'>
history.back(); location.href = "/";
</c:if> </c:if>
} }

View File

@ -128,7 +128,7 @@ function fn_listCartItems() {
</c:if> </c:if>
<c:if test='${fromCart != "Y" }'> <c:if test='${fromCart != "Y" }'>
history.back(); location.href = "/";
</c:if> </c:if>
} }
@ -258,7 +258,7 @@ $(document).ready(function() {
</c:if> </c:if>
</div> </div>
<div class="type"> <div class="type">
<c:if test="${rent.openDivCd != '3' }"> <c:if test="${rent.ableOnline }">
<span class="online">온라인열람</span> <span class="online">온라인열람</span>
</c:if> </c:if>