src/main/resources/mapper/ArticleMapper.xml
@@ -21,6 +21,9 @@ <if test="record.title!=null"> and a.title like concat ('%',#{record.title},'%') </if> <if test="record.contentType != null"> and a.content_type = #{record.contentType} </if> </if> </where> order by a.is_top desc,a.create_time desc