접속 문화원별 표출 처리
This commit is contained in:
parent
16bd022b6d
commit
2e685876f1
@ -59,17 +59,18 @@ public class AncmntController extends NlibCommonController
|
|||||||
/**
|
/**
|
||||||
* 목록 조회한다.
|
* 목록 조회한다.
|
||||||
*
|
*
|
||||||
* @param req
|
* @param request
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/bbs/listAncmntsAjax.do")
|
@RequestMapping(value="/bbs/listAncmntsAjax.do")
|
||||||
public ResponseEntity<String> listAncmntsAjax(
|
public ResponseEntity<String> listAncmntsAjax(
|
||||||
HttpServletRequest req,
|
HttpServletRequest request,
|
||||||
Authentication authentication,
|
Authentication authentication,
|
||||||
@RequestBody ArticleVO searchArticleVO) throws Exception {
|
@RequestBody ArticleVO searchArticleVO) throws Exception {
|
||||||
|
|
||||||
if(searchArticleVO.getPageIndex() < 1) searchArticleVO.setPageIndex(1);
|
if(searchArticleVO.getPageIndex() < 1) searchArticleVO.setPageIndex(1);
|
||||||
if(searchArticleVO.getPageSize() < 1) searchArticleVO.setPageSize(DEFUALT_PAGE_SIZE);
|
if(searchArticleVO.getPageSize() < 1) searchArticleVO.setPageSize(DEFUALT_PAGE_SIZE);
|
||||||
|
searchArticleVO.setMngOrgCd(getCurCouncilCd(request));
|
||||||
|
|
||||||
List<ArticleVO> list = ancmntService.listArticles(searchArticleVO);
|
List<ArticleVO> list = ancmntService.listArticles(searchArticleVO);
|
||||||
|
|
||||||
|
|||||||
@ -74,12 +74,12 @@ public class QnaController extends NlibCommonController {
|
|||||||
/**
|
/**
|
||||||
* 목록 조회한다.
|
* 목록 조회한다.
|
||||||
*
|
*
|
||||||
* @param req
|
* @param request
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/bbs/listQnasAjax.do")
|
@RequestMapping(value="/bbs/listQnasAjax.do")
|
||||||
public ResponseEntity<String> listQnasAjax(
|
public ResponseEntity<String> listQnasAjax(
|
||||||
HttpServletRequest req,
|
HttpServletRequest request,
|
||||||
Authentication authentication,
|
Authentication authentication,
|
||||||
@RequestBody ArticleVO searchArticleVO) throws Exception {
|
@RequestBody ArticleVO searchArticleVO) throws Exception {
|
||||||
|
|
||||||
@ -88,8 +88,9 @@ public class QnaController extends NlibCommonController {
|
|||||||
|
|
||||||
if(searchArticleVO.getPageIndex() < 1) searchArticleVO.setPageIndex(1);
|
if(searchArticleVO.getPageIndex() < 1) searchArticleVO.setPageIndex(1);
|
||||||
if(searchArticleVO.getPageSize() < 1) searchArticleVO.setPageSize(DEFUALT_PAGE_SIZE);
|
if(searchArticleVO.getPageSize() < 1) searchArticleVO.setPageSize(DEFUALT_PAGE_SIZE);
|
||||||
|
searchArticleVO.setMngOrgCd(getCurCouncilCd(request));
|
||||||
|
|
||||||
String mbInfoId = getMbInfoId(req);
|
String mbInfoId = getMbInfoId(request);
|
||||||
searchArticleVO.setLoginedMbInfoId(mbInfoId);
|
searchArticleVO.setLoginedMbInfoId(mbInfoId);
|
||||||
if(StringUtil.equalsIgnoreCase(searchArticleVO.getSearchQuestionType(), "USER")) {
|
if(StringUtil.equalsIgnoreCase(searchArticleVO.getSearchQuestionType(), "USER")) {
|
||||||
searchArticleVO.setSearchMbInfoId(mbInfoId);
|
searchArticleVO.setSearchMbInfoId(mbInfoId);
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
AND S.CONTENT LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
AND S.CONTENT LIKE CONCAT('%', #{escapeSearchKeyword}, '%')
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
|
AND S.MNG_ORG_CD IN (#{mngOrgCd}, 'KCCF')
|
||||||
|
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<if test='searchMbInfoId != null and !searchMbInfoId.equals("")'>
|
<if test='searchMbInfoId != null and !searchMbInfoId.equals("")'>
|
||||||
AND S.REG_ID = #{searchMbInfoId}
|
AND S.REG_ID = #{searchMbInfoId}
|
||||||
</if>
|
</if>
|
||||||
|
AND S.MNG_ORG_CD IN (#{mngOrgCd}, 'KCCF')
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="listArticles" parameterType="ArticleVO" resultType="ArticleVO">
|
<select id="listArticles" parameterType="ArticleVO" resultType="ArticleVO">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user