Sfoglia il codice sorgente

fix(VoteActivity & Notice): sort issues.

eric 2 anni fa
parent
commit
3a7461d0b3
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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">