Преглед изворни кода

fix(VoteActivity & Notice): sort issues.

eric пре 2 година
родитељ
комит
3a7461d0b3
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/main/resources/mapper/VoteActivityMapper.xml

+ 1 - 0
src/main/resources/mapper/VoteActivityMapper.xml

@@ -32,6 +32,7 @@
         <if test="startTime != null and endTime != null">
             AND start_time &gt;= #{startTime} AND start_time &lt;= #{endTime}
         </if>
+        ORDER BY id DESC
     </select>
 
     <delete id="deleteByPrimaryKey" parameterType="integer">