Explorar o código

认领账户排序

zhaoxian %!s(int64=2) %!d(string=hai) anos
pai
achega
77fc8c5f67

+ 1 - 5
ruixuan-live/src/main/resources/mapper/jinniu/KuaishouAccountMapper.xml

@@ -244,7 +244,6 @@
             <if test="ksId != null and ksId != '' ">
             <if test="ksId != null and ksId != '' ">
                 AND t1.user_id = #{ksId}
                 AND t1.user_id = #{ksId}
             </if>
             </if>
-            ORDER BY account_create_time DESC
             )
             )
             union all
             union all
             (SELECT
             (SELECT
@@ -269,7 +268,6 @@
                     AND ks_id = #{ksId}
                     AND ks_id = #{ksId}
                 </if>
                 </if>
             </where>
             </where>
-            ORDER BY account_create_time DESC
             )
             )
         </if>
         </if>
         <if test="status == 2 ">
         <if test="status == 2 ">
@@ -295,7 +293,6 @@
             <if test="ksId != null and ksId != '' ">
             <if test="ksId != null and ksId != '' ">
                 AND t1.user_id = #{ksId}
                 AND t1.user_id = #{ksId}
             </if>
             </if>
-            ORDER BY account_create_time DESC
         </if>
         </if>
         <if test="status == 1">
         <if test="status == 1">
             SELECT
             SELECT
@@ -320,9 +317,8 @@
                     AND ks_id = #{ksId}
                     AND ks_id = #{ksId}
                 </if>
                 </if>
             </where>
             </where>
-            ORDER BY account_create_time DESC
         </if>
         </if>
-        ) t
+        ) t  ORDER BY accountCreateTime DESC
     </select>
     </select>
 
 
     <insert id="insertRecord">
     <insert id="insertRecord">