Explorar o código

fix(VoteActivity & Notice): sort issues.

eric %!s(int64=2) %!d(string=hai) anos
pai
achega
3a7461d0b3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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">