OWL ITS + 탐지시스템(인터넷 진흥원)
박지현
2022-03-07 398a4927e195755bd6a46be99337efd8dacc3dc2
src/main/resources/mybatis/query-template/notice-template.xml
@@ -9,13 +9,15 @@
        n.title as title,
        n.description as description,
        n.register_id as registerId,
        u.name as writer,
        SUBSTRING (n.register_date, 1, 10) as registerDate
        FROM notice n
        INNER JOIN user u on u.id = n.register_id
        WHERE 1=1
        <if test="title != '' and title != null">
            AND n.title like CONCAT('%',#{title},'%')
        </if>
        ORDER BY ID DESC
        ORDER BY n.register_date DESC
        <if test="page != null and !page.equals('')">
            limit #{pageSize} offset #{page};
        </if>