통계월보 전체목록 전시

master
Hyung Geun 2022-04-20 11:23:24 +09:00
parent bac8ab8220
commit cc4f8ddf6d
3 changed files with 10 additions and 16 deletions

View File

@ -72,9 +72,6 @@ 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 != " " or id == "stat_bbs"'>
<if test='category != null and category != ""'>
AND BD_CATEGORY = #{category}
</if>
<if test="searchKeyword != null and searchKeyword != ''">
@ -65,14 +65,10 @@
COUNT(*)
FROM
H3_BD_${id}_LIST
WHERE 1=1
<choose>
<when test='category == " " and id == "stat_bbs"'>
</when>
<otherwise>
<where>
<if test='category != null and category != ""'>
AND BD_CATEGORY = #{category}
</otherwise>
</choose>
</if>
<if test="searchKeyword != null and searchKeyword != ''">
<choose>
<when test="searchCondition == 0">
@ -86,6 +82,7 @@
</when>
</choose>
</if>
</where>
</select>
<select id="Board.selectBoard" parameterType="boardVO" resultType="boardVO">