Compare commits

..

No commits in common. "3010732fb5bc6c08972e7d4586f1443cbb9b704f" and "f6f94152cc0946aa6ae5589ad6a8599e8ca77e28" have entirely different histories.

3 changed files with 16 additions and 10 deletions

View File

@ -72,6 +72,9 @@ public class BoardSearchVO extends BaseSearchVO {
* @param id .
*/
public void setCategory(String category) {
if (category == null || category.equals("")) {
category = " ";
}
this.category = category;
}

View File

@ -32,7 +32,7 @@
group by BF_BD_SEQ) file
on list.bd_seq = file.bf_bd_seq
<where>
<if test='category != null and category != ""'>
<if test='category != " " or id == "stat_bbs"'>
AND BD_CATEGORY = #{category}
</if>
<if test="searchKeyword != null and searchKeyword != ''">
@ -65,10 +65,14 @@
COUNT(*)
FROM
H3_BD_${id}_LIST
<where>
<if test='category != null and category != ""'>
WHERE 1=1
<choose>
<when test='category == " " and id == "stat_bbs"'>
</when>
<otherwise>
AND BD_CATEGORY = #{category}
</if>
</otherwise>
</choose>
<if test="searchKeyword != null and searchKeyword != ''">
<choose>
<when test="searchCondition == 0">
@ -82,7 +86,6 @@
</when>
</choose>
</if>
</where>
</select>
<select id="Board.selectBoard" parameterType="boardVO" resultType="boardVO">