Browse Source

bug fixes

plf 3 years ago
parent
commit
e79ffab0ed
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/resources/mapper/ClubMapper.xml

+ 2 - 0
src/main/resources/mapper/ClubMapper.xml

@@ -100,6 +100,7 @@
           pushStatus = 0
           pushStatus = 0
           AND beansType IN (1, 2, 3, 4, 8)
           AND beansType IN (1, 2, 3, 4, 8)
           AND delFlag = 0
           AND delFlag = 0
+          AND userId = #{userId}
         ORDER BY
         ORDER BY
           ADDTIME DESC
           ADDTIME DESC
         LIMIT
         LIMIT
@@ -138,5 +139,6 @@
           <if test="type != null and type != 0">
           <if test="type != null and type != 0">
               AND type = #{type}
               AND type = #{type}
           </if>
           </if>
+        ORDER BY addTime DESC
     </select>
     </select>
 </mapper>
 </mapper>