zhijiezhao 3 年之前
父节点
当前提交
ea0d2583ad
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/resources/mappings/modules/super/CmSvipHistoryMapper.xml

+ 2 - 0
src/main/resources/mappings/modules/super/CmSvipHistoryMapper.xml

@@ -113,6 +113,7 @@
         <if test='status == "3"'>
             and beginTime > NOW()
         </if>
+        order by cs.payTime desc
     </select>
 
     <select id="findEndTime" resultType="com.caimei.modules.supervip.entity.CmSvipHistory">
@@ -158,6 +159,7 @@
             </if>
         </where>
         group by cs.userId
+        order by cs.payTime DESC
     </select>
 
     <select id="findOutEndTime" resultType="com.caimei.modules.supervip.entity.CmSvipHistory">