메인페이지 게시물 쿼리 조건 변경.
parent
20df991f64
commit
3026b45af8
|
|
@ -72,6 +72,9 @@ public class BoardSearchVO extends BaseSearchVO {
|
||||||
* @param id 를 설정한다.
|
* @param id 를 설정한다.
|
||||||
*/
|
*/
|
||||||
public void setCategory(String category) {
|
public void setCategory(String category) {
|
||||||
|
if (category == null || category.equals("")) {
|
||||||
|
category = " ";
|
||||||
|
}
|
||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ public class CommonController {
|
||||||
if (EgovUserDetailsHelper.isAuthenticated()) {
|
if (EgovUserDetailsHelper.isAuthenticated()) {
|
||||||
BoardSearchVO searchVO = new BoardSearchVO();
|
BoardSearchVO searchVO = new BoardSearchVO();
|
||||||
searchVO.setRecordCountPerPage(5);
|
searchVO.setRecordCountPerPage(5);
|
||||||
searchVO.setCategory(null);
|
|
||||||
|
|
||||||
/* 내실적 조회 리스트 */
|
/* 내실적 조회 리스트 */
|
||||||
LoginUserVO loginUserVO = UserUtil.getMemberInfo();
|
LoginUserVO loginUserVO = UserUtil.getMemberInfo();
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,9 @@
|
||||||
*
|
*
|
||||||
FROM H3_BD_${id}_LIST BBS
|
FROM H3_BD_${id}_LIST BBS
|
||||||
<where>
|
<where>
|
||||||
<if test='category != null'>
|
<if test='category != " " or id == "stat_bbs"'>
|
||||||
AND BD_CATEGORY = #{category}
|
AND BD_CATEGORY = #{category}
|
||||||
</if>
|
</if>
|
||||||
<!--<if test='id != "stat_bbs"'>
|
|
||||||
AND BD_CATEGORY = #{category}
|
|
||||||
</if>-->
|
|
||||||
<if test="searchKeyword != null and searchKeyword != ''">
|
<if test="searchKeyword != null and searchKeyword != ''">
|
||||||
<choose>
|
<choose>
|
||||||
<when test="searchCondition == 0">
|
<when test="searchCondition == 0">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue