내정보 공지사항 : 검색 제외
This commit is contained in:
@@ -21,6 +21,17 @@
|
||||
FROM notice a
|
||||
WHERE a.id = #{id}
|
||||
AND a.is_deleted = false
|
||||
|
||||
<if test="searchOpen != null and searchOpen != ''">
|
||||
<choose>
|
||||
<when test="searchOpen eq 'true'">
|
||||
AND a.visible = true
|
||||
</when>
|
||||
<when test="searchOpen eq 'false'">
|
||||
AND a.visible = false
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
a.id,
|
||||
a.updated_by,
|
||||
a.updated_at,
|
||||
a.created_by,
|
||||
a.created_at,
|
||||
a.title,
|
||||
a.content,
|
||||
a.visible,
|
||||
@@ -52,6 +54,9 @@
|
||||
<when test="order.property eq 'endDate'">a.end_date</when>
|
||||
<when test="order.property eq 'updatedBy'">a.updated_by</when>
|
||||
<when test="order.property eq 'updatedAt'">a.updated_at</when>
|
||||
<when test="order.property eq 'createdBy'">a.created_by</when>
|
||||
<when test="order.property eq 'createdAt'">a.created_at</when>
|
||||
<otherwise>a.id</otherwise>
|
||||
</choose>
|
||||
<choose>
|
||||
<when test="order.direction.toString() eq 'DESC'">DESC</when>
|
||||
|
||||
Reference in New Issue
Block a user